Windows下 ffmpeg+X264 编译,解决“libx264 not found”问题

Windows下 ffmpeg+X264 编译,解决“libx264 not found”问题

【问题】

$ ./configure --enable-shared --enable-gpl --enable-version3 --enable-libx264 --toolchain=msvc --prefix=./build
ERROR: libx264 not found
If you think configure made a mistake, make sure you are using the latest version from Git.  If the latest version fails, report the problem to the [email protected] mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "ffbuild/config.log" produced by configure as this will help solve the problem.

【解决方案】

通过设置x264 的 PKG_CONFIG_PATH,用以解决x264头文件的路径,解决x264依赖库的位置路径问题。

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig

./configure --enable-shared --enable-gpl --enable-version3 --enable-libx264 --toolchain=msvc --prefix=./build --extra-cflags="-I/usr/local/include/"

你可能感兴趣的:(Windows下 ffmpeg+X264 编译,解决“libx264 not found”问题)