Hello, I am trying to compile digikam-git on ubuntu 18.04 but keep getting this error message: -- FFMPEG_FOUND = FALSE I compiled ffmpeg myself but bootstrap did not find it. Then I installed ffmpeg from ubuntu repos but bootstrap can't seem to locate it either. I checked and the files /usr/lib/x86_64-linux-gnu/libavcodec.so; /usr/lib/x86_64-linux-gnu/libavformat.so; /usr/lib/x86_64-linux-gnu/libavutil.so; /usr/lib/x86_64-linux-gnu/libswscale.so actually exist, here is screenshots: https://www.flickr.com/gp/goreev/8B4172 https://www.flickr.com/gp/goreev/1iF173 https://www.flickr.com/gp/goreev/G584Fn https://www.flickr.com/gp/goreev/U2Bc83 Any ideas? Best regards, Andrey |
Hi, In fact, bootstrap bash script is just a configuration start. The whole configuration job is delegate to cmake, and about ffmpeg, the detection is performed by this script : There is a macro to check all ffmpeg component (header, library, compilation flags). Under Linux, it use the famous package_config files generated when ffmpeg is installed. Typically package_config must help quickly to found all components by an external tool as cmake. I suspect that you ffmpeg package_config file is not well adjusted (it's a simple text files with settings and path description). Can i see the whole DK configuration stage generated on the console, with the build sub-dir previously removed ? Best Gilles Caulier Le jeu. 15 nov. 2018 à 17:20, Andrey Goreev <[hidden email]> a écrit :
|
In reply to this post by AndriusWild
Hi,
Andrey Goreev wrote: > Hello, > > > I am trying to compile digikam-git on ubuntu 18.04 but keep getting this > error message: > > -- FFMPEG_FOUND = FALSE > -- FFMPEG_INCLUDE_DIRS = /usr/include/x86_64-linux-gnu > -- FFMPEG_LIBRARIES = > /usr/lib/x86_64-linux-gnu/libavcodec.so;/usr/lib/x86_64-linux-gnu/libavformat.so;/usr/lib/x86_64-linux-gnu/libavutil.so;/usr/lib/x86_64-linux-gnu/libswscale.so > -- FFMPEG_DEFINITIONS = > > I compiled ffmpeg myself but bootstrap did not find it. > > Then I installed ffmpeg from ubuntu repos but bootstrap can't seem to > locate it either. > > > I checked and the files > > /usr/lib/x86_64-linux-gnu/libavcodec.so; If you *run* a program then it's sufficient if the .so files are available. However, if you *build* a program then the associated header files need to be available so that the compiler knows which function a .so file provides, and how to call those functions. I don't run Ubuntu here, but if you install an ffmpeg package from a repo then there should be an associated ffmpeg-devel (or similar) package which provides the header files required to build a program with ffmpeg support. Same for other libraries that you need to build a program. As Gilles has already mentioned, many build scripts use the pkg-config tool to provide information about an installed package. However, if you build ffmpeg yourself without setting up a package first then the information for pkg-tool may not be available, so depending on how the build script is supposed to work, it *might* be unable to detect the header files and library when you try to build DK, just because pkg-tool doesn't have the associated information. Just my thoughts. ;-) Martin |
No, libavfilter is installed too... /usr/lib/x86_64-linux-gnu/libavfilter.so All libav* are installed along with their *-dev versions. Here is the complete output. Any ideas? ./bootstrap.linux Qt5 Install Path : /usr digiKam Install Path : /usr CMake binary : cmake Build Directory : /home/andrey/digikam/build -- ---------------------------------------------------------------------------------- -- Starting CMake configuration for: digikam-software-collection -- Main one documentation directory is missing. Compilation of documentation is disabled... -- Documentation translations directory is missing. -- You can use DIGIKAMSC_CHECKOUT_DOC option to extract doc i18n files from git repositories. -- ---------------------------------------------------------------------------------- -- Compilation configuration for: digikam-software-collection -- digiKam core will be compiled.................. YES -- Extract application translations files......... NO -- Extract documentation translations files....... NO -- Translations will be compiled.................. NO -- Handbooks will be compiled..................... NO -- Tests code will be compiled.................... YES -- ---------------------------------------------------------------------------------- -- Starting CMake configuration for: digikam -- Could not set up the appstream test. appstreamcli is missing. -- Could NOT find KF5Vkontakte: found neither KF5VkontakteConfig.cmake nor kf5vkontakte-config.cmake -- KF5::KIOWidgets include dirs: /usr/include/KF5/KIOWidgets;/usr/include/KF5 -- Libjpeg version: 84 -- Using libjpeg sub-directory: libjpeg/84 -- Boost version: 1.65.1 -- Found lcms version 2.09, /usr/lib/x86_64-linux-gnu/liblcms2.so -- EXIV2_FOUND = TRUE -- EXIV2_VERSION = 0.27.0 -- EXIV2_INCLUDE_DIR = /usr/local/include -- EXIV2_LIBRARY = /usr/local/lib/libexiv2.so -- EXIV2_DEFINITIONS = -- Could NOT find FFmpeg (missing: AVFILTER_LIBRARIES AVFILTER_INCLUDE_DIRS) -- FFMPEG_FOUND = FALSE -- FFMPEG_INCLUDE_DIRS = /usr/include/x86_64-linux-gnu -- FFMPEG_LIBRARIES = /usr/lib/x86_64-linux-gnu/libavcodec.so;/usr/lib/x86_64-linux-gnu/libavformat.so;/usr/lib/x86_64-linux-gnu/libavutil.so;/usr/lib/x86_64-linux-gnu/libswscale.so -- FFMPEG_DEFINITIONS = -- QtAV search path: /usr/lib/x86_64-linux-gnu/cmake -- Found QtAV version 1.12.0 -- QtAV_FOUND = TRUE -- QtAV_INCLUDE_DIR = /usr/include/x86_64-linux-gnu/qt5/QtAV /usr/include/x86_64-linux-gnu/qt5/QtAVWidgets -- QtAV_LIBRARIES = /usr/lib/x86_64-linux-gnu/libQtAV.so;/usr/lib/x86_64-linux-gnu/libQtAVWidgets.so -- QtAV_VERSION = 1.12.0 -- ENABLE_MEDIAPLAYER option is enabled but FFMpeg cannot be found. Media player support is disabled. -- First try at finding OpenCV... -- OpenCV Root directory is: /usr/local/lib/cmake/opencv4 -- OpenCV: Found version 4.0.0 (required: 3.1.0) -- OpenCV headers: /usr/local/include/opencv4 -- OpenCV libs : opencv_core;opencv_objdetect;opencv_imgproc;opencv_imgcodecs -- 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 -- libgphoto2 found : TRUE -- libgphoto2 version : 2.5.16 -- libgphoto2 includes : /usr/include/gphoto2 -- libgphoto2 libraries: /usr/lib/x86_64-linux-gnu/libgphoto2.so;/usr/lib/x86_64-linux-gnu/libgphoto2_port.so;/usr/lib/x86_64-linux-gnu/libusb-1.0.so -- libgphoto2 API version >= 2.5 -- liblensfun: Found version 0.3.2.0 (required: 0.2.6.0) -- -- -------------------------------------------------- -- digiKam RawEngine dependencies checks: -- -- RawEngine will be compiled with RedCine codec -- Looking for LibJpeg -- RawEngine will be compiled with DNG lossy codec -- Looking for PThreads -- -------------------------------------------------- -- -- -- ---------------------------------------------------------------------------------- -- digiKam 6.0.0-beta3 dependencies results <http://www.digikam.org> -- -- MySQL Database Support will be compiled.. YES (optional) -- MySQL Internal Support will be compiled.. YES (optional) -- DBUS Support will be compiled............ YES (optional) -- App. Style Support will be compiled...... YES (optional) -- QWebEngine Support will be compiled...... NO (optional) -- libboostgraph found...................... YES -- libexiv2 found........................... YES -- libexpat found........................... YES -- libjpeg found............................ YES -- libkde found............................. YES -- liblcms found............................ YES -- libopencv found.......................... YES -- libpng found............................. YES -- libpthread found......................... YES -- libqt found.............................. YES -- libtiff found............................ YES -- bison found.............................. YES (optional) -- doxygen found............................ YES (optional) -- flex found............................... YES (optional) -- libakonadicontact found.................. YES (optional) -- libeigen3 found.......................... YES (optional) -- libgphoto2 found......................... YES (optional) -- libjasper found.......................... YES (optional) -- libkcalcore found........................ YES (optional) -- libkvkontakte found...................... NO (optional) -- digiKam will be compiled without libkvkontakte support. -- Please install the libkvkontakte (version >= 4.70.0) development package. -- -- libkfilemetadata found................... YES (optional) -- libkiconthemes found..................... YES (optional) -- libkio found............................. YES (optional) -- libknotifications found.................. YES (optional) -- libknotifyconfig found................... YES (optional) -- libksane found........................... YES (optional) -- liblensfun found......................... YES (optional) -- liblqr-1 found........................... YES (optional) -- libmarble found.......................... YES (optional) -- libqtav found............................ YES (optional) -- libthreadweaver found.................... YES (optional) -- libxml2 found............................ YES (optional) -- libxslt found............................ YES (optional) -- OpenGL found............................. YES (optional) -- digiKam can be compiled.................. YES -- ---------------------------------------------------------------------------------- -- -- ==> Doxygen is found: TRUE -- ==> Graphviz Dot is found: YES -- To build API documentation use 'make doc' -- Configuring done -- Generating done -- Build files have been written to: /home/andrey/digikam/build Now run make in /home/andrey/digikam/build. On Fri, Nov 16, 2018 at 6:07 AM Andrey Goreev <[hidden email]> wrote:
|
But the problem is clear : -- Could NOT find FFmpeg (missing: AVFILTER_LIBRARIES AVFILTER_INCLUDE_DIRS) -- FFMPEG_FOUND = FALSE -- FFMPEG_INCLUDE_DIRS = /usr/include/x86_64-linux-gnu -- FFMPEG_LIBRARIES = /usr/lib/x86_64-linux-gnu/libavcodec.so;/usr/lib/x86_64-linux-gnu/libavformat.so;/usr/lib/x86_64-linux-gnu/libavutil.so;/usr/lib/x86_64-linux-gnu/libswscale.so -- FFMPEG_DEFINITIONS = ==> missing: AVFILTER_LIBRARIES AVFILTER_INCLUDE_DIRS It missng the fmmpeg header file (*.h), used to compile with digiKam. The libs (*.so) are for linking (stage2), the header (*.h) are for the compilation (stage1) In other words, your ffmpeg install in not complete or broken. Gilles Caulier Le ven. 16 nov. 2018 à 14:55, Andrey Goreev <[hidden email]> a écrit :
|
Hi Gilles I see that and trying to figure out what is broken. All the packages containing "avfilter" are installed along with their dev versions. I think the fact that I also have ffmpeg compiled by myself has something to do with the problem. I will try to purge all the ffmpeg packages and re-install. Sent from my Samsung Galaxy smartphone. -------- Original message -------- From: Gilles Caulier <[hidden email]> Date: 2018-11-16 7:01 AM (GMT-07:00) To: digiKam - Home Manage your photographs as a professional with the power of open source <[hidden email]> Subject: Re: [digiKam-users] bootstrap can't find ffmpeg But the problem is clear : -- Could NOT find FFmpeg (missing: AVFILTER_LIBRARIES AVFILTER_INCLUDE_DIRS) -- FFMPEG_FOUND = FALSE -- FFMPEG_INCLUDE_DIRS = /usr/include/x86_64-linux-gnu -- FFMPEG_LIBRARIES = /usr/lib/x86_64-linux-gnu/libavcodec.so;/usr/lib/x86_64-linux-gnu/libavformat.so;/usr/lib/x86_64-linux-gnu/libavutil.so;/usr/lib/x86_64-linux-gnu/libswscale.so -- FFMPEG_DEFINITIONS = ==> missing: AVFILTER_LIBRARIES AVFILTER_INCLUDE_DIRS It missng the fmmpeg header file (*.h), used to compile with digiKam. The libs (*.so) are for linking (stage2), the header (*.h) are for the compilation (stage1) In other words, your ffmpeg install in not complete or broken. Gilles Caulier Le ven. 16 nov. 2018 à 14:55, Andrey Goreev <[hidden email]> a écrit :
|
On 11/16/18 3:11 PM, Andrey Goreev wrote:
> Hi Gilles > > I see that and trying to figure out what is broken. > All the packages containing "avfilter" are installed along with their > dev versions. > > I think the fact that I also have ffmpeg compiled by myself has > something to do with the problem. > > I will try to purge all the ffmpeg packages and re-install. > After compiling ffmpeg or any software on debian/ubuntu, if you forget 'ldconfig' command, your system will not see it. |
I purged and reinstalled all ffmpeg libraries, cleaned 'build' folder and it is all good now. One question though, do I need this option: QWebEngine Support will be compiled...... NO (optional) Thanks, Andrey On Fri, Nov 16, 2018 at 11:04 AM <[hidden email]> wrote: On 11/16/18 3:11 PM, Andrey Goreev wrote: |
No, it's not important. You can use older Qt Webkit or newer Qt WebEngine. Both work as expected. These components are dedicated to dispaly web contents (googlemaps for ex) Gilles Caulier Le sam. 17 nov. 2018 à 14:58, Andrey Goreev <[hidden email]> a écrit :
|
Free forum by Nabble | Edit this page |