2012-04-06 48 views
1

當我編譯最新設的Libjingle,我發現了一些問題如下:錯誤與設的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 

誰能給我意見,如何解決這個問題?

謝謝。

回答

0

不熟悉libjingle庫,但編譯器所指的錯誤是因爲./configure命令(以前應該已經運行過)應該已經設置了目標(您的計算機)體系結構類型... x86,x86_64 ,手臂等

你應該研究該包的編譯選項有問題

+0

非常感謝您advise.It似乎又缺少configure.Try一些命令。 – Kane 2012-04-06 05:17:59

+0

fixed.It是一個包含路徑問題。 – Kane 2012-04-06 05:32:28

+0

你是怎麼解決這個問題的?似乎當我指定isysroot時,編譯器無法找到相對包含路徑。 – chris838 2012-08-05 23:02:23