之前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