ERROR: libx264 not found

简介: ERROR: libx264 not found

嗯?吾明明编译了啊。怎么回事?有两种可能:


在编译264的时候,configure没有加参数。正确写法:

.

/configure \
    --prefix=${DEST_LIB_DIR} \
    --enable-shared

在编译ffmpeg的时候,需要指明libx264.so所在目录。

具体是这样指定的(注意:--extra-ldflags只能有一个)


BUILD_LIBS=${HOME}/build_libs
./configure \
    --prefix="${BUILD_LIBS}" \
    --extra-cflags="-I${BUILD_LIBS}/include" \
    --extra-ldflags="-L${BUILD_LIBS}/lib" \
    --bindir="${BUILD_LIBS}/bin"

这里只列出相关参数。

目录
相关文章
|
6月前
|
C语言 Windows
使用gstreamer GLib报错:failed to allocate 3080991032 bytes on
使用gstreamer GLib报错:failed to allocate 3080991032 bytes on
libtool: Version mismatch error 解决
libtool: Version mismatch error 解决
734 0
configure: error: libacl not found
configure: error: libacl not found
82 0
configure: error: gperf is needed
configure: error: gperf is needed
120 0
configure: error: cups-config not found
configure: error: cups-config not found
100 0
configure:13747: error: You requested FFmpeg (h264, h263, theora, mp4v-es) but not found...die
configure:13747: error: You requested FFmpeg (h264, h263, theora, mp4v-es) but not found...die
96 0
libtool: Version mismatch error
libtool: Version mismatch error
102 0
libtool: Version mismatch error. This is libtool 2.4.6, but the definition of this LT_INIT
libtool: Version mismatch error. This is libtool 2.4.6, but the definition of this LT_INIT
127 0
|
编解码
configure: error: You requested G729 audio codec but not found...die
configure: error: You requested G729 audio codec but not found...die
84 0
|
应用服务中间件 Linux nginx
./configure: error: C compiler cc is not found
./configure: error: C compiler cc is not found
825 0