我正在尝试按照以下说明在运行Ubuntu配对的Raspberry Pi 3模型B上编译alljoyn: link
当我运行第一个scons命令时,我收到以下错误:
scons: Building targets ...
[CXX] alljoyn_core/router/test/advtunnel.cc
In file included from /usr/include/endian.h:60:0,
from /usr/include/arm-linux-gnueabihf/bits/pthreadtypes.h:21,
from /usr/include/signal.h:361,
from alljoyn_core/router/test/advtunnel.cc:22:
/usr/include/arm-linux-gnueabihf/bits/byteswap.h: In function 'unsigned int __bswap_32(unsigned int)':
/usr/include/arm-linux-gnueabihf/bits/byteswap.h:44:31: sorry, unimplemented: Thumb-1 hard-float VFP ABI
__bswap_32 (unsigned int __bsx)
^
scons: *** [build/linux/arm/debug/obj/alljoyn_core/router/test/advtunnel.o] Error 1
我环顾四周,但未能找到解决此错误的方法。这些说明在Raspberian上运行良好,这使我相信它是一个发行版问题,但我不确定具体是什么。谁能告诉我是什么原因/如何解决这个错误?
编辑:添加构建命令
scons OS=linux CPU=arm WS=off OE_BASE=/usr BR=on BINDINGS=cpp CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-
答案 0 :(得分:0)
出于某种原因,您正在构建拇指代码。这是本机编译器还是交叉编译器?