Giter Site home page Giter Site logo

can't build on fedora about avp HOT 3 OPEN

SingingBush avatar SingingBush commented on May 25, 2024
can't build on fedora

from avp.

Comments (3)

neuromancer avatar neuromancer commented on May 25, 2024

Can you install libav, instead of ffmpeg? In fact, I don't know how libav is installed in Fedora (I'm using Arch/Ubuntu), but you should have the header files in /usr/include/libavcodec/

from avp.

SingingBush avatar SingingBush commented on May 25, 2024

to get libavcodec and other related stuff on Fedora you'd need to add the RPMfusion repository then sudo dnf install -y ffmpeg-devel which would give:

/usr/include/ffmpeg/libavcodec/
/usr/include/ffmpeg/libavdevice/
/usr/include/ffmpeg/libavfilter/
/usr/include/ffmpeg/libavformat/
/usr/include/ffmpeg/libavresample/
/usr/include/ffmpeg/libavutil/
/usr/include/ffmpeg/libpostproc/
/usr/include/ffmpeg/libswresample/
/usr/include/ffmpeg/libswscale/

I tried tweaking the find_component macro in CMakeFFmpegLibavMacros.cmake to get it working but didn't get it to work.

from avp.

runlevel5 avatar runlevel5 commented on May 25, 2024

It is because the headers are inside /usr/include/ffmpeg, you could patch the CMakeLists.txt to include that path

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1ae2a49..83ff5b4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,6 +26,8 @@ ENDIF(AVP_BUILD_TYPE STREQUAL "WEB")
 
 PROJECT(avp)
 
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I/usr/include/ffmpeg")

from avp.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.