Alljoyn Cross编译:Scons返回不存在的变量''alljoyn_jar''

时间:2016-05-03 16:41:32

标签: java cross-compiling scons alljoyn

Scons返回错误:scons:***返回不存在的变量''alljoyn_jar''

命令是:

scons BINDINGS=java OS=openwrt CPU=openwrt VARIANT=debug BUILD_SERVICES_SAMPLES=off POLICYDB=on WS=off
scons: Reading SConscript files ...
Building bindings: java
Building services: 
BULLSEYE_BIN not specified
Using OpenSSL crypto
GTEST_DIR not specified skipping common unit test build
BULLSEYE_BIN not specified
GTEST_DIR not specified skipping About Service unit test build
GTEST_DIR not specified skipping alljoyn_core unit test build

scons: *** Return of non-existent variable ''alljoyn_jar''
File "/home/pi/WORKING_DIRECTORY32/alljoyn-15.04.00-src/alljoyn_java/src/SConscript", line 48, in <module>

environment variable:

export CROSS_COMPILE_HOME=/opt/windriver/wrlinux/7.0-intel-quark/sysroots/quark-wrs-linux
export TARGET_PATH=$PATH
export TARGET_CC=gcc
export TARGET_CXX=g++
export TARGET_LINK=gcc
export TARGET_AR=ar
export TARGET_RANLIB=ranlib
export TARGET_CFLAGS="-I$CROSS_COMPILE_HOME/usr/lib/gcc/i586-windriverquark-linux/4.9.1/include -I$CROSS_COMPILE_HOME/usr/local/jdk1.7.0_79/include/"
export TARGET_CPPFLAGS=-I$CROSS_COMPILE_HOME/usr/lib/gcc/i586-windriverquark-linux/4.9.1/include
export TARGET_LDFLAGS=-L$CROSS_COMPILE_HOME/usr/lib
export TARGET_LINKFLAGS=$TARGET_LDFLAGS
export AJ_ROOT=$CROSS_COMPILE_HOME/compiled/alljoyn

export JAVA_HOME=$CROSS_COMPILE_HOME/usr/lib/jvm/java-7-openjdk/jre

你能帮帮我吗?

1 个答案:

答案 0 :(得分:0)

如果我没错,你试图在RaspberryPI上构建AllJoyn而Pi是基于ARM的CPU,所以你需要进行的第一次修正是

CPU=arm

其次,因为您尝试使用Java构建,所以需要交叉编译 CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-

有关在RaspberryPi Compiling on the RaspberryPi上提取的更详细步骤,您还可以查看Allseen Alliance Wiki Page