ubuntu编译FFMPEG报错ERROR: x265 not found using pkg-config
2017-07-05 10:59
691 查看
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
--prefix="$HOME/ffmpeg_build" \
--pkg-config-flags="--static" \
--extra-cflags="-I$HOME/ffmpeg_build/include" \
--extra-ldflags="-L$HOME/ffmpeg_build/lib" \
--bindir="$HOME/bin" \
--enable-gpl \
--enable-libass \
--enable-libfdk-aac \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libopus \
--enable-libtheora \
--enable-libvorbis \
--enable-libvpx \
--enable-libx264 \
--enable-libx265 \
--enable-nonfree
老是报
ERROR: x265 not found using pkg-config
开始以为是pkg-config版本太低,又以为是pkg-config出问题,baidu很久都没有解决问题。
我使用apt-get安装265的
发现用这个方法没有把相关信息加入pkg-config,导致pkg-config检索不到。
于是下载编译安装
OK,没有错误啦。
总结:不能全信apt-get ,必要的时候试试make install
--prefix="$HOME/ffmpeg_build" \
--pkg-config-flags="--static" \
--extra-cflags="-I$HOME/ffmpeg_build/include" \
--extra-ldflags="-L$HOME/ffmpeg_build/lib" \
--bindir="$HOME/bin" \
--enable-gpl \
--enable-libass \
--enable-libfdk-aac \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libopus \
--enable-libtheora \
--enable-libvorbis \
--enable-libvpx \
--enable-libx264 \
--enable-libx265 \
--enable-nonfree
老是报
ERROR: x265 not found using pkg-config
开始以为是pkg-config版本太低,又以为是pkg-config出问题,baidu很久都没有解决问题。
我使用apt-get安装265的
sudo apt-get install libx265-dev
发现用这个方法没有把相关信息加入pkg-config,导致pkg-config检索不到。
于是下载编译安装
sudo apt-get install cmake mercurial cd ~/ffmpeg_sources hg clone https://bitbucket.org/multicoreware/x265 cd ~/ffmpeg_sources/x265/build/linux PATH="$HOME/bin:$PATH" cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DENABLE_SHARED:bool=off ../../source make make install
OK,没有错误啦。
总结:不能全信apt-get ,必要的时候试试make install
相关文章推荐
- [FFmpeg-user] ERROR: libass not found using pkg-config
- ERROR: libass not found using pkg-config 执行ffmpeg ./configure的时候
- ERROR: x265 not found using pkg-config
- ERROR: libass not found using pkg-config 执行ffmpeg ./configure的时候
- ERROR: libass not found using pkg-config
- Ubuntu编译安装Php,配置时出现:Configure: error: XML configuration could not be found
- AndroidStudio编译error:app:validateReleaseSigning'Keystore file not found for signing config 'release
- ubuntu 下编译phpphp-5.6.17出错“configure: error: mcrypt.h not found.”
- ubuntu 下编译PHP5.5.7问题:configure: error: freetype.h not found.
- 解决编译Apache出现的问题:configure: error: APR not found . Please read the documentation
- 从编译ffmpeg/examples,进而了解pkg-config
- 解决编译apache出现的问题:configure: error: APR not found . Please read the documentation
- 编译android内核和文件系统,已经安装jdk,提示build/core/config.mk:268: *** Error: could not find jdk tools.jar
- 解决编译Apache出现的问题:configure: error: APR not found . Please read the documentation
- 从编译ffmpeg/examples,进而了解pkg-config
- 解决编译apache出现的问题:configure: error: APR not found . Please read the documentation
- 解决编译Apache出现的问题:configure: error: APR not found . Please read the documentation
- 解决编译apache出现的问题:configure: error: APR not found . Please read the documentation
- 解决编译apache出现的问题:configure: error: APR not found . Please read the documentation - ____哊.時^随记 - 51CTO技术博客
- 解决编译apache出现的问题:configure: error: APR not found . Please read the documentation