Configure and Build OpenCV to Custom FFMPEG Install

前端 未结 4 1169
梦毁少年i
梦毁少年i 2021-02-05 16:37

I cannot seem to configure OpenCV to link to a non-/usr/lib set of FFMPEG libraries.

My LD_LIBRARY_PATH contains a direct link to the folder for the custom

4条回答
  •  再見小時候
    2021-02-05 17:03

    Something like

    export LD_LIBRARY_PATH=/ffmpeg_install_path/lib/
    export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/ffmpeg_install_path/lib/pkgconfig
    export PKG_CONFIG_LIBDIR=$PKG_CONFIG_LIBDIR:/ffmpeg_install_path/lib/
    

    should work. At least it works for OpenCV 2.4.x on my Ubuntu.

提交回复
热议问题