Bug 203959 - DNG converter fails to compile
Summary: DNG converter fails to compile
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Portability-Compilation (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-15 16:24 UTC by Seb
Modified: 2018-03-23 11:22 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 0.8.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Seb 2009-08-15 16:24:20 UTC
Version:            (using KDE 4.2.4)
Compiler:          gcc 4.3.3 
OS:                Linux
Installed from:    Compiled From Sources

I'am on Kubuntu 9.04 using KDE 4.2.2 and try to compile digikam from source (SVN), as described here: http://techbase.kde.org/Projects/Digikam/Compilation_on_Kubuntu

CMake works:
****:~/Pakete/digikam/graphics/build$ cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=$DIGIKAMKDE4 ../../graphics                        
-- Found Qt-Version 4.5.0 (using /usr/bin/qmake)                                
-- Found X11: /usr/lib/libX11.so                                                
-- Phonon Version: 4.3.0                                                        
-- Found KDE 4.2 include dir: /usr/include                                      
-- Found KDE 4.2 library dir: /usr/lib                                          
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler      
-- Found automoc4: /usr/bin/automoc4                                            
-- Found Freetype: -lfreetype -lz                                               
CMake Warning at /usr/share/kde4/apps/cmake/modules/MacroOptionalFindPackage.cmake:19 (FIND_PACKAGE):                                                           
  Could not find module FindIMLIB.cmake or a configuration file for package     
  IMLIB.                                                                        

  Adjust CMAKE_MODULE_PATH to find FindIMLIB.cmake or set IMLIB_DIR to the
  directory containing a CMake configuration file for IMLIB.  The file will
  have one of the following names:                                         

    IMLIBConfig.cmake
    imlib-config.cmake

Call Stack (most recent call first):
  CMakeLists.txt:21 (macro_optional_find_package)


-- Found libksane: /usr/lib/libksane.so
-- Found Kexiv2 library in cache: /usr/lib/libkexiv2.so
-- Found Kdcraw library in cache: /usr/lib/libkdcraw.so
-- Found Kipi library in cache: /usr/lib/libkipi.so    
-- checking for modules 'libgvc;libcdt;libgraph;libpathplan'
--   found libgvc, version 2.20.2                           
--   found libcdt, version 2.20.2                           
--   found libgraph, version 2.20.2                         
--   found libpathplan, version 2.20.2                      
-- Found lcms version 1.18, /usr/lib/liblcms.so             
-- Found Kdcraw library in cache: /usr/lib/libkdcraw.so     
-- Found Kexiv2 library in cache: /usr/lib/libkexiv2.so     
-- Found Kipi library in cache: /usr/lib/libkipi.so         
-- Found gphoto2: -L/usr/lib -lgphoto2_port;-L/usr/lib -lgphoto2 -lgphoto2_port -lm                                                                             
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig      
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig      
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig      
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig      
-- Performing Test HAVE_LQR_0_4                                                 
-- Performing Test HAVE_LQR_0_4 - Failed                                        
-- Could NOT find Lqr-1  (missing:  LQR-1_INCLUDE_DIRS LQR-1_LIBRARIES)         
Thumbs DB:1/home/***/digikam/graphics/build/digikam                    
--                                                                              
-- ----------------------------------------------------------------------------------                                                                           
--  digiKam 1.0.0-beta4 dependencies results   <http://www.digikam.org>         
--                                                                              
--  Qt4 SQL module found................ YES                                    
--  libjpeg library found............... YES                                    
--  libtiff library found............... YES                                    
--  libpng library found................ YES                                    
--  libjasper library found............. YES                                    
--  liblcms library found............... YES                                    
--  libkipi library found............... YES                                    
--  libkexiv2 library found............. YES                                    
--  libkdcraw library found............. YES                                    
--  libgphoto2 library found............ YES                                    
--  libkdepimlibs library found......... YES (optional)                         
--  libmarblewidget library found....... YES (optional)                         
--  Nepomuk libraries found............. NO  (at least KDE 4.3 required)        
--                                                                              
--  digiKam will be compiled without support for the Nepomuk semantic desktop services.                                                                         
--                                                                              
--  liblensfun library found............ YES (optional)                         
--  libglib2 library found.............. YES (optional)                         
--  liblqr-1 library found.............. NO  (optional)                         
--  digiKam will be compiled............ YES                                    
-- ----------------------------------------------------------------------------------                                                                           
--                                                                              
-- Adjusting compilation flags for GCC version ( 4.3.3 )                        
-- Found Kexiv2 library in cache: /usr/lib/libkexiv2.so                         
-- Found Kdcraw library in cache: /usr/lib/libkdcraw.so                         
-- Found Kipi library in cache: /usr/lib/libkipi.so                             
-- OpenCV root directory: /usr/local                                            
-- OpenCV Include Directory: /usr/local/include/opencv;/usr/local/include/opencv;/usr/local/include/opencv;/usr/local/include/opencv                            
-- OpenCV Libraries: /usr/local/lib/libcv.so;/usr/local/lib/libcxcore.so;/usr/local/lib/libcvaux.so;/usr/local/lib/libhighgui.so                                
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig      
-- Found GObject libraries: /usr/lib/libgobject-2.0.so;/usr/lib/libgmodule-2.0.so;/usr/lib/libgthread-2.0.so;/usr/lib/libglib-2.0.so                            
-- Found GObject includes : /usr/include/glib-2.0/gobject                       
-- Found X11: /usr/lib/libX11.so                                                
-- Found libksane: /usr/lib/libksane.so                                         
--                                                                              
-- ----------------------------------------------------------------------------------                                                                           
--  kipi-plugins 0.6.0-svn dependencies results   <http://www.kipi-plugins.org> 
--                                                                              
--  libjpeg library found............... YES                                    
--  libtiff library found............... YES                                    
--  libpng library found................ YES                                    
--  libkipi library found............... YES                                    
--  libkexiv2 library found............. YES                                    
--  libkdcraw library found............. YES                                    
--  libxml2 library found............... YES (optional)                         
--  libxslt library found............... YES (optional)                         
--  libexpat library found.............. YES (optional)                         
--  native threads support found........ YES (optional)                         
--  libopengl library found............. YES (optional)                         
--  libopencv library found............. YES (optional)                         
--  libgpod library found............... YES (optional)                         
--  Gdk library found................... YES (optional)                         
--  libkdepim library found............. YES (optional)                         
--  libX11 library found................ YES (optional)                         
--  libksane library found.............. YES (optional)                         
--                                                                              
--  kipi-plugins will be compiled....... YES                                    
--  HtmlExport will be compiled......... YES (optional)                         
--  AdvancedSlideshow will be compiled.. YES (optional)                         
--  ImageViewer will be compiled........ YES (optional)                         
--  AcquireImages will be compiled...... YES (optional)                         
--  DNGConverter will be compiled....... YES (optional)                         
--  RemoveRedEyes will be compiled...... YES (optional)                         
--  IpodExport will be compiled......... YES (optional)                         
--  Calendar will be compiled........... YES (optional)                         
-- ----------------------------------------------------------------------------------                                                                           
--                                                                              
--                                                                              
-----------------------------------------------------------------------------   
-- The following external packages were located on your system.                 
-- This installation will have the extra features provided by these packages.   
+ libopengl                                                                     
+ libgphoto2                                                                    
-----------------------------------------------------------------------------   
-- The following OPTIONAL packages could NOT be located on your system.         
-- Consider installing them to enable more features from this software.         
+ imlib: imlib is needed to build kuickshow project <http://freshmeat.net/projects/imlib/>                                                                      
-----------------------------------------------------------------------------   

-- Configuring done
-- Generating done 
-- Build files have been written to: /home/***/digikam/graphics/build


but at 72% compilation fails with this message:

[ 72%] Built target kipiplugin_acquireimages
[ 72%] Built target dngconverter_automoc
Linking CXX executable dngconverter
CMakeFiles/dngconverter.dir/plugin_dngconverter.o: file not recognized: File truncated
collect2: ld gab 1 als Ende-Status zurück
make[2]: *** [kipi-plugins/dngconverter/plugin/dngconverter] Fehler 1
make[1]: *** [kipi-plugins/dngconverter/plugin/CMakeFiles/dngconverter.dir/all]Fehler 2
make: *** [all] Fehler 2

Is there an easy possibility to get passed this? I don't need the DNG-converter, only want to compile and use newest version of digikam...
Comment 1 caulier.gilles 2009-08-15 16:52:56 UTC
Really really strange error. Are you sure that your devel env. is fine. tmp dir is not full ?

Gilles Caulier
Comment 2 Seb 2009-08-15 17:21:56 UTC
Temp dirs all have plenty of space left. But I checked the cmake-directories and found, that (only) in the dngconverter_directory nearly all of the *.o files have 0kb file sizes, so I guess the error is due to compilation errors in the dngconverter-plugin.

(I took one of the other plugin *.o files and placed it everywhere on the 0kb-files with the corresponding name, so now compilation worked and as far as I can see digikam works fabulous!)

From that I guess hat everything should be fine with my dev-environment, I am working on a brandnew kubuntu jaunty installation...

What doesn't work is compilation of the kde-environment as mentioned in the first part of the installation-howto due to a (in KDE 4.2.2) missing libknotify package.

Sebastian
Comment 3 caulier.gilles 2009-10-01 12:08:50 UTC
Seb,

What's news there ?

Gilles Caulier
Comment 4 Johannes Wienke 2009-10-01 12:14:43 UTC
Maybe a make clean and then make VERBOSE=1 could help finding the error?
Comment 5 caulier.gilles 2009-10-26 13:23:54 UTC
Seb, please look at #4 and report fresh update there. thanks in advance

Gilles Caulier
Comment 6 Seb 2009-10-26 15:11:07 UTC
Hi Gilles,

sorry for not reacting directly on your last post. After updating and compiling several new versions of digikam, I never encountered any similar problem again. So I think it may have been due to some misconfiguration of my side.

Thanks for helping me, the make clean/verbose option is something I didn't know before, so it may be helping me in future times!

Sebastian