Re: Digikam-devel Digest, Vol 214, Issue 1
[email protected] Sun, 19 Mar 2023 21:43:09 -0400
| Newsgroups | gmane.comp.kde.digikam.devel |
|---|---|
| Message-ID | <[email protected]> |
So I managed to get my compile working on the master branch at the HEAD, but I need to compile 7.5.0 because I'm trying to debug why my image duplicate finder isn't working anymore (I emailed the user list about this a couple of weeks ago, didn't get a good answer or insight). So I checked out the v7.5.0 tag on the qt5-maintenance branch, ran "project/scripts/installdeps-ubuntu.sh" and then "bootstrap.linux". the installdeps-ubuntu.sh script reports "accepted" for all the packages it checks for. But running "bootstrap.linux" returns: ./bootstrap.linux qtpaths: could not find a Qt installation of '' FAILED COMMAND: QT_INSTALL_PREFIX=`qtpaths --install-prefix` What do I do next? Why would this work with the HEAD on master, but not on v7.5.0 on qt5-maintenance? I'm doing all this inside a chroot based on ubuntu jammy, if that matters. On 3/6/23 10:40, [email protected] wrote: > Send Digikam-devel mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > https://mail.kde.org/mailman/listinfo/digikam-devel > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Digikam-devel digest..." > > > Today's Topics: > > 1. Getting setup to compile digikam on Ubuntu 22.04 > ([email protected]) > 2. Re: Getting setup to compile digikam on Ubuntu 22.04 > (Gilles Caulier) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 6 Mar 2023 10:26:21 -0500 > From:[email protected] > To:[email protected] > Subject: Getting setup to compile digikam on Ubuntu 22.04 > Message-ID:<ceb4a85a-4122-e7e1-7ab8-33a935107542-j++nt5AF77Idnm+yROfE0A@public.gmane.org> > Content-Type: text/plain; charset="utf-8"; Format="flowed" > > 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]| > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL:<http://mail.kde.org/pipermail/digikam-devel/attachments/20230306/75c5ba1c/attachment-0001.htm> > > ------------------------------ > > Message: 2 > Date: Mon, 6 Mar 2023 16:39:53 +0100 > From: Gilles Caulier<[email protected]> > To: digiKam developers room - digiKam - Manage your photographs as a > professional with the power of open source<[email protected]> > Subject: Re: Getting setup to compile digikam on Ubuntu 22.04 > Message-ID: > <CAHFG6sH7tZ2s6v6udg=mLPU-a+2pT5TWggYNqXb5uDyFEevQ3A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> > Content-Type: text/plain; charset="UTF-8" > > 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,<[email protected]> 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] >> >> > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > Digikam-devel mailing list > [email protected] > https://mail.kde.org/mailman/listinfo/digikam-devel > > > ------------------------------ > > End of Digikam-devel Digest, Vol 214, Issue 1 > *********************************************