使用ffmpeg库编译错误undefined reference to `BZ2_bzDecompressInit'
2013-12-21 03:01
399 查看
root@xubbwd-desktop:/home/ffmpeg/1_ffmpeg-2.1.1/install/ff_audio_enc# make
gcc muxing.c -o target -I ../include -L ../lib -lavformat -lavdevice -lavfilter -lavcodec -lavutil -lswresample -pthread -ldl -lswscale -lasound -lz -lm
../lib/libavformat.a(matroskadec.o): In function `matroska_decode_buffer':
/home/ffmpeg/1_ffmpeg-2.1.1/libavformat/matroskadec.c:1187: undefined reference to `BZ2_bzDecompressInit'
/home/ffmpeg/1_ffmpeg-2.1.1/libavformat/matroskadec.c:1202: undefined reference to `BZ2_bzDecompress'
/home/ffmpeg/1_ffmpeg-2.1.1/libavformat/matroskadec.c:1195: undefined reference to `BZ2_bzDecompressEnd'
/home/ffmpeg/1_ffmpeg-2.1.1/libavformat/matroskadec.c:1207: undefined reference to `BZ2_bzDecompressEnd'
collect2: ld returned 1 exit status
make: *** [all] 错误 1
解决办法:
参数后加上-lbz2
root@xubbwd-desktop:/home/ffmpeg/1_ffmpeg-2.1.1/install/ff_audio_enc# make
gcc muxing.c -o target -I ../include -L ../lib -lavformat -lavdevice -lavfilter -lavcodec -lavutil -lswresample -pthread -ldl -lswscale -lasound -lz -lm -lbz2
root@xubbwd-desktop:/home/ffmpeg/1_ffmpeg-2.1.1/install/ff_audio_enc#
gcc muxing.c -o target -I ../include -L ../lib -lavformat -lavdevice -lavfilter -lavcodec -lavutil -lswresample -pthread -ldl -lswscale -lasound -lz -lm
../lib/libavformat.a(matroskadec.o): In function `matroska_decode_buffer':
/home/ffmpeg/1_ffmpeg-2.1.1/libavformat/matroskadec.c:1187: undefined reference to `BZ2_bzDecompressInit'
/home/ffmpeg/1_ffmpeg-2.1.1/libavformat/matroskadec.c:1202: undefined reference to `BZ2_bzDecompress'
/home/ffmpeg/1_ffmpeg-2.1.1/libavformat/matroskadec.c:1195: undefined reference to `BZ2_bzDecompressEnd'
/home/ffmpeg/1_ffmpeg-2.1.1/libavformat/matroskadec.c:1207: undefined reference to `BZ2_bzDecompressEnd'
collect2: ld returned 1 exit status
make: *** [all] 错误 1
解决办法:
参数后加上-lbz2
root@xubbwd-desktop:/home/ffmpeg/1_ffmpeg-2.1.1/install/ff_audio_enc# make
gcc muxing.c -o target -I ../include -L ../lib -lavformat -lavdevice -lavfilter -lavcodec -lavutil -lswresample -pthread -ldl -lswscale -lasound -lz -lm -lbz2
root@xubbwd-desktop:/home/ffmpeg/1_ffmpeg-2.1.1/install/ff_audio_enc#
相关文章推荐
- 使用ffmpeg库编译错误undefined reference to `BZ2_bzDecompressInit'
- 使用ffmpeg库编译错误undefined reference to `BZ2_bzDecompressInit'
- cocos2d-x 使用ndk编译 x86 出现 in function Curl_resolv_timeout: undefined reference to 'sigsetjmp' 错误
- gcc 4.3.2 编译时 发生 error: redeclaration of C++ built-in type 'bool' 错误
- ADODB使用excel的"Cannot modify the design of table 'xxxx'. It is in a read-only database"的问题
- 使用gradle编译:重复jar包导致的错误Error:'...jdk1.8.0\bin\java.exe'' finished with non-zero exit value 2
- Libcurl使用OpenSSL编译出现undefined reference to `COMP_CTX_free'错误备忘
- JNI_OnLoad编译错误:request for member 'GetEnv' in something not a structure or union
- 继承QGraphicsItem 编译错误:error: no member named 'staticMetaObject' in 'QGraphicsItem'; did you mean sim
- 关于error C3163: '_vsnprintf': attributes inconsistent with previous declaration 编译错误的
- "An extender can't be in a different UpdatePanel than the control it extends." error really needs debugging information ,错误
- Visual Studio 2010 error C2065: '_In_opt_z_' : undeclared identifier 编译错误
- 使用log4cplus库,编译错误undefined reference to `log4cplus::Logger::Logger(log4cplus::Logger&&)'解决方法
- Uboot编译出下如下错误的一个原因:In function `__aeabi_ldiv0': (.text+0x8): undefined reference to `raise'
- 编译ffmpeg 'XXXX' follows non-static declaration错误解决办法
- Imagemagick + vs2008 的error C3163: '_vsnprintf': attributes inconsistent with previous declaration 编译错误
- VS中使用CXTPDockingPane出现的编译错误 error C2059: syntax error : 'constant' 解决
- 在VC中使用switch语句时遇到“error C2360: initialization of 'k' is skipped by 'case' label”的编译错误。
- JNI_OnLoad编译错误:request for member 'GetEnv' in something not a structure or union
- 编译错误:syntax error : identifier '__RPC__in'