[SOLVED] glmixer compilation error: libavcodec/avcodec.h: No such file or directory
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2008
    Location
    Germany
    Posts
    459
    Linux (Fedora) Firefox 63.0

    glmixer compilation error: libavcodec/avcodec.h: No such file or directory

    Hi,

    tried to compile glmixer, but that fails with:
    Code:
    /usr/bin/c++  -DCOMPILE_YEAR=2018 -DFFGLPATH=\"/usr/lib/glmixer/\" -DGLMIXER_REVISION=1833 -DGLMIXER_VERSION=1.7 -DGLM_FFGL -DGLM_LOGS -DGLM_SESSION -DGLM_SNAPSHOT -DGLM_TAG -DGLM_UNDO -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_WEBKIT_LIB -DQT_XML_LIB -I../libFreeFrameGL/FFGL-SDK-1.6/Include -I../libFreeFrameGL/FFGL-SDK-1.6/Source/FFGLPlugins -I../libFreeFrameGL/FFGL-SDK-1.6/Source/FFGLHost -I../src -Isrc -I../libQtProperty -I../libQtColorPicker -I../libOSCPack -isystem /usr/include/QtOpenGL -isystem /usr/include/QtSvg -isystem /usr/include/QtWebKit -isystem /usr/include/QtGui -isystem /usr/include/QtXml -isystem /usr/include/QtNetwork -isystem /usr/include/QtCore -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wno-write-strings -DGLM_LOGS -DGLM_UNDO -DGLM_FFGL -DGLM_SNAPSHOT -DGLM_SESSION -DGLM_TAG -O2 -g -DNDEBUG -MD -MT src/CMakeFiles/glmixer.dir/SourcePropertyBrowser.cpp.o -MF src/CMakeFiles/glmixer.dir/SourcePropertyBrowser.cpp.o.d -o src/CMakeFiles/glmixer.dir/SourcePropertyBrowser.cpp.o -c ../src/SourcePropertyBrowser.cpp
    In file included from ../src/SourcePropertyBrowser.cpp:55:
    ../src/CodecManager.h:7:10: fatal error: libavcodec/avcodec.h: No such file or directory
     #include <libavcodec/avcodec.h>
              ^~~~~~~~~~~~~~~~~~~~~~
    I use this rpm spec file glmixer.spec
    have somebody a idea ?

  2. #2
    PabloTwo's Avatar
    PabloTwo is offline "Registered User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    7,829
    Linux Chrome 71.0.3578.80

    Re: glmixer compilation error: libavcodec/avcodec.h: No such file or directory

    Code:
    [PabloTwo@fettel ~]$ locate libavcodec/avcodec.h
    /usr/include/ffmpeg/libavcodec/avcodec.h
    [PabloTwo@fettel ~]$ rpm -qf /usr/include/ffmpeg/libavcodec/avcodec.h
    ffmpeg-devel-4.0.3-1.fc28.x86_64

  3. #3
    Join Date
    Mar 2008
    Location
    Germany
    Posts
    459
    Linux (Fedora) Firefox 63.0

    Re: glmixer compilation error: libavcodec/avcodec.h: No such file or directory

    I have installed the ffmpeg-devel package.
    On f29 the includes files also located in /usr/include/ffmpeg/libavcodec/avcodec.h
    $ rpm -qf /usr/include/ffmpeg/libavcodec/avcodec.h
    ffmpeg-devel-4.0.3-1.fc29.x86_64

  4. #4
    PabloTwo's Avatar
    PabloTwo is offline "Registered User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    7,829
    Linux Chrome 71.0.3578.80

    Re: glmixer compilation error: libavcodec/avcodec.h: No such file or directory

    In the %prep section of the specfile,

    #sed -i -e 's|#include <libavcodec/avcodec.h>|#include "libavcodec/avcodec.h"|' src/CodecManager.h

    Possibly try setting that to: <ffmpeg/libavcodec/avcodec.h> as well as the others in that file? Just a guess but I really don't know.

    #include <libavcodec/avcodec.h>
    #include <libavformat/avformat.h>
    #include <libavfilter/avfilter.h>
    #include <libavdevice/avdevice.h>

  5. #5
    Join Date
    Mar 2008
    Location
    Germany
    Posts
    459
    Linux (Fedora) Firefox 63.0

    Re: glmixer compilation error: libavcodec/avcodec.h: No such file or directory

    Quote Originally Posted by PabloTwo
    In the %prep section of the specfile,

    #sed -i -e 's|#include <libavcodec/avcodec.h>|#include "libavcodec/avcodec.h"|' src/CodecManager.h

    Possibly try setting that to: <ffmpeg/libavcodec/avcodec.h> as well as the others in that file? Just a guess but I really don't know.

    #include <libavcodec/avcodec.h>
    #include <libavformat/avformat.h>
    #include <libavfilter/avfilter.h>
    #include <libavdevice/avdevice.h>
    this only generates this error message:

    In file included from ../src/CodecManager.h:7,
    from ../src/SourcePropertyBrowser.cpp:55:
    /usr/include/ffmpeg/libavcodec/avcodec.h:31:10: fatal error: libavutil/samplefmt.h: No such file or directory
    #include "libavutil/samplefmt.h"
    ^~~~~~~~~~~~~~~~~~~~~~~
    I will contact upstream.

  6. #6
    Join Date
    Oct 2010
    Location
    Canberra
    Posts
    3,016
    Linux Firefox 60.0

    Re: glmixer compilation error: libavcodec/avcodec.h: No such file or directory

    Can you add -I/usr/include/ffmpeg to the build command ?

    User error. Please replace user and try again

  7. #7
    Join Date
    Mar 2008
    Location
    Germany
    Posts
    459
    Linux (Fedora) Firefox 63.0

    Re: glmixer compilation error: libavcodec/avcodec.h: No such file or directory

    Thanks for your reply.
    I added the ffmpeg include path, now it compiles fine.

    One thing didn't work correct at compilation time,
    the libraries are installed to /usr/lib and not into %{_libdir}.

    glmixer spec file

  8. #8
    Join Date
    Mar 2008
    Location
    Germany
    Posts
    459
    Linux (Fedora) Firefox 63.0

    Re: glmixer compilation error: libavcodec/avcodec.h: No such file or directory

    ok, solved by adding LIBSUFFIX to lib path.
    # multilib support
    sed -i -e 's|set(FREEFRAME_INSTALL_DIR "./lib/${GLMIXER_BINARY}")|set(FREEFRAME_INSTALL_DIR "./lib${LIB_SUFFIX}/${GLMIXER_BINARY}")|' FreeFramePlugins/CMakeLists.txt

  9. #9
    Join Date
    Mar 2008
    Location
    Germany
    Posts
    459
    Linux (Fedora) Firefox 63.0

    Re: glmixer compilation error: libavcodec/avcodec.h: No such file or directory

    if I want to install the package, i get the message: error Failed dependencies

    rpm -ivh /home/martin/rpmbuild/RPMS/x86_64/glmixer-1.7.1833-1.fc29.x86_64.rpm
    error: Failed dependencies:
    libFreeFrameGL.so()(64bit) is needed by glmixer-1.7.1833-1.fc29.x86_64
    libOSCPack.so()(64bit) is needed by glmixer-1.7.1833-1.fc29.x86_64
    libQtColorPicker.so()(64bit) is needed by glmixer-1.7.1833-1.fc29.x86_64
    libQtProperty.so()(64bit) is needed by glmixer-1.7.1833-1.fc29.x86_64
    The missing libs are created but not installed.
    ./x86_64-redhat-linux-gnu/libFreeFrameGL/FFGL-SDK-1.6/libFreeFrameGL.so
    ./x86_64-redhat-linux-gnu/libOSCPack/libOSCPack.so
    ./x86_64-redhat-linux-gnu/libQtColorPicker/libQtColorPicker.so
    ./x86_64-redhat-linux-gnu/libQtProperty/libQtProperty.so

    what is wrong ?
    Last edited by TheBigRed; 6th December 2018 at 05:07 PM.

Similar Threads

  1. error:stdio.h:no such file or directory
    By oknee in forum Installation, Upgrades and Live Media
    Replies: 5
    Last Post: 7th June 2014, 04:07 PM
  2. error: stropts.h: No such file or directory
    By sandwich in forum Using Fedora
    Replies: 9
    Last Post: 7th January 2014, 04:06 AM
  3. [SOLVED]
    Metric (TFM) file not found - latex compilation error
    By kopete in forum Using Fedora
    Replies: 0
    Last Post: 23rd February 2012, 02:38 PM
  4. error: linux/mm.h: No such file or directory
    By sciconf in forum Using Fedora
    Replies: 0
    Last Post: 7th August 2006, 08:49 PM
  5. Replies: 3
    Last Post: 3rd April 2006, 10:30 PM

Posting Permissions

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