Open 0xhellord opened 7 months ago
The error message is telling you that you are missing dependencies. In this case pkg-config needed to get ffmpeg.
Did you follow the instructions from https://github.com/slint-ui/slint/tree/master/examples/ffmpeg#building ? Maybe it is missing an instruction on how to install pkg-config?
The error message is telling you that you are missing dependencies. In this case pkg-config needed to get ffmpeg.
Did you follow the instructions from https://github.com/slint-ui/slint/tree/master/examples/ffmpeg#building ? Maybe it is missing an instruction on how to install pkg-config?
Yes, I followed the instructions in the documentation.
I think the pkg-config in the error message is somewhat misleading.
The build.rs in ffmpeg-sys-next shows that if vcpkg failed, then fall back to pkg-config. On Windows, vcpkg should be preferred over pkg-config, as using pkg-config on Windows is particularly troublesome. It seems that the issue here is, why ffmpeg can be found in the vcpkg list, but ffmpeg-sys-next's try_vcpkg cannot find it.
I've also tried setting the FFMPEG_DIR environment variable, but it still doesn't work.
I plan to add some logs in ffmpeg-sys-next's build.rs and in vcpkg_rs to see what exactly is happening.
@ogoffart I found the reason, it requires llvm. I performed these steps and then it compiled successfully:
vcpkg install llvm[clang,target-x86]:x64-windows
, then set the environment variable LIBCLANG_PATH
to E:\DevEnv\Library\vcpkg\installed\x64-windows\bin
VCPKG_ROOT set to E:\DevEnv\Library\vcpkg.