decord icon indicating copy to clipboard operation
decord copied to clipboard

Compiling using cmake

Open nicholasguimaraes opened this issue 5 years ago • 4 comments
trafficstars

I'm trying to compile decord in windows using cmake but it cannot find ffmpeg.

I tried adding the path in decord/cmake/modulesFFmpeg.cmake

But it did not work.

Where do I need to add the path to ffmpeg.exe?

nicholasguimaraes avatar Jan 09 '20 19:01 nicholasguimaraes

See #17

zhreshold avatar Jan 09 '20 20:01 zhreshold

See #17 cmake -DCMAKE_CXX_FLAGS="/DDECORD_EXPORTS" -DCMAKE_CONFIGURATION_TYPES="Release" -G "Visual Studio 15 2017 Win64" -DFFMPEG_DIR:PATH="C:/ffmpeg-20191215-9fe0790-win64-static/bin/" ..

I'm passing the path to ffmpeg in the command line but still got this error:

-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) CMake Error at cmake/modules/FFmpeg.cmake:28 (message): Unable to find FFMPEG automatically, please specify FFMPEG location Call Stack (most recent call first): CMakeLists.txt:91 (include)

nicholasguimaraes avatar Jan 09 '20 22:01 nicholasguimaraes

See #17 cmake -DCMAKE_CXX_FLAGS="/DDECORD_EXPORTS" -DCMAKE_CONFIGURATION_TYPES="Release" -G "Visual Studio 15 2017 Win64" -DFFMPEG_DIR:PATH="C:/ffmpeg-20191215-9fe0790-win64-static/bin/" ..

I'm passing the path to ffmpeg in the command line but still got this error:

-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) CMake Error at cmake/modules/FFmpeg.cmake:28 (message): Unable to find FFMPEG automatically, please specify FFMPEG location Call Stack (most recent call first): CMakeLists.txt:91 (include)

Could you build the library, eventually? If yes then which FFmpeg version did you use? And how did you get the static version of FFmpeg? I am also trying to build the library in windows but could not build it from visual studio 2017. I just wanted to be sure whether it's because of the FFmpeg version or something else?!

ahasan016 avatar Oct 06 '21 13:10 ahasan016