1

当我编译最新的 libjingle 时,我发现了以下一些问题:

scons: Building targets ...
________Compiling build/dbg/obj/third_party/srtp/crypto/kernel/err.o
third_party/srtp/crypto/kernel/err.c:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘err_level’
third_party/srtp/crypto/kernel/err.c:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
third_party/srtp/crypto/kernel/err.c:72: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘err_reporting_init’
third_party/srtp/crypto/kernel/err.c: In function ‘err_report’:
third_party/srtp/crypto/kernel/err.c:96: error: ‘va_list’ undeclared (first use in this function)
third_party/srtp/crypto/kernel/err.c:96: error: (Each undeclared identifier is reported only once
third_party/srtp/crypto/kernel/err.c:96: error: for each function it appears in.)
third_party/srtp/crypto/kernel/err.c:96: error: expected ‘;’ before ‘args’
third_party/srtp/crypto/kernel/err.c:98: error: ‘err_level’ undeclared (first use in this function)
cc1: warnings being treated as errors

谁能给我关于如何解决这个错误的建议?

谢谢你。

4

1 回答 1

0

不熟悉 libjingle 库,但是编译器所指的错误是因为 ./configure 命令(应该之前已经运行过)应该设置了目标(您的计算机)架构类型... x86、x86_64、arm 等

您应该研究相关软件包的编译选项

于 2012-04-06T04:47:23.687 回答