omegalib icon indicating copy to clipboard operation
omegalib copied to clipboard

Module 'oav' should search for ffmpeg install

Open derek-gerstmann opened this issue 8 years ago • 2 comments

The 'OAV' module assumes that the system include path already contains the 'libavcodec/avcodec.h' and related headers, and offers no CMAKE build option to override the FFMPEG_INCLUDE path. Attempting to set the CMAKE_C_FLAGS/CMAKE_CXX_FLAGS from the top-level OmegaLib build doesn't seem to work.

Please add a FindFFMPEG.cmake search routine, and/or an FFMPEG_INCLUDE config option!

Thanks!!

derek-gerstmann avatar Apr 04 '16 03:04 derek-gerstmann

Actually, it looks like the module CMakeLists.txt DOES search for FFMPEG, it just doesn't add the FFMPEG_INCLUDE as an option to the build. And it only looks in '/usr/include/ffmpeg', so for example, it doesn't work for non-system-wide installs, like those used by MacPorts, Fink, HomeBrew, etc.

derek-gerstmann avatar Apr 04 '16 04:04 derek-gerstmann

This is a known issue - oav is still under heavy testing. My suggestion is to fork and edit it to make it work on your system, then send a pull request so we can merge our respective changes.

febret avatar Apr 10 '16 04:04 febret