mjiarong 2016-08-23 02:30 采纳率: 50%
浏览 1980
已采纳

用海思平台工具链交叉编译crtmp服务器出现然后出现一堆错误,请问如何解决?

之前crtmpserver在虚拟机下编译通过,现在将cmake文件修改后进行交叉编译,然后出现一堆错误,日志如下,请问怎么解决呢?

[ 10%] Generating ../precompiled.gch/Debug.c++/common.gch
cc1plus: warning: include location "/usr/include" is unsafe for cross-compilation
In file included from /opt/hisi-linux/x86-arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/bits/locale_facets.h:43,
from /opt/hisi-linux/x86-arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/bits/basic_ios.h:39,
from /opt/hisi-linux/x86-arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/ios:45,
from /opt/hisi-linux/x86-arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/istream:40,
from /opt/hisi-linux/x86-arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/fstream:40,
from /home/fb/crtmpserver/sources/common/include/platform/linux/linuxplatform.h:41,
from /home/fb/crtmpserver/sources/common/include/platform/platform.h:32,
from /home/fb/crtmpserver/sources/common/include/common.h:24:
/opt/hisi-linux/x86-arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/arm-hisiv100-linux-uclibcgnueabi/bits/ctype_base.h:45: error: expected ';' before '*' token
/opt/hisi-linux/x86-arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/arm-hisiv100-linux-uclibcgnueabi/bits/ctype_base.h:49: error: '__ctype_mask_t' does not name a type
/opt/hisi-linux/x86-arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/arm-hisiv100-linux-uclibcgnueabi/bits/ctype_base.h:50: error: 'mask' does not name a type
/opt/hisi-linux/x86-arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/arm-hisiv100-linux-uclibcgnueabi/bits/ctype_base.h:51: error: 'mask' does not name a type
/opt/hisi-linux/x86-arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/arm-hisiv100-linux-uclibcgnueabi/bits/ctype_base.h:52: error: 'mask' does not name a type
/opt/hisi-linux/x86-arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/arm-hisiv100-linux-uclibcgnueabi/bits/ctype_base.h:53: error: 'mask' does not name a type
/opt/hisi-linux/x86-arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/arm-hisiv100-linux-uclibcgnueabi/bits/ctype_base.h:54: error: 'mask' does not name a type
/opt/hisi-linux/x86-arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/bits/locale_facets.h:162: error: 'mask' has not been declared
/opt/hisi-linux/x86-arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/bits/locale_facets.h:179: error: 'mask' has not been declared
/opt/hisi-linux/x86-arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/bits/locale_facets.h:195: error: expected ';' before '(' token
/opt/hisi-linux/x86-arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/bits/locale_facets.h:210: error: expected ';' before 'const'
/opt/hisi-linux/x86-arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/bits/locale_facets.h:211: error: expected ';' before '(' token
/opt/hisi-linux/x86-arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/bits/locale_facets.h:224: error: expected ';' before 'char_type'
m-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/bits/locale_facets.h:1192: error: 'mask' does not name a type
/opt/hisi-linux/x86-arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/bits/locale_facets.h:1223: error: expected ',' or '...' before '__m'
/opt/hisi-linux/x86-arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/bits/locale_facets.h:1243: error: 'mask' has not been declared
/opt/hisi-linux/x86-arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/bits/locale_facets.h:1262: error: 'mask' has not been declared
/opt/hisi-linux/x86-arm/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/include/c++/4.4.1/bits/locale_facets.h:1280: error: 'do_scan_is' declared as a 'virtual' field
make[2]: *** [precompiled.gch/Debug.c++/common.gch] Error 1
make[1]: *** [common/CMakeFiles/common_common_gch.dir/all] Error 2
make: *** [all] Error 2

  • 写回答

2条回答 默认 最新

  • mjiarong 2016-11-04 03:55
    关注

    原因已经找到,某些文件的宏定义要修改一下。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 51寻迹小车定点寻迹
  • ¥15 谁能帮我看看这拒稿理由啥意思啊阿啊
  • ¥15 关于vue2中methods使用call修改this指向的问题
  • ¥15 idea自动补全键位冲突
  • ¥15 请教一下写代码,代码好难
  • ¥15 iis10中如何阻止别人网站重定向到我的网站
  • ¥15 滑块验证码移动速度不一致问题
  • ¥15 Utunbu中vscode下cern root工作台中写的程序root的头文件无法包含
  • ¥15 麒麟V10桌面版SP1如何配置bonding
  • ¥15 Marscode IDE 如何预览新建的 HTML 文件