Update: We Can Now Install Latest Digikam from A PPA Repository
To install latest digikam, simply run the following commands:
sudo add-apt-repository ppa:philip5/extra sudo apt-get update sudo apt-get install digikam
Here’s how I installed it (currently v2.4.1) in Kubuntu 11.10 Oneiric. FYI It took nearly one hour to compile on my machine (Toshiba Satellite L310 Intel Core2 Duo T5550 @ 1.83GHz).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #remove digikam & kipi plugins if they are already installed sudo apt-get purge digikam digikam-data kipi-plugins kipi-plugins-common sudo apt-get autoremove #install dependencies sudo apt-get build-dep digikam #Download latest digikam source here: http://sourceforge.net/projects/digikam/files/digikam/ #Save it in ~/trunk folder cd ~/trunk tar xjf digikam*.tar.bz2 cd digikam* mkdir build && cd build cmake -DCMAKE_INSTALL_PREFIX=/usr .. make sudo make install |
Digikam 2.4.1 cmake output
ubuntuku@satellite:/media/LINUX/trunk/digikam-2.4.1/build$ cmake -DCMAKE_INSTALL_PREFIX=/usr .. -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - found -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found. -- Looking for Q_WS_QWS -- Looking for Q_WS_QWS - not found. -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - not found. -- Found Qt-Version 4.7.4 (using /usr/bin/qmake) -- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so;/usr/lib/i386-linux-gnu/libXft.so;/usr/lib/i386-linux-gnu/libXau.so;/usr/lib/i386-linux-gnu/libXdmcp.so -- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so;/usr/lib/i386-linux-gnu/libXft.so;/usr/lib/i386-linux-gnu/libXau.so;/usr/lib/i386-linux-gnu/libXdmcp.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber in ICE -- Looking for IceConnectionNumber in ICE - found -- Found X11: /usr/lib/i386-linux-gnu/libX11.so -- Looking for include files CMAKE_HAVE_PTHREAD_H -- Looking for include files CMAKE_HAVE_PTHREAD_H - found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Looking for _POSIX_TIMERS -- Looking for _POSIX_TIMERS - found -- Found Automoc4: /usr/bin/automoc4 -- Found Perl: /usr/bin/perl -- Found Phonon: /usr/include -- Performing Test _OFFT_IS_64BIT -- Performing Test _OFFT_IS_64BIT - Failed -- Performing Test HAVE_FPIE_SUPPORT -- Performing Test HAVE_FPIE_SUPPORT - Success -- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL -- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success -- Performing Test __KDE_HAVE_GCC_VISIBILITY -- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success -- Found KDE 4.7 include dir: /usr/include -- Found KDE 4.7 library dir: /usr/lib -- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler -- Found automoc4: /usr/bin/automoc4 -- ---------------------------------------------------------------------------------- -- Starting CMake configuration for: libmediawiki CMake Warning (dev) at /usr/share/cmake-2.8/Modules/FindQJSON.cmake:19 (include): File /usr/share/cmake-2.8/Modules/FindQJSON.cmake includes /usr/share/kde4/apps/cmake/modules/FindPkgConfig.cmake (found via CMAKE_MODULE_PATH) which shadows /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake. This may cause errors later on . Policy CMP0017 is not set: Prefer files from the CMake module directory when including from there. Run "cmake --help-policy CMP0017" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): extra/libkvkontakte/CMakeLists.txt:32 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- checking for module 'QJson>=0.5' -- found QJson, version 0.7.1 CMake Warning (dev) at /usr/share/cmake-2.8/Modules/FindQJSON.cmake:43 (include): File /usr/share/cmake-2.8/Modules/FindQJSON.cmake includes /usr/share/kde4/apps/cmake/modules/FindPackageHandleStandardArgs.cmake (found via CMAKE_MODULE_PATH) which shadows /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake. This may cause errors later on . Policy CMP0017 is not set: Prefer files from the CMake module directory when including from there. Run "cmake --help-policy CMP0017" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): extra/libkvkontakte/CMakeLists.txt:32 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Found QJSON: qjson;QtCore ----------------------------------------------------------------------------- -- The following external packages were located on your system. -- This installation will have the extra features provided by these packages. ----------------------------------------------------------------------------- * QJSON - Qt library for handling JSON data ----------------------------------------------------------------------------- -- Congratulations! All external packages have been found. ----------------------------------------------------------------------------- -- ---------------------------------------------------------------------------------- -- Starting CMake configuration for: libkgeomap -- Found Qt-Version 4.7.4 (using /usr/bin/qmake) -- Found X11: /usr/lib/i386-linux-gnu/libX11.so -- Found marble: /usr/include/marble -- Check Kexiv2 library in local sub-folder... -- Check Kexiv2 library using pkg-config... -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig -- Found libkexiv2 release >= 1.0.0 -- Found libkexiv2: /usr/lib/libkexiv2.so -- kexiv2 found, the demo application will be compiled. -- Looking for valgrind/valgrind.h -- Looking for valgrind/valgrind.h - not found -- ---------------------------------------------------------------------------------- -- Starting CMake configuration for: libkface -- Found Qt-Version 4.7.4 (using /usr/bin/qmake) -- Found X11: /usr/lib/i386-linux-gnu/libX11.so -- First try at finding OpenCV... -- Great, found OpenCV on the first try. -- OpenCV Root directory is /usr/share/opencv -- External libface was not found, use internal version instead... -- ---------------------------------------------------------------------------------- -- Starting CMake configuration for: kipi-plugins -- Check Kexiv2 library in local sub-folder... -- Check Kexiv2 library using pkg-config... -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig -- Found libkexiv2 release >= 1.0.0 -- Found libkexiv2: /usr/lib/libkexiv2.so -- Check Kdcraw library in local sub-folder... -- Check Kdcraw library using pkg-config... -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig -- Found libkdcraw release >= 0.2.0 -- Found libkdcraw: /usr/lib/libkdcraw.so -- Check Kipi library in local sub-folder... -- Check Kipi library using pkg-config... -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig -- Found libkipi release >= 1.0.0 -- Found libkipi: /usr/lib/libkipi.so -- Found JPEG: /usr/lib/i386-linux-gnu/libjpeg.so -- Found ZLIB: /usr/lib/i386-linux-gnu/libz.so (found version "1.2.3.4") -- Found PNG: /usr/lib/i386-linux-gnu/libpng.so -- Found TIFF: /usr/lib/i386-linux-gnu/libtiff.so CMake Warning at extra/kipi-plugins/CMakeLists.txt:139 (MESSAGE): libkdcraw: Version information not found, your version is probably too old. -- Found EXPAT: /usr/lib/i386-linux-gnu/libexpat.so -- Found LibXml2: /usr/lib/libxml2.so -- Found LibXslt: /usr/lib/libxslt.so -- Found OpenGL: /usr/lib/i386-linux-gnu/libGL.so -- checking for one of the modules 'libgpod-1.0' -- Found libgpod-1 0.8.0 -- libgpod dir: /usr/include/glib-2.0;/usr/lib/i386-linux-gnu/glib-2.0/include;/usr/include/gdk-pixbuf-2.0;/usr/include/libpng12;/usr/include/gpod-1.0 -- libgpod lib: gpod;gdk_pixbuf-2.0;gobject-2.0;gthread-2.0;rt;glib-2.0 -- libgpod def: -pthread;-I/usr/include/glib-2.0;-I/usr/lib/i386-linux-gnu/glib-2.0/include;-I/usr/include/gdk-pixbuf-2.0;-I/usr/include/libpng12;-I/usr/include/gpod-1.0 -- libgpod ver: 0.8.0 -- checking for module 'gdk-pixbuf-2.0' -- found gdk-pixbuf-2.0, version 2.24.0 -- Found Gdk: /usr/include/gdk-pixbuf-2.0 -- Found GLIB2: /usr/lib/i386-linux-gnu/libglib-2.0.so -- checking for module 'gobject-2.0' -- found gobject-2.0, version 2.30.0 -- Found GOBJECT: /usr/lib/i386-linux-gnu/libgobject-2.0.so;/usr/lib/i386-linux-gnu/libgmodule-2.0.so;/usr/lib/i386-linux-gnu/libgthread-2.0.so;/usr/lib/i386-linux-gnu/libglib-2.0.so -- Found KdepimLibs: /usr/lib/cmake/KdepimLibs/KdepimLibsConfig.cmake -- Found QCA2: /usr/lib/libqca.so -- Check for Ksane library in local sub-folder... -- Check Ksane library using pkg-config... -- checking for one of the modules 'libksane' -- Found libksane release 0.3.0 -- Found libksane: /usr/lib/libksane.so -- Check for KGeoMap library in local sub-folder... -- Found KGeoMap library in local sub-folder: /media/LINUX/trunk/digikam-2.4.1/extra/libkgeomap -- Check Mediawiki library in local sub-folder... -- Found Mediawiki library in local sub-folder: /media/LINUX/trunk/digikam-2.4.1/extra/libmediawiki -- Check Vkontakte library in local sub-folder... -- Found Vkontakte library in local sub-folder: /media/LINUX/trunk/digikam-2.4.1/extra/libkvkontakte -- libkgeomap: Found version 2.0.0 -- Found X11: /usr/lib/i386-linux-gnu/libX11.so -- CMake version: cmake version 2.8.5 -- CMake version (cleaned): cmake version 2.8.5 -- Try OpenMP C flag = [-fopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Success -- Try OpenMP CXX flag = [-fopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Success -- Found OpenMP: -fopenmp -- -- ---------------------------------------------------------------------------------- -- kipi-plugins 2.4.1 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 library found..... YES (optional) -- libopengl library found.................. YES (optional) -- Qt4 OpenGL module found.................. YES -- libopencv library found.................. YES (optional) -- QJson library found...................... YES (optional) -- libgpod library found.................... YES (optional) -- Gdk library found........................ YES (optional) -- libkdepim library found.................. YES (optional) -- qca2 library found....................... YES (optional) -- libkgeomap library found................. YES (optional) -- libmediawiki library found............... YES (optional) -- libkvkontakte library found.............. YES (optional) -- OpenMP library found..................... YES (optional) -- libX11 library found..................... YES (optional) -- libksane library found................... YES (optional) -- -- kipi-plugins will be compiled............ YES -- Shwup will be compiled................... YES (optional) -- YandexFotki will be compiled............. YES (optional) -- 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) -- Debian Screenshots will be compiled...... YES (optional) -- Facebook will be compiled................ YES (optional) -- VKontakte will be compiled............... YES (optional) -- IpodExport will be compiled.............. YES (optional) -- Calendar will be compiled................ YES (optional) -- GPSSync will be compiled................. YES (optional) -- Mediawiki will be compiled............... YES (optional) -- ---------------------------------------------------------------------------------- -- -- Found Qt-Version 4.7.4 (using /usr/bin/qmake) -- Found X11: /usr/lib/i386-linux-gnu/libX11.so CMake Warning (dev) at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:86 (INCLUDE): File /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake includes /usr/share/kde4/apps/cmake/modules/CMakeParseArguments.cmake (found via CMAKE_MODULE_PATH) which shadows /usr/share/cmake-2.8/Modules/CMakeParseArguments.cmake. This may cause errors later on . Policy CMP0017 is not set: Prefer files from the CMake module directory when including from there. Run "cmake --help-policy CMP0017" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindThreads.cmake:156 (INCLUDE) /usr/share/kde4/apps/cmake/modules/Qt4ConfigDependentSettings.cmake:32 (FIND_PACKAGE) /usr/share/kde4/apps/cmake/modules/FindQt4.cmake:1230 (INCLUDE) extra/kipi-plugins/photolayoutseditor/utils/qtpropertybrowser/CMakeLists.txt:3 (FIND_PACKAGE) This warning is for project developers. Use -Wno-dev to suppress it. -- Found Kipi library in cache: /usr/lib/libkipi.so -- Check if the system is big endian -- Searching 16 bit integer -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of unsigned short -- Check size of unsigned short - done -- Using unsigned short -- Check if the system is big endian - little endian -- ---------------------------------------------------------------------------------- -- Starting CMake configuration for: digikam -- checking for module 'lcms' -- found lcms, version 1.19 -- Found LCMS: /usr/lib/i386-linux-gnu/liblcms.so -- Found Jasper: /usr/lib/i386-linux-gnu/libjasper.so -- Check Kdcraw library in local sub-folder... -- Check Kdcraw library using pkg-config... -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig -- Found libkdcraw release >= 0.2.0 -- Found libkdcraw: /usr/lib/libkdcraw.so -- Check Kexiv2 library in local sub-folder... -- Check Kexiv2 library using pkg-config... -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig -- Found libkexiv2 release >= 1.0.0 -- Found libkexiv2: /usr/lib/libkexiv2.so -- Check Kipi library in local sub-folder... -- Check Kipi library using pkg-config... -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig -- Found libkipi release >= 1.0.0 -- Found libkipi: /usr/lib/libkipi.so -- Check Kface library in local sub-folder... -- Found Kface library in local sub-folder: /media/LINUX/trunk/digikam-2.4.1/extra/libkface -- Check for KGeoMap library in local sub-folder... -- Found KGeoMap library in local sub-folder: /media/LINUX/trunk/digikam-2.4.1/extra/libkgeomap -- checking for module 'libpgf' -- package 'libpgf' not found -- Could NOT find any working clapack installation -- Boost version: 1.46.1 -- Identified libjpeg version: 62 -- Found MySQL server executable at: /usr/sbin/mysqld -- Found MySQL install_db executable at: /usr/bin/mysql_install_db CMake Warning at core/CMakeLists.txt:251 (MESSAGE): libkdcraw: Version information not found, your version is probably too old. -- libkgeomap: Found version 2.0.0 -- Found gphoto2: -L/usr/lib -lgphoto2_port;-L/usr/lib -lgphoto2 -lgphoto2_port -lm -- Found LIBUSB: /usr/lib/libusb.so -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig -- Found LensFun: /usr/include -- WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig -- Performing Test HAVE_LQR_0_4 -- Performing Test HAVE_LQR_0_4 - Success -- Found Lqr-1: /usr/include/lqr-1 -- Found Soprano: /usr/include -- Found SharedDesktopOntologies: /usr/share/ontology -- Found Nepomuk: /usr/lib/libnepomuk.so;/usr/lib/libsoprano.so -- Found SharedDesktopOntologies: /usr/share/ontology (found version "0.7.0", required is "0.2") -- Found Doxygen: /usr/bin/doxygen -- -- ---------------------------------------------------------------------------------- -- digiKam 2.4.1 dependencies results <http://www.digikam.org> -- -- Qt4 SQL module found..................... YES -- MySQL Server found....................... YES -- MySQL install_db tool found.............. YES -- libtiff library found.................... YES -- libpng library found..................... YES -- libjasper library found.................. YES -- liblcms library found.................... YES -- Boost Graph library found................ YES -- libkipi library found.................... YES -- libkexiv2 library found.................. YES -- libkdcraw library found.................. YES -- libkface library found................... YES -- libkgeomap library found................. YES -- libpgf library found..................... NO (optional - internal version used instead) -- libclapack library found................. NO (optional - internal version used instead) -- libgphoto2 and libusb libraries found.... YES (optional) -- libkdepimlibs library found.............. YES (optional) -- Nepomuk libraries found.................. YES (optional) -- libglib2 library found................... YES (optional) -- liblqr-1 library found................... YES (optional) -- liblensfun library found................. YES (optional) -- Doxygen found............................ YES (optional) -- digiKam can be compiled.................. YES -- ---------------------------------------------------------------------------------- -- -- Adjusting compilation flags for GCC version ( 4.6.1 ) -- Looking for dgettext -- Looking for dgettext - found -- Found Gettext: built in libc -- Configuring done -- Generating done -- Build files have been written to: /media/LINUX/trunk/digikam-2.4.1/build
Previous Compile Instructions - Digikam 2.0.0-beta4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | #remove digikam & kipi plugins if they are already installed sudo apt-get purge digikam digikam-data kipi-plugins kipi-plugins-common #install dependencies sudo apt-get install build-essential kdelibs5-dev kdepimlibs5-dev libboost-dev libcv-dev libcvaux-dev libexpat1-dev libglib2.0-dev libgphoto2-2-dev libhighgui-dev libjasper-dev libkipi-dev liblcms1-dev liblensfun-dev liblqr-1-0-dev libmarble-dev libqca2-dev libtiff4-dev libxml2-dev libxslt1-dev zlib1g-dev libboost-graph-dev opencv-doc sudo apt-get build-dep digikam sudo apt-get build-dep kipi-plugins #setup opencv sudo cp -R /usr/share/doc/opencv-doc/examples/haarcascades/haarcascades /usr/share/opencv/ sudo gunzip /usr/share/opencv/haarcascades/*.gz mkdir ~/trunk #build libface cd ~/trunk svn co -r 276 https://libface.svn.sourceforge.net/svnroot/libface libface cd libface/trunk mkdir build && cd build cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_EXAMPLES=1 -DBUILD_GUI=1 .. make sudo make install #build exiv2 cd ~/trunk svn checkout -r 2426 svn://dev.exiv2.org/svn/trunk exiv2 cd exiv2 mkdir build && cd build cmake -DCMAKE_INSTALL_PREFIX=/usr .. make sudo make install #Download digikam source here: http://sourceforge.net/projects/digikam/files/digikam/2.0.0-beta4/digikam-2.0.0-beta4.tar.bz2/download #Save it in ~/trunk folder cd ~/trunk tar xjf digikam-2.0.0-beta4.tar.bz2 cd digikam-2.0.0-beta4 mkdir build && cd build cmake -DCMAKE_INSTALL_PREFIX=/usr .. make sudo make install |





And how can i remove it in case of a new version?
Go back to each project’s build folder and type ‘sudo make uninstall’. To update the svn repositories, type ‘svn update’ in project folder. Example:
Hi,
thanks for your instructions! While following these, I got a problem compiling libface. Do you have a quick fix for this?
~/trunk/libface/trunk/build$ make
[ 5%] Building CXX object src/CMakeFiles/face.dir/LibFaceUtils.cpp.o
In file included from /home/maverick/trunk/libface/trunk/src/LibFaceUtils.cpp:36:
/home/maverick/trunk/libface/trunk/src/LibFaceUtils.h:41: fatal error: opencv/highgui.h: No such file or directory
compilation terminated.
make[2]: *** [src/CMakeFiles/face.dir/LibFaceUtils.cpp.o] Fehler 1
make[1]: *** [src/CMakeFiles/face.dir/all] Fehler 2
make: *** [all] Fehler 2
Thanks!
Sebastian
Here’s a tip to fix this kind of error:
and here’s the output:
So you need to install libhighgui-dev. Let me know how it goes
Hi,
thanks for this hint!
I had to install two additional packages for libface:
opencv/highgui.h => libhighgui-dev
opencv/cvaux.hj => libcvaux-dev
During “make” of digikam I received the following error:
[ 22%] Building CXX object extra/kipi-plugins/calendar/CMakeFiles/kipiplugin_calendar.dir/caltemplate.cpp.o
c++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See for instructions.
make[2]: *** [extra/kipi-plugins/calendar/CMakeFiles/kipiplugin_calendar.dir/caltemplate.cpp.o] Fehler 1
make[1]: *** [extra/kipi-plugins/calendar/CMakeFiles/kipiplugin_calendar.dir/all] Fehler 2
make: *** [all] Fehler 2
I don’t know. I just wanted to see how the new digikam works and I am not a developer.
Cheers
Sebastian
Hmm .. looks like you don’t have enough memory? run this command to check it:
Thanks man!
How did you know about memory and disk space?
Educated guess or did you see it from the error (because I didn’t…;-))?
Installation went through without further problems!
Cheers
Sebastian
Thanks for this great how to.
Unfortunately when I want to compile exiv2 I get the following error:
[ 91%] Building CXX object src/CMakeFiles/exiv2.dir/pngimage.cpp.o
Linking CXX shared library libexiv2.so
c++: /LIBPATH:../zlib-1.2.5/$(ConfigurationName): No such file or directory
make[2]: *** [src/libexiv2.so.10.0.0] Error 1
make[1]: *** [src/CMakeFiles/exiv2.dir/all] Error 2
make: *** [all] Error 2
Any ideas?
Thansk!
You haven’t installed all the needed libraries, please read the README file inside each project folder and read carefully the cmake output. I guess you need to install zlib dev file:
or you can just install all exiv2 dependencies:
Let me know the result.
zlib1g-dev is already installed.
What is interesting is that Ubuntu 10.10 comes with version 1.2.3.4 but cmake finds 1.2.5 in /usr/locale/include/
Could this be the source of the problem?
I have removed the zlib.h and zconf.h from that folder.
cmake now finds the correct version.
-- Found ZLIB: /usr/include (found version "1.2.3.4")but when using make it still looks for 1.2.5 (also after removing the build folder completely and creating it new).
Looks like latest exiv2 version (currently at rev 2427) needs zlib 1.2.5. We should use previous version for now. Goto exiv2 folder and run this command:
and re-compile
Thanks, that was it!
Thanks for the great tutorial. I’m very curious to see how Digikam 2.0 will look like.
Unfortunately compiling stops with the message
CMakeFiles/digikamdatabase.dir/__/libs/database/imagecopyright.cpp.o: file not recognized: File truncated
collect2: ld returned 1 exit status
make[2]: *** [lib/libdigikamdatabase.so.2.0.0] error 1
make[1]: *** [core/digikam/CMakeFiles/digikamdatabase.dir/all] error 2
make: *** [all] errors 2
Can you help?
Thanks!
I guess it’s just a glitch, re-create build folder and start again.
Hi. Nice work but it’s not working. Gives error:
jouni@PackardBell:~$ sudo apt-get build-dep digikam
Luetaan pakettiluetteloita… Valmis
Muodostetaan riippuvuussuhteiden puu
Luetaan tilatiedot… Valmis
E: Tiedostoa /var/lib/apt/lists/ubuntu.mirror.cambrium.nl_ubuntu_dists_karmic_main_source_Sources ei voitu avata – open (2: Tiedostoa tai hakemistoa ei ole)
jouni@PackardBell:~$ sudo apt-get build-dep digikam
Luetaan pakettiluetteloita… Valmis
Muodostetaan riippuvuussuhteiden puu
Luetaan tilatiedot… Valmis
E: Tiedostoa /var/lib/apt/lists/ubuntu.mirror.cambrium.nl_ubuntu_dists_karmic_main_source_Sources ei voitu avata – open (2: Tiedostoa tai hakemistoa ei ole)
jouni@PackardBell:~$
It’s “finnish” but it say that it can’t open => /var/lib/apt/lists/ubuntu.mirror.cambrium.nl_ubuntu_dists_karmic_main
What next. I’m a noobie.
myllyjo
Whats the output of this command:
The compilation ends with this error:
Linking CXX executable digikamthemedesigner
/usr/bin/ld: CMakeFiles/digikamthemedesigner.dir/__/libs/widgets/common/databasewidget.cpp.o: undefined reference to symbol 'QSqlDatabase::lastError() const'
/usr/bin/ld: note: 'QSqlDatabase::lastError() const' is defined in DSO /usr/lib64/libQtSql.so.4 so try adding it to the linker command line
/usr/lib64/libQtSql.so.4: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [core/themedesigner/digikamthemedesigner] Error 1
make[1]: *** [core/themedesigner/CMakeFiles/digikamthemedesigner.dir/all] Error 2
make: *** [all] Error 2
Any suggestions?
I’m not sure since I’m not familiar with 64 bit, this might be a bug in digikam or binutils/libc6. Anyway I have 2 suggestions for you:
- Create a config file (eg my64lib.conf) in /etc/ld.so.conf.d folder, add the following into the file:
Save it and run ‘sudo ldconfig’ then re-compile.
- Or disable theme designer in compilation option (remove -DENABLE_THEMEDESIGNER=yes)
Thanks for the tips. I omitted “-DENABLE_THEMEDESIGNER=yes”. After that, it compiled & installed without a hitch. Now it’s scanning my photo collection for faces.
Just tried to compile the “beta2″. Compiling stopped in the linking phase – undefined symbols (some GPS related functions) – seems there was going something wrong. After calling “cmake” without the “-DENABLE_THEMEDESIGNER=yes” – everything worked fine.
Thanks for the hint!
im getting this error….
“malik@malik-Aspire-M1830:~/trunk/libkexiv2/build$ make
malik@malik-Aspire-M1830:~/trunk/libkexiv2/build$ sudo make install
make: *** No rule to make target `install’. Stop.
malik@malik-Aspire-M1830:~/trunk/libkexiv2/build$ make install
make: *** No rule to make target `install’. Stop.
malik@malik-Aspire-M1830:~/trunk/libkexiv2/build$ sudo make install
make: *** No rule to make target `install’. Stop.
malik@malik-Aspire-M1830:~/trunk/libkexiv2/build$
im typing exactly what you have written on the tutorial… any help most appeciated…. i have never installed anything from source before…
You need to run cmake first, as shown above at line number 38.
it worked…. but it doesnt show in the menu… i tried opening via terminal.. but didnt work… how do i run it.. which command should i use… thank you for all the help and this great tutorial..
If it compiled successfully, you will find digikam shortcut in Graphics submenu or you can run this command in terminal:
i did run that very same command but it didnt run… it said digikam is not installed you can install it by typing
sudo apt-get install digikam…
but there was no error in compiling the software
Please post the cmake output here.
Thanks for the howto! I have this problem with libface.
[ 47%] Building CXX object examples/CMakeFiles/TestExample.dir/Test.cpp.o
/src/trunk/libface/trunk/examples/Test.cpp: In function ‘int main(int, char**)’:
/src/trunk/libface/trunk/examples/Test.cpp:108: error: no match for ‘operator=’ in ‘recognised = libface::LibFace::recognise(std::vector<libface::Face, std::allocator >*, int)((& finalresult), 1)’
/usr/include/c++/4.4/bits/vector.tcc:156: note: candidates are: std::vector& std::vector::operator=(const std::vector&) [with _Tp = std::pair, _Alloc = std::allocator<std::pair >]
make[2]: *** [examples/CMakeFiles/TestExample.dir/Test.cpp.o] Error 1
make[1]: *** [examples/CMakeFiles/TestExample.dir/all] Error 2
make: *** [all] Error 2
Any idea what I should do? I would like to have it enabled, coz it’s kind of cool.
Solved the problem by changing from revision 248 (default svn) to 245 that compiles without errors. Thanks for introducing me to the ‘svn checkout -r NUMBER’ option. It helped me to solve this.
rev. 276 works fine here.
[...] http://ubuntuku.org/22/how-to-install-compile-digikam-2-0-0-beta-from-source/ [...]
I have made a little bit of modifications and published it here……. its the same thing basically…. hope you dont mind. My intention is to spread it to as many people as i can…
http://www.mohamedmalik.com/?p=628
Once again thank you for your great tutorial….
thank you very match malik
I tried initially to install the latest versions for Exiv and libface, but the compilation failed. So I falled back on the revisions you used and it worked perfectly. Thanks for the tutorial.
im getting this error….when using line number..
svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdegraphics/libs/libkexiv2
~/trunk$ svn checkout svn://anonsvn.kde.org/home/kde/trunk/KDE/kdegraphics/libs/libkexiv2
svn: URL ‘svn://anonsvn.kde.org/home/kde/trunk/KDE/kdegraphics/libs/libkexiv2‘ doesn’t exist
You may skip it since it’s already included in digikam 2 source.
after removing beta 3 and after trying to compile digikam beta 4 im getting this error…
Starting CMake configuration for: libksane
CMake Error at /usr/share/kde4/apps/cmake/modules/FindPackageHandleStandardArgs.cmake:198 (MESSAGE):
Could NOT find Sane (missing: SANE_LIBRARY SANE_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/kde4/apps/cmake/modules/FindSane.cmake:19 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
extra/libksane/CMakeLists.txt:13 (FIND_PACKAGE)
any suggestions!
Open ~/trunk/digikam-2.0.0-beta4/extra/CMakeLists.txt and comment out the following lines:
Thank you that worked out….but now im getting this error msg….there was no issues in producing the make files but installation fails…
CMake Error at extra/libmediawiki/libmediawiki/cmake_install.cmake:72 (FILE):
file INSTALL cannot find
“/home/malik/trunk/digikam-2.0.0-beta4/build/extra/libmediawiki/libmediawiki/image.h”.
Call Stack (most recent call first):
extra/libmediawiki/cmake_install.cmake:51 (INCLUDE)
extra/cmake_install.cmake:42 (INCLUDE)
cmake_install.cmake:37 (INCLUDE)
make: *** [install] Error 1
malik@malik-Aspire-M1830:~/trunk/digikam-2.0.0-beta4/build$
Any suggestions or help is most appreciated!
Copy all libmediawiki header files to the build folder:
then run make install again.
it worked…thanks
I get only so far as this:
Do you have any idea what could be wrong?
Please post the output of the following command:
I should have mentioned I’m on Debian Sid but I think it’s the same one that’s in Natty:
libexiv2-10: Installed: 0.21.1-1 Candidate: 0.21.1-1 Version table: *** 0.21.1-1 0 1 http://ftp.debian.org/debian/ experimental/main amd64 Packages 100 /var/lib/dpkg/statusHi, please paste cmake output here.
I think your spam filter ate the output (there was a lot of output!). But I think you received it yes?
Oops sorry, yes I’ve got your post. Could you please paste it to pastebin.com and post the link here so everyone can follow this discussion.
Here is the output from cmake.
Plain link: http://pastebin.com/Hcahftt4
Please try it using cmake 2.8.3.
You’re the best! I’ve past the last 3 weeks trying to compile digikam!
To compile Digikam 2.0.0 release version i also needed to:
Many Thanks.
Its up and running.
Best Regards Gordon.
I will need to upgrade cmake as far as I see, can I use qmake instead, and how?
(Using Mint 10)
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
CMake Error at CMakeLists.txt:25 (CMAKE_MINIMUM_REQUIRED):
CMake 2.8.4 or higher is required. You are running version 2.8.2
– Configuring incomplete, errors occurred!
Thanks for any help.
Hi,
I have tried to compile digikam 2.5.0 on ubuntu 11.10 (not kubuntu) and I get the following error:
/home/cyril/tmp/digikam-2.5.0/core/utilities/setup/setupplugins.cpp: In member function ‘void Digikam::SetupPlugins::slotCheckAll()’:
/home/cyril/tmp/digikam-2.5.0/core/utilities/setup/setupplugins.cpp:161:20: error: ‘class KIPI::ConfigWidget’ has no member named ‘slotCheckAll’
/home/cyril/tmp/digikam-2.5.0/core/utilities/setup/setupplugins.cpp: In member function ‘void Digikam::SetupPlugins::slotClear()’:
/home/cyril/tmp/digikam-2.5.0/core/utilities/setup/setupplugins.cpp:168:20: error: ‘class KIPI::ConfigWidget’ has no member named ‘slotClear’
make[2]: *** [core/digikam/CMakeFiles/digikam.dir/__/utilities/setup/setupplugins.cpp.o] Error 1
make[1]: *** [core/digikam/CMakeFiles/digikam.dir/all] Error 2
make: *** [all] Error 2
any idea where I should look?
I have tried your repository but I cannot launch digikam
QSqlDatabasePrivate::removeDatabase: connection ‘ConnectionTest’ is still in use, all queries will cease to work.
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kbuildsycoca4 running…
kbuildsycoca4(8143)/kdecore (services) KServicePrivate::init: The desktop entry file “/usr/share/applications/kde4/koffice.desktop” has Type= “Application” but no Exec line
kbuildsycoca4(8143) KBuildServiceFactory::createEntry: Invalid Service : “/usr/share/applications/kde4/koffice.desktop”
digikam: symbol lookup error: digikam: undefined symbol: _ZN4KIPI21ImageCollectionSharedD2Ev
Could it be it works only if kubuntu installed? I have the regular ubuntu 11.10 distribution
What is about libclapack ?