七分青年

七分青年

0个粉丝

43

问答

16

专栏

98

资料

七分青年  发布于  2020-11-03 14:32:18
采纳率 0%
43个问答
2168

用海思平台工具链交叉编译crtmp服务器出现然后出现一堆错误

 

用海思平台工具链交叉编译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
我来回答
回答1个
时间排序
认可量排序

七分青年

0个粉丝

43

问答

16

专栏

98

资料

七分青年 2020-11-03 14:32:46
认可0

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

或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
相关问答
无更多相似问答 去提问
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区