Getting setup to compile digikam on Ubuntu 22.04

Gilles Caulier caulier.gilles at gmail.com
Mon Mar 6 15:39:53 GMT 2023


Hi,

Just use this script to install all dependencies under Ubuntu :

https://invent.kde.org/graphics/digikam/-/blob/master/project/scripts/installdeps-ubuntu.sh

As you can see the file is present in the digiKam git repository, so
on your computer...

Best
Gilles Cauleir

Le lun. 6 mars 2023 à 16:26, <loup+digikamdevel at lo-cal.org> a écrit :
>
> I am trying to get setup to compile digikam for the first time on Ubuntu 22.04.
>
> I downloaded the git repo per this page:  https://www.digikam.org/download/git/
>
> I managed to get most of the dependencies installed by interpreting the "CMake Could not find" errors and looking at the list on this page:  https://www.digikam.org/api/index.html#externaldeps  It took some guessing at the package names, but I got most of it.
>
> However, this one error seems to not want to go away:
>
> CMake Error at /snap/clion/222/bin/cmake/linux/x64/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
>   Could NOT find FFmpeg (missing: AVDEVICE_LIBRARIES AVDEVICE_INCLUDE_DIRS
>   AVFILTER_LIBRARIES AVFILTER_INCLUDE_DIRS SWSCALE_LIBRARIES
>   SWSCALE_INCLUDE_DIRS)
>
> I have installed various ffmpeg and avcodec dev packages hoping that they fix the issue:  libavcodec-dev, libavutil-dev, libavformat-dev, libavfilter-dev.  As far as I can tell, my distro doesn't have an "ffmpeg-dev" package.
>
> How do I get past this error?
>
> I'm new to working with Qt based projects, so I would also appreciate if someone can recommend an IDE for me.  I use IntelliJ for java and python work, so I naturally took a look at CLion first - but I only get a 1 month trial license.  Is there a good free IDE I can use for Qt?
>
> Also not sure if this is related or not, but running bootstrap.linux gives this result:
>
>  ./bootstrap.linux
> qtpaths: could not find a Qt installation of ''
> FAILED COMMAND: QT_INSTALL_PREFIX=`qtpaths --install-prefix`
>
> Thanks in advance for any help offered.
>
> Here is the output of trying to run CMake inside of CLion:
>
> /snap/clion/222/bin/cmake/linux/x64/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/snap/clion/222/bin/ninja/linux/x64/ninja -G Ninja -S /home/<user>/Documents/Projects/digikam -B /home/<user>/Documents/Projects/digikam/cmake-build-debug
> -- CMake version: cmake version 3.24.2 (CMake; JetBrains IDE bundle; build 2)
> debugging support enabled
>
> CMake suite maintained and supported by Kitware (kitware.com/cmake).
>
> -- ----------------------------------------------------------------------------------
> -- Starting CMake configuration for digikam
> --
> Installing in /usr/local. Run /home/<user>/Documents/Projects/digikam/cmake-build-debug/prefix.sh to set the environment for digikam.
> -- ----------------------------------------------------------------------------------
> -- Top level compilation configuration for digikam
> --
> -- digikam will be compiled....................... YES
> -- Translations will be compiled.................. YES
> -- Tests code will be compiled.................... YES
> -- ----------------------------------------------------------------------------------
> -- Check dependencies for digikam version 8.0.0-beta1
> --
> -- Suitable Qt5 >= 5.14.0 detected: '5.15.3'.
> -- KF5::KIOWidgets include dirs: /usr/include/KF5/KIOWidgets;/usr/include/KF5
> -- Libjpeg version: 84
> -- Using libjpeg sub-directory: libjpeg/84
> -- Looking for LibJpeg Version...
> -- Found lcms version 2.12, /usr/lib/x86_64-linux-gnu/liblcms2.so
> -- HEIF_FOUND        = TRUE
> -- HEIF_INCLUDE_DIRS = /usr/include
> -- HEIF_LIBRARIES    = /usr/lib/x86_64-linux-gnu/libheif.so
> -- HEIF_DEFINITIONS  =
> -- HEIF_VERSION      = 1.12.0
> -- X265_FOUND        = TRUE
> -- X265_INCLUDE_DIRS = /usr/include
> -- X265_LIBRARIES    = /usr/lib/x86_64-linux-gnu/libx265.so
> -- X265_DEFINITIONS  =
> -- OpenCV Root directory is: /usr/lib/x86_64-linux-gnu/cmake/opencv4
> -- OpenCV: Found version 4.5.4 (required: 3.3.0)
> -- OpenCV headers: /usr/include/opencv4
> -- OpenCV libs   : opencv_core;opencv_objdetect;opencv_imgproc;opencv_imgcodecs;opencv_dnn;opencv_flann
> -- Marble_FOUND       = TRUE
> -- MARBLE_INCLUDE_DIR = /usr/include
> -- MARBLE_LIBRARIES   = /usr/lib/x86_64-linux-gnu/libmarblewidget-qt5.so
> -- ASTRO_LIBRARIES    = /usr/lib/x86_64-linux-gnu/libastro.so
> -- Could NOT find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR)
> -- FIND IMAGEMAGICK API Magick++
> -- FIND IMAGEMAGICK API MagickCore
> -- -DMAGICKCORE_HDRI_ENABLE=0
> -- -DMAGICKCORE_QUANTUM_DEPTH=16
> -- FIND IMAGEMAGICK API MagickWand
> -- -DMAGICKCORE_HDRI_ENABLE=0
> -- -DMAGICKCORE_QUANTUM_DEPTH=16
> -- Could NOT find ImageMagick (missing: ImageMagick_Magick++_LIBRARY) (found version "6.9.11-60")
> -- ImageMagick_FOUND:                      FALSE
> -- ImageMagick_VERSION_STRING:             6.9.11-60
> -- ImageMagick_EXECUTABLE_DIR:             /usr/bin
> -- ImageMagick_INCLUDE_DIRS:               /usr/include/ImageMagick-6;/usr/include/x86_64-linux-gnu/ImageMagick-6
> -- ImageMagick_LIBRARIES:                  /usr/lib/x86_64-linux-gnu/libMagickCore-6.Q16.so;/usr/lib/x86_64-linux-gnu/libMagickWand-6.Q16.so
> -- ImageMagick_DEFINITIONS:                -DMAGICKCORE_HDRI_ENABLE=0;-DMAGICKCORE_QUANTUM_DEPTH=16
> -- ImageMagick_Magick++_INCLUDE_DIRS:
> -- ImageMagick_Magick++_LIBRARY:         ImageMagick_Magick++_LIBRARY-NOTFOUND
> -- ImageMagick_Magick++_DEFINITIONS:
> -- ImageMagick_MagickCore_INCLUDE_DIRS:    /usr/include/ImageMagick-6;/usr/include/x86_64-linux-gnu/ImageMagick-6
> -- ImageMagick_MagickCore_LIBRARY:         /usr/lib/x86_64-linux-gnu/libMagickCore-6.Q16.so
> -- ImageMagick_MagickCore_DEFINITIONS:     -DMAGICKCORE_HDRI_ENABLE=0;-DMAGICKCORE_QUANTUM_DEPTH=16
> -- ImageMagick_MagickWand_INCLUDE_DIRS:    /usr/include/ImageMagick-6;/usr/include/x86_64-linux-gnu/ImageMagick-6
> -- ImageMagick_MagickWand_LIBRARY:         /usr/lib/x86_64-linux-gnu/libMagickWand-6.Q16.so
> -- ImageMagick_MagickWand_DEFINITIONS:     -DMAGICKCORE_HDRI_ENABLE=0;-DMAGICKCORE_QUANTUM_DEPTH=16
> -- OpenGL found:                                 TRUE
> -- OpenGL GLU extension found:                   YES
> -- Qt OpenGL found:                              1
> --
> -- --------------------------------------------------
> -- digiKam MediaPlayer dependencies checks:
> --
> CMake Error at /snap/clion/222/bin/cmake/linux/x64/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
>   Could NOT find FFmpeg (missing: AVDEVICE_LIBRARIES AVDEVICE_INCLUDE_DIRS
>   AVFILTER_LIBRARIES AVFILTER_INCLUDE_DIRS SWSCALE_LIBRARIES
>   SWSCALE_INCLUDE_DIRS)
> Call Stack (most recent call first):
>   /snap/clion/222/bin/cmake/linux/x64/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
>   core/cmake/modules/FindFFmpeg.cmake:189 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
>   core/cmake/rules/RulesMediaPlayer.cmake:14 (find_package)
>   core/CMakeLists.txt:112 (include)
>
>
> -- Configuring incomplete, errors occurred!
> See also "/home/<user>/Documents/Projects/digikam/cmake-build-debug/CMakeFiles/CMakeOutput.log".
>
> [Failed to reload]
>
>


More information about the Digikam-devel mailing list