[SOLVED] Installing FFMpegThumbs-MattePaint
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2017
    Location
    Earth
    Posts
    27

    Installing FFMpegThumbs-MattePaint

    For anyone reading this in the future, here is the solution.

    ----------
    Original post:

    I found the following instructions to install FFMpegThumbs-MattePaint on Ubuntu:

    Code:
    sudo apt-get install git build-essential cmake extra-cmake-modules kio-dev pkg-config libavformat-dev libavcodec-dev libswscale-dev
    git clone git://anongit.kde.org/ffmpegthumbs 
    cd ffmpegthumbs 
    git checkout origin/frameworks 
    mkdir -p builddir 
    cd builddir && cmake .. -DCMAKE_INSTALL_PREFIX=$(kf5-config --prefix) -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
    Now I'm trying to install it on Fedora 27.
    Since `origin/frameworks` doesn't seem to exist anymore, I assumed it has been merged into the master, so I just skipped it..
    And because I have to use dnf, I also skipped the `apt-get install`..

    Then I ran `sudo dnf install cmake` because I got an error that it's missing..
    Then I ran the following form a new terminal:
    Code:
    git clone git://anongit.kde.org/extra-cmake-mod
    cd extra-cmake-modules
    mkdir build && cd build
    cmake ..
    make && sudo make install
    Then I switched back to the previous terminal and ran:

    Code:
    cmake .. -DCMAKE_INSTALL_PREFIX=$(kf5-config --prefix) -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
    which got me:

    Code:
    CMake Error at /usr/local/share/ECM/modules/ECMQueryQmake.cmake:30 (message):
      No qmake Qt5 binary found.  Can't check QT_INSTALL_PLUGINS as required
    Call Stack (most recent call first):
      /usr/local/share/ECM/kde-modules/KDEInstallDirs.cmake:473 (query_qmake)
      CMakeLists.txt:11 (include)
    
    
    -- Configuring incomplete, errors occurred!
    See also "/home/fedora/Projects/github/ffmpegthumbs/builddir/CMakeFiles/CMakeOutput.log".
    I have not been able to resolve that issue.

    I have tried the following:
    Code:
    sudo dnf install qt5
    sudo dnf install qt-devel
    sudo dnf install qt5-devel
    export qmake=/usr/lib64/qt5/bin/qmake
    PATH=$PATH:/usr/lib64/qt5/bin/
    ln -s /usr/lib64/qt5/bin/qmake ~/bin/qmake-qt5
    export QTDIR=/usr/lib64/qt5
    export QTLIB=/usr/lib64/qt5/lib
    export QTINC=/usr/lib64/qt5/include
    export QT_INSTALL_PLUGINS=/usr/lib64/qt5/plugin
    But nothing of that made a difference..

    Then I executed:

    Code:
    cmake .. -DCMAKE_INSTALL_PREFIX=$(kf5-config --prefix) -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -QT_INSTALL_PLUGINS=/usr/lib64/qt5/plugins/
    which resulted in:
    Code:
    CMake Error: The source directory "/home/fedora/Projects/github/ffmpegthumbs/builddir/-QT_INSTALL_PLUGINS=/usr/lib64/qt5/plugins" does not exist.                         
    Specify --help for usage, or press the help button on the CMake GUI.
    I'm running out of ideas... :/
    Last edited by forivin; 11th March 2018 at 12:18 PM.

  2. #2
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    6,606

    Re: Installing FFMpegThumbs-MattePaint

    have you at least done

    Code:
    sudo dnf group install "Development Tools"
    also, please refer to this post and wait for threads to be authorised if they don't appear straight away in future please

    https://forums.fedoraforum.org/showt...Not-Showing-Up!!!

  3. #3
    Join Date
    Aug 2017
    Location
    Earth
    Posts
    27

    Re: Installing FFMpegThumbs-MattePaint

    Well, I have now, but I still get the same error:
    Code:
    CMake Error at /usr/local/share/ECM/modules/ECMQueryQmake.cmake:30 (message):
      No qmake Qt5 binary found.  Can't check QT_INSTALL_PLUGINS as required
    Call Stack (most recent call first):
      /usr/local/share/ECM/kde-modules/KDEInstallDirs.cmake:473 (query_qmake)
      CMakeLists.txt:11 (include)
    
    
    -- Configuring incomplete, errors occurred!
    See also "/home/fedora/Projects/github/ffmpegthumbs/builddir/CMakeFiles/CMakeOutput.log".
    I attached `CMakeOutput.log` to this post.
    CMakeOutput.log

  4. #4
    Join Date
    Nov 2017
    Location
    Havant
    Posts
    177

    Re: Installing FFMpegThumbs-MattePaint

    Quote Originally Posted by forivin
    Well, I have now, but I still get the same error:
    Code:
    CMake Error at /usr/local/share/ECM/modules/ECMQueryQmake.cmake:30 (message):
      No qmake Qt5 binary found.  Can't check QT_INSTALL_PLUGINS as required
    Call Stack (most recent call first):
      /usr/local/share/ECM/kde-modules/KDEInstallDirs.cmake:473 (query_qmake)
      CMakeLists.txt:11 (include)
    
    
    -- Configuring incomplete, errors occurred!
    See also "/home/fedora/Projects/github/ffmpegthumbs/builddir/CMakeFiles/CMakeOutput.log".
    I attached `CMakeOutput.log` to this post.
    CMakeOutput.log
    As you seem completely clueless (as evidenced by the use of some lame ubuntu guide) it might be easier for to enable rpmfusion repo and run

    Code:
    sudo dnf install ffmpegthumbs
    or you could use rpmfusion repo to install the deps for you
    Code:
    sudo dnf builddep ffmpegthumbs

  5. #5
    Join Date
    Aug 2017
    Location
    Earth
    Posts
    27

    Re: Installing FFMpegThumbs-MattePaint

    Well, I already have this, but that is not actually what I want. I want the version that shows the thumbnails that are embedded to my mp4/mkv video files:
    https://www.linux-apps.com/p/1081015/
    https://cn.pling.com/img//hive/conte...1/153902-1.png

    The normal `ffmpegthumbs` only generates a thumbnail from a random frame of the video.

    Well, I just realized something... The guide that I followed wasn't actually for the MattePaint version. I have no clue why I ever thought it would be... Sorry, I feel really stupid now.

    I now found a build manual for `KF5` now: https://pastebin.com/vVQ6bfW7
    It was linked on the project page: https://www.linux-apps.com/p/1081015/
    Now when I download and extract the archive from the same website (153902-Upload2016060900.tar.gz) and then enter the directory "KF5/0.7 using ffmpeg-3.0/ffmpegthumbs-mattepaint" and run:
    Code:
    mkdir -p builddir
    cd builddir
    and then
    Code:
    cmake .. -DCMAKE_INSTALL_PREFIX=$(kf5-config --prefix) -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
    I get:
    Code:
    -- Could NOT find KF5KIO (missing: KF5KIO_DIR)
    -- Could NOT find KF5KIO: found neither KF5KIOConfig.cmake nor kf5kio-config.cmake 
    CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
      Could NOT find KF5 (missing: KIO)
    Call Stack (most recent call first):
      /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
      /usr/local/share/ECM/find-modules/FindKF5.cmake:110 (find_package_handle_standard_args)
      CMakeLists.txt:16 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "/home/fedora/Downloads/Upload2016060900/KF5/0.7 using ffmpeg-3.0/ffmpegthumbs-mattepaint/builddir/CMakeFiles/CMakeOutput.log".
    I ran `sudo dnf install kf5-kio`, but I still get the same error.
    I also searched for `KF5KIOConfig.cmake` and `kf5kio-config.cmake`, but without any results. And KF5KIO_DIR is empty.

    I should mention, I am running the KDE spin of Fedora 27.

    There is the new log:
    CMakeOutput.log
    Last edited by forivin; 11th March 2018 at 11:54 AM.

  6. #6
    Join Date
    Nov 2017
    Location
    Havant
    Posts
    177

    Re: Installing FFMpegThumbs-MattePaint

    Quote Originally Posted by forivin
    I also searched for `KF5KIOConfig.cmake` and `kf5kio-config.cmake`, but without any results. And KF5KIO_DIR is empty.

    I should mention, I am running the KDE spin of Fedora 27.

    There is the new log:
    CMakeOutput.log
    Did you have your eyes closed?

    Use this to search.

    Code:
    dnf whatprovides */KF5KIOConfig.cmake

  7. #7
    Join Date
    Aug 2017
    Location
    Earth
    Posts
    27

    Re: Installing FFMpegThumbs-MattePaint

    No, I just searched on my disk using `find`. I didn't know you could search in all packages using dnf, this is very handy. Using your command I found that `kf5-kio-devel` had to be installed.
    I got a few other errors after that and was able to resolve those by installing some more packages.

    Code:
    sudo dnf install kf5-kio-devel
    sudo dnf install ffmpeg-devel
    sudo dnf install gstreamer-plugins-ugly audacious-plugins-freeworld-mp3 xmms-mp3
    (I'm not sure if really all of them are required.)

    Then I ran `make` and got and error that seems like an error in the actual code:

    Code:
    [ 57%] Building CXX object CMakeFiles/ffmpegthumbs-mattepaint.dir/ffmpegthumbnailer/imagewriter.cpp.o
    /home/fedora/Downloads/Upload2016060900/KF5/0.7 using ffmpeg-3.0/ffmpegthumbs-mattepaint/ffmpegthumbnailer/imagewriter.cpp: In member function ‘virtual void ffmpegthumbnailer::ImageWriter::writeFrame(ffmpegthumbnailer::VideoFrame&, QImage&)’:
    /home/fedora/Downloads/Upload2016060900/KF5/0.7 using ffmpeg-3.0/ffmpegthumbs-mattepaint/ffmpegthumbnailer/imagewriter.cpp:65:41: error: expected ‘)’ before ‘and’
                 if ((image.height() <= 128) and (image.width() <= 128)) {
                                             ^~~
    /home/fedora/Downloads/Upload2016060900/KF5/0.7 using ffmpeg-3.0/ffmpegthumbs-mattepaint/ffmpegthumbnailer/imagewriter.cpp:76:41: error: expected ‘)’ before ‘and’
                 if ((image.height() <= 128) and (image.width() <= 128)) {
                                             ^~~
    /home/fedora/Downloads/Upload2016060900/KF5/0.7 using ffmpeg-3.0/ffmpegthumbs-mattepaint/ffmpegthumbnailer/imagewriter.cpp:88:41: error: expected ‘)’ before ‘and’
                 if ((image.height() <= 128) and (image.width() <= 128)) {
                                             ^~~
    /home/fedora/Downloads/Upload2016060900/KF5/0.7 using ffmpeg-3.0/ffmpegthumbs-mattepaint/ffmpegthumbnailer/imagewriter.cpp:100:41: error: expected ‘)’ before ‘and’
                 if ((image.height() <= 128) and (image.width() <= 128)) {
                                             ^~~
    make[2]: *** [CMakeFiles/ffmpegthumbs-mattepaint.dir/build.make:111: CMakeFiles/ffmpegthumbs-mattepaint.dir/ffmpegthumbnailer/imagewriter.cpp.o] Error 1
    make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/ffmpegthumbs-mattepaint.dir/all] Error 2
    make: *** [Makefile:141: all] Error 2
    So I tried to add `#include "iso646.h"` to the top of `imagewriter.cpp`, but it didn't help, so I got rid of that again and
    simply replaced the `and`s with `&&`s...

    Then the `make` did succeed and I was able to run `sudo make install` without a problem and everything works like a charm now.

    Thanks guys.

  8. #8
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    6,606

    Re: Installing FFMpegThumbs-MattePaint

    thanks for sharing the steps taken to resolve it too. not everyone bothers which is a pain in the backside for people looking for answers to the same questions in the future.

  9. #9
    Join Date
    Aug 2017
    Location
    Earth
    Posts
    27

    Re: Installing FFMpegThumbs-MattePaint

    No problem, it's the least I can do. I will probably have to do it again at some point anyway.
    I summarized everything so future visitors won't have to go through the whole thread.

    Code:
    # Make sure you have the rpm fusion repos enabled first
    # (You probably don't need all of the following packages, but this is how I did it)
    sudo dnf install qt5 qt-devel qt5-devel kf5-kio kf5-kio-devel ffmpeg-devel gstreamer-plugins-ugly audacious-plugins-freeworld-mp3 xmms-mp3 extra-cmake-modules
    sudo dnf group install "Development Tools"
    # Download the source code tar.gz archive from this site https://www.linux-apps.com/p/1081015/ 
    # Extract it
    # go to the sources folder that matches your system (I'm using KDE 5 Plasma, so I used ./KF5/)
    # pick a version form that folder. I picked the newest which was "./KF5/0.7 using ffmpeg-3.0" at the time of writing this
    # Then follow the compilation examples linked on the website
    # For me it was: https://pastebin.com/vVQ6bfW7
    # So I ran:
    cd ffmpegthumbs-mattepaint
    mkdir -p builddir
    cd builddir
    cmake .. -DCMAKE_INSTALL_PREFIX=$(kf5-config --prefix) -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
    make
    sudo make install
    
    # I got an error when running "make", so I had to edit this file:
    # "KF5/0.7 using ffmpeg-3.0/ffmpegthumbs-mattepaint/ffmpegthumbnailer/imagewriter.cpp"
    # and replaced all occurences of "and " with "&& " (only for the if statements)
    Last edited by forivin; 28th June 2018 at 09:50 PM.

Similar Threads

  1. Problem installing Fedora 15 x64 from installing CD
    By jackscorrow in forum Installation, Upgrades and Live Media
    Replies: 2
    Last Post: 14th October 2011, 04:31 PM
  2. Help installing Installing nVidia Drivers and 32bit OpenGL
    By Jeff91 in forum Installation, Upgrades and Live Media
    Replies: 3
    Last Post: 25th August 2009, 12:25 AM
  3. Installing yum package (installing gcc...)
    By jjnerd in forum Using Fedora
    Replies: 3
    Last Post: 3rd June 2009, 07:12 PM
  4. Replies: 11
    Last Post: 28th October 2008, 05:49 AM
  5. Problem installing updates after installing MySQL 4.1.11
    By garthbrown in forum Using Fedora
    Replies: 4
    Last Post: 26th May 2005, 06:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •