[Digikam-users] compiling Digikam and Libkipi - Ubuntu 15.10

Andrew Goodbody ajg02 at elfringham.co.uk
Sat Oct 24 17:50:01 BST 2015


Thanks Gilles, that worked.

Andrew

On 24/10/15 15:55, Gilles Caulier wrote:
> I think that found the problem. the code is below :
>
> target_link_libraries(kipiplugin_imgur
>      PRIVATE
>          KF5kipiplugins
>          KF5::Kipi
>          KF5::KIOCore
>          KF5::WindowSystem
> )
> if(QTKOAUTH_FOUND)
>      target_link_libraries(kipiplugin_imgur ${QTKOAUTH_LIBRARIES})
> ^^^^^ problem here.
> endif()
>
> Sound like you have QtKOauth installed. Cmake want to
> link kipiplugin_imgur with it but there is no PUBLIC or PRIVATE rules
> relevant as with kipi, kiocore, windowsystem etc.
>
> fix :
>
> http://commits.kde.org/kipi-plugins/d1d462beab64a28759442fc293423c1a10924fa6
>
> Gilles Caulier
>
>
>
> 2015-10-24 12:01 GMT+02:00 Andrew Goodbody <ajg02 at elfringham.co.uk
> <mailto:ajg02 at elfringham.co.uk>>:
>
>     I have the same problem so here is my log.
>
>     $ ./bootstrap.linux
>     Qt      Install Path : /usr
>     KF5     Install Path : /usr
>     digiKam Install Path : /usr
>     --
>     ----------------------------------------------------------------------------------
>     -- Starting CMake configuration for: digikam-software-collection
>     -- Local shared libkipi will be compiled.......... YES
>     -- Local shared libksane will be compiled......... YES
>     -- Local shared libkface will be compiled......... YES
>     -- Local shared libmediawiki will be compiled..... YES
>     -- Local shared libkvkontakte will be compiled.... YES
>     -- Extract translations files..................... NO
>     -- Translations will be compiled.................. NO
>     -- Handbooks will be compiled..................... NO
>     -- Tests code will be compiled.................... YES
>     --
>     ----------------------------------------------------------------------------------
>     -- Starting CMake configuration for: libkipi
>     -- Found KF5: success (found version "5.15.0") found components:
>     I18n Config XmlGui Service
>
>     --
>     -- The following REQUIRED packages have been found:
>
>       * ECM (required version >= 1.1.0)
>       * Qt5Core
>       * Qt5Widgets
>       * Qt5Gui
>       * Qt5 (required version >= 5.2.0)
>       * Gettext
>       * PythonInterp
>       * KF5I18n
>       * KF5Config
>       * KF5XmlGui
>       * KF5Service
>       * KF5
>
>     --
>     ----------------------------------------------------------------------------------
>     -- Starting CMake configuration for: libkface
>     -- First try at finding OpenCV...
>     -- Great, found OpenCV on the first try.
>     -- OpenCV Root directory is: /usr/share/OpenCV
>     -- OpenCV: Found version 2.4.9.1 (required: 2.4.9)
>     -- OpenCV headers: /usr/include/opencv;/usr/include
>     -- OpenCV libs   :
>     opencv_core;opencv_highgui;opencv_objdetect;opencv_contrib;opencv_legacy;opencv_imgproc
>
>     --
>     -- The following OPTIONAL packages have been found:
>
>       * OpenCV
>
>     -- The following REQUIRED packages have been found:
>
>       * Gettext
>       * PythonInterp
>       * KF5I18n
>       * KF5Config
>       * KF5XmlGui
>       * KF5Service
>       * KF5
>       * ECM (required version >= 1.1.0)
>       * Qt5Core
>       * Qt5Widgets
>       * Qt5Sql
>       * Qt5Xml
>       * Qt5Gui
>       * Qt5 (required version >= 5.2.0)
>
>     -- -------------------------------------------
>     -- Starting CMake configuration for: libksane
>     -- SANE_FOUND:       TRUE
>     -- SANE_INCLUDE_DIR: /usr/include
>     -- SANE_LIBRARY:     /usr/lib/x86_64-linux-gnu/libsane.so
>     --
>     -- The following OPTIONAL packages have been found:
>
>       * OpenCV
>       * Sane
>
>     -- The following REQUIRED packages have been found:
>
>       * KF5XmlGui
>       * KF5Service
>       * KF5
>       * Qt5Sql
>       * ECM (required version >= 1.1.0)
>       * Qt5Core
>       * Qt5Gui (required version >= 5.4.2)
>       * Qt5Widgets
>       * Qt5Xml (required version >= 5.3.0)
>       * KF5Config (required version >= 5.1.0)
>       * Gettext
>       * PythonInterp
>       * KF5I18n (required version >= 5.1.0)
>       * KF5Wallet (required version >= 5.1.0)
>       * KF5WidgetsAddons (required version >= 5.1.0)
>       * KF5TextWidgets (required version >= 5.1.0)
>       * Qt5Test
>       * Qt5 (required version >= 5.2.0)
>
>     --
>     -- The following OPTIONAL packages have been found:
>
>       * OpenCV
>       * Sane
>
>     -- The following REQUIRED packages have been found:
>
>       * KF5XmlGui
>       * KF5Service
>       * KF5
>       * Qt5Sql
>       * Qt5Gui (required version >= 5.4.2)
>       * Qt5Widgets
>       * Qt5Xml (required version >= 5.3.0)
>       * KF5Config (required version >= 5.1.0)
>       * Gettext
>       * PythonInterp
>       * KF5I18n (required version >= 5.1.0)
>       * KF5Wallet (required version >= 5.1.0)
>       * KF5WidgetsAddons (required version >= 5.1.0)
>       * KF5TextWidgets (required version >= 5.1.0)
>       * ECM (required version >= 0.0.10)
>       * Qt5Core
>       * Qt5Network
>       * KF5CoreAddons (required version >= 5.5.0)
>       * KF5DocTools (required version >= 5.5.0)
>       * Qt5Test
>       * Qt5 (required version >= 5.2.0)
>
>     --
>     -- The following OPTIONAL packages have been found:
>
>       * OpenCV
>       * Sane
>
>     -- The following REQUIRED packages have been found:
>
>       * KF5
>       * Qt5Sql
>       * KF5Wallet (required version >= 5.1.0)
>       * KF5TextWidgets (required version >= 5.1.0)
>       * KF5DocTools (required version >= 5.5.0)
>       * ECM (required version >= 1.3.0)
>       * Qt5Core
>       * Qt5Network
>       * Qt5Gui (required version >= 5.4.2)
>       * Qt5WebKit
>       * Qt5Widgets
>       * Qt5 (required version >= 5.2)
>       * Qt5Xml (required version >= 5.3.0)
>       * KF5Config (required version >= 5.15.0)
>       * KF5Service (required version >= 5.15.0)
>       * KF5WidgetsAddons (required version >= 5.15.0)
>       * KF5Bookmarks (required version >= 5.15.0)
>       * KF5KIO (required version >= 5.3.0)
>       * Gettext
>       * PythonInterp
>       * KF5I18n (required version >= 5.3.0)
>       * KF5WebKit (required version >= 5.3.0)
>       * KF5CoreAddons (required version >= 5.3.0)
>       * Qt5Test (required version >= 5.2)
>
>     --
>     ----------------------------------------------------------------------------------
>     -- Starting CMake configuration for: kipi-plugins
>     -- Found Libical version 1.0
>     -- Found KF5: success (found version "4.82.0") found components:
>     Config WindowSystem XmlGui I18n KIO Service ThreadWeaver Archive
>     IconThemes CalendarCore
>     -- libkipi : use local library from /home/ag/src/dk5/extra/libkipi/
>     -- libkipi found         : TRUE
>     -- libkipi library       : KF5Kipi
>     -- libkipi includes      :
>     /home/ag/src/dk5/extra/libkipi/src;/home/ag/src/dk5/build/extra/libkipi/src;/home/ag/src/dk5/build/extra/libkipi
>     -- libkipi SO version  : 30
>     -- libmediawiki : use local library from
>     /home/ag/src/dk5/extra/libmediawiki/
>     -- libmediawiki found      : TRUE
>     -- libmediawiki library    : KF5MediaWiki
>     -- libmediawiki includes   :
>     /home/ag/src/dk5/extra/libmediawiki/;/home/ag/src/dk5/build/extra/libmediawiki
>     -- libkvkontakte : use local library from
>     /home/ag/src/dk5/extra/libkvkontakte/
>     -- libkvkontakte found      : TRUE
>     -- libkvkontakte library    : KF5Vkontakte
>     -- libkvkontakte includes   :
>     /home/ag/src/dk5/extra/libkvkontakte/;/home/ag/src/dk5/build/extra/libkvkontakte
>     --
>     --
>     ----------------------------------------------------------------------------------
>     --  kipi-plugins 5.0.0-beta1 dependencies results
>       <http://www.digikam.org>
>     --
>     --  libqt found.............................. YES
>     --  libkde found............................. YES
>     --  libkipi found............................ YES
>     --  libmediawiki found....................... YES (optional)
>     --  libkvkontakte found...................... YES (optional)
>     --  libkcalcore found........................ YES (optional)
>     --  libphonon found.......................... YES (optional)
>     --  libqtkoauth found........................ YES (optional)
>     --  native Opengl support found.............. YES (optional)
>     --  Qt5 OpenGL module found.................. YES (optional)
>     --  libX11 found............................. YES (optional)
>     --
>     --  kipi-plugins will be compiled............ YES
>     --  ImageViewer will be compiled............. YES (optional)
>     --  Panorama will be compiled................ YES (optional)
>     --  VKontakte will be compiled............... YES (optional)
>     --  Mediawiki will be compiled............... YES (optional)
>     --  AdvancedSlideshow will be compiled....... YES (optional)
>     --  Calendar will be compiled................ YES (optional)
>     CMake Error at extra/kipi-plugins/imgur/CMakeLists.txt:37
>     (target_link_libraries):
>        The keyword signature for target_link_libraries has already been
>     used with
>        the target "kipiplugin_imgur".  All uses of target_link_libraries
>     with a
>        target must be either all-keyword or all-plain.
>
>        The uses of the keyword signature are here:
>
>         * extra/kipi-plugins/imgur/CMakeLists.txt:28 (target_link_libraries)
>
>
>
>     --
>     ----------------------------------------------------------------------------------
>     -- Starting CMake configuration for: digikam
>     -- Found KF5: success (found version "5.15.0") found components:
>     XmlGui CoreAddons Config NotifyConfig Notifications KIO Service
>     Completion WindowSystem Solid IconThemes I18n
>     -- Libjpeg version: 62
>     -- PGF library version required : 6.12.24
>     -- PGF_CODEC_VERSION_ID = 061412
>     -- PGF_VERSION          = 6.14.12
>     -- PGF_INCLUDE_DIRS     = /usr/include/libpgf
>     -- PGF_LIBRARIES        = /usr/lib/x86_64-linux-gnu/libpgf.so
>     -- PGF_LDFLAGS          =
>     -- PGF_CFLAGS           =
>     -- Boost version: 1.58.0
>     -- Found lcms version 2.06, /usr/lib/x86_64-linux-gnu/liblcms2.so
>     -- First try at finding OpenCV...
>     -- Great, found OpenCV on the first try.
>     -- OpenCV Root directory is: /usr/share/OpenCV
>     -- OpenCV: Found version 2.4.9.1 (required: 2.4.9)
>     -- OpenCV headers: /usr/include/opencv;/usr/include
>     -- OpenCV libs   :
>     opencv_core;opencv_highgui;opencv_objdetect;opencv_contrib;opencv_legacy;opencv_imgproc
>     -- libkipi : use local library from /home/ag/src/dk5/extra/libkipi/
>     -- libkipi found         : TRUE
>     -- libkipi library       : KF5Kipi
>     -- libkipi includes      :
>     /home/ag/src/dk5/build/extra/libkipi/src;/home/ag/src/dk5/build/extra/libkipi
>     -- libkipi SO version  : 30
>     -- libkface : use local library from /home/ag/src/dk5/extra/libkface/
>     -- libkface found        : TRUE
>     -- libkface library      : KF5KFace
>     -- libkface includes     :
>     /home/ag/src/dk5/build/extra/libkface/src;/home/ag/src/dk5/build/extra/libkface
>     -- libksane : use local library from /home/ag/src/dk5/extra/libksane/
>     -- libksane found      : TRUE
>     -- libksane library    : KF5Sane
>     -- libksane includes   :
>     /home/ag/src/dk5/extra/libksane/src;/home/ag/src/dk5/build/extra/libksane
>     -- Found KF5: success (found version "5.15.0") found components:
>     ItemModels Bookmarks
>     -- Found MySQL server executable at: /usr/sbin/mysqld
>     -- Found MySQL install_db executable at: /usr/bin/mysql_install_db
>     -- Found gphoto2: -lgphoto2_port;-lgphoto2 -lgphoto2_port -lm
>     -- Could NOT find LibUSB1 (missing:  LibUSB1_LIBRARIES)
>     -- LibUSB1_FOUND        = FALSE
>     -- LibUSB1_INCLUDE_DIRS = LibUSB1_TOP_INCLUDE_DIR-NOTFOUND/libusb-1.0
>     -- LibUSB1_LIBRARIES    = LibUSB1_LIBRARY-NOTFOUND
>     -- liblensfun: Found version 0.2.8.0 (required: 0.2.6.0)
>     --
>     --
>     ----------------------------------------------------------------------------------
>     --  digiKam 5.0.0-beta1 dependencies results   <http://www.digikam.org>
>     --
>     --  MySQL Database Support will be compiled.. YES (optional)
>     --  KInotify Support will be compiled........ NO  (optional)
>     --  MySQL Server found....................... YES
>     --  MySQL install_db tool found.............. YES
>     --  libqt found.............................. YES
>     --  libkde found............................. YES
>     --  libjpeg found............................ YES
>     --  libtiff found............................ YES
>     --  libpng found............................. YES
>     --  liblcms found............................ YES
>     --  libboostgraph found...................... YES
>     --  libpgf found............................. YES
>     --  libexiv2 found........................... YES
>     --  libopencv found.......................... YES
>     --  libexpat found........................... YES
>     --  native threads support found............. YES
>     --  libkipi found............................ YES (optional)
>     --  libkface found........................... YES (optional)
>     --  libmarble found.......................... YES (optional)
>     --  libksane found........................... YES (optional)
>     --  libkfilemetadata found................... YES (optional)
>     --  libakonadicontact found.................. NO  (optional)
>     --  digiKam will be compiled without KDE address book support.
>     --  Please install the libakonadicontact (version >= 5.0.0)
>     development package.
>     --
>     --  libjasper found.......................... YES (optional)
>     --  liblensfun found......................... YES (optional)
>     --  liblqr-1 found........................... YES (optional)
>     --  libeigen3 found.......................... YES (optional)
>     --  libgphoto2 found......................... NO  (optional)
>     --  digiKam will be compiled without GPhoto2 camera drivers support.
>     --  Please install the libgphoto2 (version >= 2.4.0) development
>     package.
>     --
>     --  doxygen found............................ YES (optional)
>     --  digiKam can be compiled.................. YES
>     --
>     ----------------------------------------------------------------------------------
>     --
>     -- LibRaw will be compiled with OpenMP support
>     -- LibRaw will be compiled with RedCine codec
>     -- Found Pthreads: /usr/lib/x86_64-linux-gnu/libpthread.so
>     -- Libjpeg >= version 8 depency not resolved. LibRaw cannot be
>     compiled with RawSpeed codec
>     -- Configuring incomplete, errors occurred!
>
>
>     On 24/10/15 10:22, Gilles Caulier wrote:
>
>
>
>         2015-10-23 19:37 GMT+02:00 Pedro Neves <nevesdiver at gmail.com
>         <mailto:nevesdiver at gmail.com>
>         <mailto:nevesdiver at gmail.com <mailto:nevesdiver at gmail.com>>>:
>
>
>              Gilles:
>
>              I've successfully compiled and installed Digikam 5 and
>         Kipi-plugins
>              from git, after struggling to get all the dependencies.
>              There are a few glitches still, as I couldn't find:
>
>              - libmediawiki:
>         https://projects.kde.org/projects/extragear/libs/libmediawiki/repository:
>              An error occurred on the page you were trying to access.
>
>              - libkvkontakte:
>         https://projects.kde.org/projects/extragear/libs/libkvkontakte/repository:
>              An error occurred on the page you were trying to access.
>
>
>
>         Web interface sound broken (Redmine CMS). One top level of urls
>         work fine.
>
>              Also:
>
>              On 23-10-2015 14:33, Gilles Caulier wrote:
>
>
>                  no need. Just install sub-components on your system and
>         cmake
>                  will detect it automatically. I do it here without problem.
>
>
>              I don't know how to build and install these sub-components
>              (libkfilemetadata and libakonadicontact).
>
>
>         https://projects.kde.org/projects/frameworks/kfilemetadata
>
>
>         https://projects.kde.org/projects/kde/kdepimlibs/repository/revisions/master/show/akonadi-contact
>
>         Both are optional and experimental. You can forget it for the
>         moment.
>
>         Note : kfilemetadata => KDE files indexer support => Baloo =>
>         bugs in
>         this KDE components : if nothing is really improved in this
>         implementation from Baloo team, i will remove it. Too much problem.
>
>
>              Finally, when I tried to re-compile kipi-plugins with a few
>         more
>              options, I got:
>
>              CMake Error at extra/kipi-plugins/imgur/CMakeLists.txt:37
>              (target_link_libraries):
>                 The keyword signature for target_link_libraries has
>         already been
>              used with
>                 the target "kipiplugin_imgur".  All uses of
>         target_link_libraries
>              with a
>                 target must be either all-keyword or all-plain.
>
>                 The uses of the keyword signature are here:
>
>                  * extra/kipi-plugins/imgur/CMakeLists.txt:28
>         (target_link_libraries)
>
>              Any hints?
>
>
>         Give me the full trace please
>
>         Gilles Caulier
>
>
>         _______________________________________________
>         Digikam-users mailing list
>         Digikam-users at kde.org <mailto:Digikam-users at kde.org>
>         https://mail.kde.org/mailman/listinfo/digikam-users
>
>     _______________________________________________
>     Digikam-users mailing list
>     Digikam-users at kde.org <mailto:Digikam-users at kde.org>
>     https://mail.kde.org/mailman/listinfo/digikam-users
>
>
>
>
> _______________________________________________
> Digikam-users mailing list
> Digikam-users at kde.org
> https://mail.kde.org/mailman/listinfo/digikam-users
>



More information about the Digikam-users mailing list