<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>I am trying to get setup to compile digikam for the first time on
Ubuntu 22.04.</p>
<p>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></p>
<p>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.</p>
<p>However, this one error seems to not want to go away:</p>
<blockquote>
<p><code>CMake Error at
/snap/clion/222/bin/cmake/linux/x64/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230
(message):</code><code><br>
</code><code> Could NOT find FFmpeg (missing:
AVDEVICE_LIBRARIES AVDEVICE_INCLUDE_DIRS</code><code><br>
</code><code> AVFILTER_LIBRARIES AVFILTER_INCLUDE_DIRS
SWSCALE_LIBRARIES</code><code><br>
</code><code> SWSCALE_INCLUDE_DIRS)</code></p>
</blockquote>
<p>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.</p>
<p>How do I get past this error?</p>
<p>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?</p>
<p>Also not sure if this is related or not, but running
bootstrap.linux gives this result:</p>
<blockquote>
<p><code> ./bootstrap.linux </code><code></code><br>
<code></code><code>qtpaths: could not find a Qt installation of
''</code><code></code><br>
<code></code><code>FAILED COMMAND: QT_INSTALL_PREFIX=`qtpaths
--install-prefix`</code></p>
</blockquote>
<p>Thanks in advance for any help offered.</p>
<p>Here is the output of trying to run CMake inside of CLion:</p>
<blockquote>
<p><code>/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</code><code></code><br>
<code></code><code>-- CMake version: cmake version 3.24.2
(CMake; JetBrains IDE bundle; build 2)</code><code></code><br>
<code></code><code>debugging support enabled</code><code></code><br>
<code></code><code></code><br>
<code></code><code>CMake suite maintained and supported by
Kitware (kitware.com/cmake).</code><code></code><br>
<code></code><code></code><br>
<code></code><code>--
----------------------------------------------------------------------------------</code><code></code><br>
<code></code><code>-- Starting CMake configuration for digikam</code><code></code><br>
<code></code><code>-- </code><code></code><br>
<code></code><code>Installing in /usr/local. Run
/home/<user>/Documents/Projects/digikam/cmake-build-debug/prefix.sh
to set the environment for digikam.</code><code></code><br>
<code></code><code>--
----------------------------------------------------------------------------------</code><code></code><br>
<code></code><code>-- Top level compilation configuration for
digikam</code><code></code><br>
<code></code><code>-- </code><code></code><br>
<code></code><code>-- digikam will be
compiled....................... YES</code><code></code><br>
<code></code><code>-- Translations will be
compiled.................. YES</code><code></code><br>
<code></code><code>-- Tests code will be
compiled.................... YES</code><code></code><br>
<code></code><code>--
----------------------------------------------------------------------------------</code><code></code><br>
<code></code><code>-- Check dependencies for digikam version
8.0.0-beta1</code><code></code><br>
<code></code><code>-- </code><code></code><br>
<code></code><code>-- Suitable Qt5 >= 5.14.0 detected:
'5.15.3'.</code><code></code><br>
<code></code><code>-- KF5::KIOWidgets include dirs:
/usr/include/KF5/KIOWidgets;/usr/include/KF5</code><code></code><br>
<code></code><code>-- Libjpeg version: 84</code><code></code><br>
<code></code><code>-- Using libjpeg sub-directory: libjpeg/84</code><code></code><br>
<code></code><code>-- Looking for LibJpeg Version...</code><code></code><br>
<code></code><code>-- Found lcms version 2.12,
/usr/lib/x86_64-linux-gnu/liblcms2.so</code><code></code><br>
<code></code><code>-- HEIF_FOUND = TRUE</code><code></code><br>
<code></code><code>-- HEIF_INCLUDE_DIRS = /usr/include</code><code></code><br>
<code></code><code>-- HEIF_LIBRARIES =
/usr/lib/x86_64-linux-gnu/libheif.so</code><code></code><br>
<code></code><code>-- HEIF_DEFINITIONS = </code><code></code><br>
<code></code><code>-- HEIF_VERSION = 1.12.0</code><code></code><br>
<code></code><code>-- X265_FOUND = TRUE</code><code></code><br>
<code></code><code>-- X265_INCLUDE_DIRS = /usr/include</code><code></code><br>
<code></code><code>-- X265_LIBRARIES =
/usr/lib/x86_64-linux-gnu/libx265.so</code><code></code><br>
<code></code><code>-- X265_DEFINITIONS = </code><code></code><br>
<code></code><code>-- OpenCV Root directory is:
/usr/lib/x86_64-linux-gnu/cmake/opencv4</code><code></code><br>
<code></code><code>-- OpenCV: Found version 4.5.4 (required:
3.3.0)</code><code></code><br>
<code></code><code>-- OpenCV headers: /usr/include/opencv4</code><code></code><br>
<code></code><code>-- OpenCV libs :
opencv_core;opencv_objdetect;opencv_imgproc;opencv_imgcodecs;opencv_dnn;opencv_flann</code><code></code><br>
<code></code><code>-- Marble_FOUND = TRUE</code><code></code><br>
<code></code><code>-- MARBLE_INCLUDE_DIR = /usr/include</code><code></code><br>
<code></code><code>-- MARBLE_LIBRARIES =
/usr/lib/x86_64-linux-gnu/libmarblewidget-qt5.so</code><code></code><br>
<code></code><code>-- ASTRO_LIBRARIES =
/usr/lib/x86_64-linux-gnu/libastro.so</code><code></code><br>
<code></code><code>-- Could NOT find Jasper (missing:
JASPER_LIBRARIES JASPER_INCLUDE_DIR) </code><code></code><br>
<code></code><code>-- FIND IMAGEMAGICK API Magick++</code><code></code><br>
<code></code><code>-- FIND IMAGEMAGICK API MagickCore</code><code></code><br>
<code></code><code>-- -DMAGICKCORE_HDRI_ENABLE=0</code><code></code><br>
<code></code><code>-- -DMAGICKCORE_QUANTUM_DEPTH=16</code><code></code><br>
<code></code><code>-- FIND IMAGEMAGICK API MagickWand</code><code></code><br>
<code></code><code>-- -DMAGICKCORE_HDRI_ENABLE=0</code><code></code><br>
<code></code><code>-- -DMAGICKCORE_QUANTUM_DEPTH=16</code><code></code><br>
<code></code><code>-- Could NOT find ImageMagick (missing:
ImageMagick_Magick++_LIBRARY) (found version "6.9.11-60")</code><code></code><br>
<code></code><code>-- ImageMagick_FOUND:
FALSE</code><code></code><br>
<code></code><code>-- ImageMagick_VERSION_STRING:
6.9.11-60</code><code></code><br>
<code></code><code>-- ImageMagick_EXECUTABLE_DIR:
/usr/bin</code><code></code><br>
<code></code><code>-- ImageMagick_INCLUDE_DIRS:
/usr/include/ImageMagick-6;/usr/include/x86_64-linux-gnu/ImageMagick-6</code><code></code><br>
<code></code><code>-- ImageMagick_LIBRARIES:
/usr/lib/x86_64-linux-gnu/libMagickCore-6.Q16.so;/usr/lib/x86_64-linux-gnu/libMagickWand-6.Q16.so</code><code></code><br>
<code></code><code>-- ImageMagick_DEFINITIONS:
-DMAGICKCORE_HDRI_ENABLE=0;-DMAGICKCORE_QUANTUM_DEPTH=16</code><code></code><br>
<code></code><code>-- ImageMagick_Magick++_INCLUDE_DIRS: </code><code></code><br>
<code></code><code>-- ImageMagick_Magick++_LIBRARY:
ImageMagick_Magick++_LIBRARY-NOTFOUND</code><code></code><br>
<code></code><code>-- ImageMagick_Magick++_DEFINITIONS: </code><code></code><br>
<code></code><code>-- ImageMagick_MagickCore_INCLUDE_DIRS:
/usr/include/ImageMagick-6;/usr/include/x86_64-linux-gnu/ImageMagick-6</code><code></code><br>
<code></code><code>-- ImageMagick_MagickCore_LIBRARY:
/usr/lib/x86_64-linux-gnu/libMagickCore-6.Q16.so</code><code></code><br>
<code></code><code>-- ImageMagick_MagickCore_DEFINITIONS:
-DMAGICKCORE_HDRI_ENABLE=0;-DMAGICKCORE_QUANTUM_DEPTH=16</code><code></code><br>
<code></code><code>-- ImageMagick_MagickWand_INCLUDE_DIRS:
/usr/include/ImageMagick-6;/usr/include/x86_64-linux-gnu/ImageMagick-6</code><code></code><br>
<code></code><code>-- ImageMagick_MagickWand_LIBRARY:
/usr/lib/x86_64-linux-gnu/libMagickWand-6.Q16.so</code><code></code><br>
<code></code><code>-- ImageMagick_MagickWand_DEFINITIONS:
-DMAGICKCORE_HDRI_ENABLE=0;-DMAGICKCORE_QUANTUM_DEPTH=16</code><code></code><br>
<code></code><code>-- OpenGL
found: TRUE</code><code></code><br>
<code></code><code>-- OpenGL GLU extension
found: YES</code><code></code><br>
<code></code><code>-- Qt OpenGL
found: 1</code><code></code><br>
<code></code><code>-- </code><code></code><br>
<code></code><code>--
--------------------------------------------------</code><code></code><br>
<code></code><code>-- digiKam MediaPlayer dependencies checks:</code><code></code><br>
<code></code><code>-- </code><code></code><br>
<code></code><code>CMake Error at
/snap/clion/222/bin/cmake/linux/x64/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230
(message):</code><code></code><br>
<code></code><code> Could NOT find FFmpeg (missing:
AVDEVICE_LIBRARIES AVDEVICE_INCLUDE_DIRS</code><code></code><br>
<code></code><code> AVFILTER_LIBRARIES AVFILTER_INCLUDE_DIRS
SWSCALE_LIBRARIES</code><code></code><br>
<code></code><code> SWSCALE_INCLUDE_DIRS)</code><code></code><br>
<code></code><code>Call Stack (most recent call first):</code><code></code><br>
<code></code><code>
/snap/clion/222/bin/cmake/linux/x64/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594
(_FPHSA_FAILURE_MESSAGE)</code><code></code><br>
<code></code><code> core/cmake/modules/FindFFmpeg.cmake:189
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)</code><code></code><br>
<code></code><code> core/cmake/rules/RulesMediaPlayer.cmake:14
(find_package)</code><code></code><br>
<code></code><code> core/CMakeLists.txt:112 (include)</code><code></code><br>
<code></code><code></code><br>
<code></code><code></code><br>
<code></code><code>-- Configuring incomplete, errors occurred!</code><code></code><br>
<code></code><code>See also
"/home/<user>/Documents/Projects/digikam/cmake-build-debug/CMakeFiles/CMakeOutput.log".</code><code></code><br>
<code></code><code></code><br>
<code></code><code>[Failed to reload]</code><br>
</p>
</blockquote>
<br>
</body>
</html>