<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>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).</p>
<p>So I checked out the v7.5.0 tag on the qt5-maintenance branch,
ran "<span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;">project/scripts/installdeps-ubuntu.sh</span>"
and then "bootstrap.linux". the installdeps-ubuntu.sh script
reports "accepted" for all the packages it checks for.<br>
</span></p>
<p><span style="font-family:monospace">But running "bootstrap.linux"
returns:</span></p>
<p><span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;">./bootstrap.linux
</span><br>
qtpaths: could not find a Qt installation of ''
<br>
FAILED COMMAND: QT_INSTALL_PREFIX=`qtpaths --install-prefix`<br>
</span></p>
<p><span style="font-family:monospace">What do I do next? Why would
this work with the HEAD on master, but not on v7.5.0 on
qt5-maintenance?</span></p>
<p><span style="font-family:monospace">I'm doing all this inside a
chroot based on ubuntu jammy, if that matters.</span></p>
<div class="moz-cite-prefix">On 3/6/23 10:40,
<a class="moz-txt-link-abbreviated" href="mailto:digikam-devel-request@kde.org">digikam-devel-request@kde.org</a> wrote:<br>
</div>
<blockquote type="cite"
cite="mid:mailman.16181.1678117230.28244.digikam-devel@kde.org">
<pre class="moz-quote-pre" wrap="">Send Digikam-devel mailing list submissions to
<a class="moz-txt-link-abbreviated" href="mailto:digikam-devel@kde.org">digikam-devel@kde.org</a>
To subscribe or unsubscribe via the World Wide Web, visit
<a class="moz-txt-link-freetext" href="https://mail.kde.org/mailman/listinfo/digikam-devel">https://mail.kde.org/mailman/listinfo/digikam-devel</a>
or, via email, send a message with subject or body 'help' to
<a class="moz-txt-link-abbreviated" href="mailto:digikam-devel-request@kde.org">digikam-devel-request@kde.org</a>
You can reach the person managing the list at
<a class="moz-txt-link-abbreviated" href="mailto:digikam-devel-owner@kde.org">digikam-devel-owner@kde.org</a>
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
(<a class="moz-txt-link-abbreviated" href="mailto:loup+digikamdevel@lo-cal.org">loup+digikamdevel@lo-cal.org</a>)
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: <a class="moz-txt-link-abbreviated" href="mailto:loup+digikamdevel@lo-cal.org">loup+digikamdevel@lo-cal.org</a>
To: <a class="moz-txt-link-abbreviated" href="mailto:digikam-devel@kde.org">digikam-devel@kde.org</a>
Subject: Getting setup to compile digikam on Ubuntu 22.04
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:ceb4a85a-4122-e7e1-7ab8-33a935107542@lo-cal.org"><ceb4a85a-4122-e7e1-7ab8-33a935107542@lo-cal.org></a>
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:
<a class="moz-txt-link-freetext" href="https://www.digikam.org/download/git/">https://www.digikam.org/download/git/</a>
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:
<a class="moz-txt-link-freetext" href="https://www.digikam.org/api/index.html#externaldeps">https://www.digikam.org/api/index.html#externaldeps</a> 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: <a class="moz-txt-link-rfc2396E" href="http://mail.kde.org/pipermail/digikam-devel/attachments/20230306/75c5ba1c/attachment-0001.htm"><http://mail.kde.org/pipermail/digikam-devel/attachments/20230306/75c5ba1c/attachment-0001.htm></a>
------------------------------
Message: 2
Date: Mon, 6 Mar 2023 16:39:53 +0100
From: Gilles Caulier <a class="moz-txt-link-rfc2396E" href="mailto:caulier.gilles@gmail.com"><caulier.gilles@gmail.com></a>
To: digiKam developers room - digiKam - Manage your photographs as a
professional with the power of open source <a class="moz-txt-link-rfc2396E" href="mailto:digikam-devel@kde.org"><digikam-devel@kde.org></a>
Subject: Re: Getting setup to compile digikam on Ubuntu 22.04
Message-ID:
<a class="moz-txt-link-rfc2396E" href="mailto:CAHFG6sH7tZ2s6v6udg=mLPU-a+2pT5TWggYNqXb5uDyFEevQ3A@mail.gmail.com"><CAHFG6sH7tZ2s6v6udg=mLPU-a+2pT5TWggYNqXb5uDyFEevQ3A@mail.gmail.com></a>
Content-Type: text/plain; charset="UTF-8"
Hi,
Just use this script to install all dependencies under Ubuntu :
<a class="moz-txt-link-freetext" href="https://invent.kde.org/graphics/digikam/-/blob/master/project/scripts/installdeps-ubuntu.sh">https://invent.kde.org/graphics/digikam/-/blob/master/project/scripts/installdeps-ubuntu.sh</a>
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, <a class="moz-txt-link-rfc2396E" href="mailto:loup+digikamdevel@lo-cal.org"><loup+digikamdevel@lo-cal.org></a> a écrit :
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
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: <a class="moz-txt-link-freetext" href="https://www.digikam.org/download/git/">https://www.digikam.org/download/git/</a>
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: <a class="moz-txt-link-freetext" href="https://www.digikam.org/api/index.html#externaldeps">https://www.digikam.org/api/index.html#externaldeps</a> 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]
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
------------------------------
Subject: Digest Footer
_______________________________________________
Digikam-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Digikam-devel@kde.org">Digikam-devel@kde.org</a>
<a class="moz-txt-link-freetext" href="https://mail.kde.org/mailman/listinfo/digikam-devel">https://mail.kde.org/mailman/listinfo/digikam-devel</a>
------------------------------
End of Digikam-devel Digest, Vol 214, Issue 1
*********************************************
</pre>
</blockquote>
</body>
</html>