使用ffmpeg库编译错误undefined reference to `BZ2_bzDecompressInit'
2012-12-26 17:43
393 查看
gcc -DNIGHT demo.c -lalgnight -lavcodec -lavdevice -lavfilter -lavformat -lavutil -lswresample -lswscale -lz -lm -o app
./libffmpeg/lib/libavformat.a(matroskadec.o): In function `matroska_decode_buffer':
/root/ffmpeg-0.11/libavformat/matroskadec.c:1100: undefined reference to `BZ2_bzDecompressInit'
解决办法:
参数后加上-lbz2
-lz 是对于zip的支持
-lm是对于数学函数的支持
./libffmpeg/lib/libavformat.a(matroskadec.o): In function `matroska_decode_buffer':
/root/ffmpeg-0.11/libavformat/matroskadec.c:1100: undefined reference to `BZ2_bzDecompressInit'
解决办法:
参数后加上-lbz2
-lz 是对于zip的支持
-lm是对于数学函数的支持
相关文章推荐
- 使用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' 错误
- Visual Studio 2010 error C2065: '_In_opt_z_' : undeclared identifier 编译错误
- VC中使用wxWidgets 出现的编译错误 error C2059: syntax error : 'constant' 解决
- MySQL 编译出现 error: 'SSL_OP_NO_COMPRESSION' undeclared (first use in this function) 错误
- Imagemagick + vs2008 的error C3163: '_vsnprintf': attributes inconsistent with previous declaration 编译错误
- linux 编译ffmpeg 出错:error: 'UINT64_C' was not declared in this scope
- 【OC易错】Xcode5.0新建OS X下的cmd工程后出现编译错误clang: error: invalid version number in '-mmacosx-version-min=
- GCC编译错误:error: 'for' loop initial declarations are only allowed in C99 mode
- ndk编译错误:error: 'nullptr' was not declared in this scope
- gcc 4.3.2 编译时 发生 error: redeclaration of C++ built-in type 'bool' 错误
- 使用gradle编译:重复jar包导致的错误Error:'...jdk1.8.0\bin\java.exe'' finished with non-zero exit value 2
- JNI_OnLoad编译错误:request for member 'GetEnv' in something not a structure or union
- 编译错误:syntax error : identifier '__RPC__in'
- Libcurl使用OpenSSL编译出现undefined reference to `COMP_CTX_free'错误备忘
- 继承QGraphicsItem 编译错误:error: no member named 'staticMetaObject' in 'QGraphicsItem'; did you mean sim
- 关于error C3163: '_vsnprintf': attributes inconsistent with previous declaration 编译错误的
- 在VC中使用switch语句时遇到“error C2360: initialization of 'k' is skipped by 'case' label”的编译错误。
- Visual Studio 2010 error C2065: '_In_opt_z_' : undeclared identifier 编译错误