clang fdk-aac 交叉編譯出錯

錯誤信息:

libSBRdec/src/lpp_tran.cpp:122:21: fatal error: log/log.h: No such file or directory
 #include "log/log.h"
                     ^
compilation terminated.
make: *** [Makefile:1575: libSBRdec/src/lpp_tran.lo] Error 1
  CXX      libSBRdec/src/lpp_tran.lo
libSBRdec/src/lpp_tran.cpp:122:21: fatal error: log/log.h: No such file or directory
 #include "log/log.h"
                     ^
compilation terminated.
make: *** [Makefile:1575: libSBRdec/src/lpp_tran.lo] Error 1

大佬解釋是:這是因爲fdk-aac已經作爲android的一部分被構建了,所以直接引入了android纔有的log庫打印一些日誌。

解決辦法:打開/libSBRdec/src/llp_tran.cpp源碼,把log相關的引用代碼和調用的地方刪掉即可。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章