![]() I have read that these variables do not propagate to the install commands. I am able to select the correct (vcpkg) ffmpeg in the configuration step, and my cmakecache appears to be accurate. I have been unsuccessful at creating a post_include_regex to select the right ffmpeg libraries in the RUNTIME_DEPENDENCY_SET block. so libraries into the installation folder. So there are no issues if I don’t try to copy the. Target_link_libraries(ffmpeg_test PRIVATE PkgConfig::FFMPEG)Īnd the error only comes during installation with these commands: install(TARGETS ffmpeg_test RUNTIME_DEPENDENCY_SET appDeps) Pkg_check_modules(FFMPEG REQUIRED IMPORTED_TARGET I find ffmpeg during configuration like this in my CMakeLists.txt: find_package(PkgConfig REQUIRED) ::AVCodec* codec = ::avcodec_find_encoder_by_name(codec_name.c_str()) So this function is okay: void say_hello(std::string codec_name) ![]() ![]() Additionally, if I define my functions that return ffmpeg types in the header using inline, I am able to install the ffmpeg libraries. The problem only seems to exist when I return a type defined in ffmpeg, but not for functions where I use ffmpeg functions and types internally. home/wanglab/mambaforge3/envs/moose/lib/libavutil.so.56 home/wanglab/mambaforge3/envs/moose/lib/./libavutil.so.56 home/wanglab/Programs/vcpkg/installed/圆4-linux-dynamic/lib/libavutil.so.56 However, on Linux, the install step fails with the following error message because I have multiple versions of ffmpeg on my system: CMake Error at build/cmake_install.cmake:100 (file):įile Multiple conflicting paths found for libavutil.so.56: dll) files using the RUNTIME_DEPENDENCY_SET option. I have a cmake project that creates a shared library that uses FFMPEG from vcpkg, and installs the shared library along with FFMPEG.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |