1

java jars(alljoyn.jar and sdk sample jars) are not built when cross compile

asked 2015-11-16 01:45:46 -0700

sreuland gravatar image

I was building 15.09 source with OS=openwrt CPU=openwrt on scons command line for cross compiling purposes, and I found that none of the java resources were built afterwards, I had to edit alljoyn_java/samples/SConscript and alljoyn_java/src/SConscript and include:

env['OS'] == 'openwrt'

Also, when cross compiling and wanting to build java bindings, should we include the target platform's jvm in TARGET_LINKFLAGS and TARGET_CPPFLAGS, I did, but not sure it was necessary, it successfully built, I need to run it still, but was curious what others are doing.

scons BINDINGS=cpp,java WS=off ICE=off SERVICES="about,notification,controlpanel,config,onboarding,sample_apps" OS=openwrt CPU=openwrt TARGET_CC=arm-linux-gnueabihf-gcc TARGET_CFLAGS="-fPIC -march=armv7 -I/home/user/alljoyn/jdk1.8.0_65/include" TARGET_CPPFLAGS="-fPIC -march=armv7 -I/home/user/alljoyn/jdk1.8.0_65/include -I/home/user/alljoyn/openssl/include" TARGET_CXX=arm-linux-gnueabihf-g++ TARGET_LINK=arm-linux-gnueabihf-gcc TARGET_LINKFLAGS="-L/home/user/alljoyn/jdk1.8.0_65/lib -L/home/user/alljoyn/jdk1.8.0_65/lib/arm -L/home/user/alljoyn/openssl/deps" TARGET_AR=arm-linux-gnueabihf-ar TARGET_RANLIB=arm-linux-gnueabihf-ranlib STAGING_DIR=/home/user/alljoyn/staging TARGET_PATH=$PATH

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-11-16 14:30:43 -0700

praveenb gravatar image

Your observation is accurate. This behavior is expected.

Java bindings haven't been built or tested for OpenWrt platform. Java bindings have only been built and tested on Windows, Linux and Android platforms. If you are able to successfully build and run Java bindings on OpenWrt, kindly consider contributing the changes you made.

edit flag offensive delete publish link more

Comments

the target isn't OpenWRT in this case, it's linux and armv7, specifying OS=openwrt CPU=openwrt on scons triggers the TARGET_* cross compile flags to be pulled.

sreuland ( 2015-11-17 02:07:44 -0700 )edit

you would be better served using the mailing list: https://lists.allseenalliance.org/mailman/listinfo/allseen-core

ry.jones ( 2015-11-20 17:50:23 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-11-16 01:45:46 -0700

Seen: 168 times

Last updated: Nov 20 '15