尝试在OpenWrt环境中交叉编译软件包时与工具链相关的错误

时间:2019-05-30 09:44:42

标签: embedded-linux

我正在尝试使用OpenWRT工具链交叉编译OpenWRT Linux环境的软件包。我正在ubuntu 14上工作,目标是mips na300 Box。当我尝试交叉编译Box体系结构的软件包时发生错误,我认为这是工具链的问题,应替换为外部的。 我收到如下错误日志:

checking for strerror... (cached) yes
checking for strtol... yes
checking zlib version... ok (1.2.0.4 or later)
checking for library containing zlibVersion... -lz
checking whether mipsel-openwrt-linux-uclibc-g++ supports C++11 features           
by default... no
checking whether mipsel-openwrt-linux-uclibc-g++ supports C++11 features
with -std=c++11... no
checking whether mipsel-openwrt-linux-uclibc-g++ supports C++11 features   
with +std=c++11... no
checking whether mipsel-openwrt-linux-uclibc-g++ supports C++11 features 
with -h std=c++11... no
checking whether mipsel-openwrt-linux-uclibc-g++ supports C++11 features 
with -std=c++0x... no
checking whether mipsel-openwrt-linux-uclibc-g++ supports C++11 features 
with +std=c++0x... no
checking whether mipsel-openwrt-linux-uclibc-g++ supports C++11 features 
with -h std=c++0x... no
configure: error: *** A compiler with support for C++11 language features 
is required.
make[3]: *** [/home/test/smartlife-azure-integration/trunc 
/smartlife_openacs/automatic_builder/box_builder/openwrt-na9xx-  
r25875-20121204/build_dir/target-mipsel_r2_uClibc-0.9.32/protobuf-
3.7.1/.configured_] Error 1
make[3]: Leaving directory `/home/test/smartlife-azure-integration/trunc
/smartlife_openacs/automatic_builder/box_builder/openwrt-na9xx-
r25875-20121204/package/protobuf'
make[2]: *** [package/protobuf/compile] Error 2
make[2]: Leaving directory `/home/test/smartlife-azure-integration/trunc
/smartlife_openacs/automatic_builder/box_builder/openwrt-na9xx-
r25875-20121204'
make[1]: *** [/home/test/smartlife-azure-integration/trunc
/smartlife_openacs/automatic_builder/box_builder/openwrt-na9xx- 
r25875-20121204/staging_dir/target-mipsel_r2_uClibc-0.9.32/stamp
/.package_compile] Error 2
make[1]: Leaving directory `/home/test/smartlife-azure-integration/trunc
/smartlife_openacs/automatic_builder/box_builder/openwrt-na9xx-
r25875-20121204'
make: *** [world] Erreur 2

0 个答案:

没有答案