How to compile suite-14.06.00 on BeagleBone Black?

asked 2014-07-13 22:55:10 -0700

lgramatikov gravatar image

updated 2014-07-16 09:58:55 -0700


I'm trying to compile alljoyn-suite-14.06.00_beta on BeagleBone Black (rev. A5A). It runs Debian 7.5-2014-05-14. I'm executing:

scons OS=linux CPU=arm BINDINGS=cpp,java OE_BASE=/usr

Using original SConscript in "/core/alljoyn/build_core/conf/linux/arm" results in an error saying:

"error:sorry, unimplemented: Thumb-1 hard-float VFP ABI"

After a change in SConscript:




env.Append(CPPFLAGS=['-march=armv7-a', '-mtune=cortex-a8', '-mfloat-abi=hard', '-mfpu=neon', '-fPIC'])

There are no errors during compilation.

On BBB, I've tested bbserver and JavaSDKDocSignalService (with JavaSDKDocSignalClient on different machine) and both are working fine.

I'll leave this as open question until someone else confirms the same result.

EDIT - updated 2014-07-16

For details on compiling AJTCL, please see answer by stevek below.

Regards, Laz

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-07-14 10:56:31 -0700

stevek gravatar image

updated 2014-07-16 09:14:49 -0700

OS=linux with CPU=arm is a very old vestige from the earliest days of development of the AllJoyn code base. This is an area of the scons files that need some cleaning up. If you are using a cross compiler, then try setting OS=openwrt and CPU=openwrt. This will allow setting many more options for specifying the cross-compiler tool chain.

Namely, you will need to set the following options to the appropriate values (the values I have below are for illustrative purposes only):

"TARGET_CFLAGS=-I/path/to/cross-tools/system/includes -DSOME_SYSTEM_DEFINE"
"TARGET_CPPFLAGS=-I/path/to/cross-tools/system/includes -DSOME_SYSTEM_DEFINE -DSOME_OTHER_DEFINE"

Note that the quotes are important for the options that include spaces in them.

The reason that OS=openwrt with CPU=openwrt is used for cross-compiling on Linux targets with arbitrary compilers is because OpenWrt is the first Linux based system supported by AllJoyn that required the ability to be able to cross compile with a broad set of compilers depending on the chosen target. So rather than make one AllJoyn platform per possible OpenWrt target, a more generic solution was created. This generic solution should work for any Linux based cross-compiler.

EDIT - updated 2014-07-16

Note that the answer above was for the original version of the question that asked how to build AllJoyn for BeagleBone Black when errors were encountered using OS=linux and CPU=arm.

The SCons files for the AJTCL code base will completely ignore OS= and CPU=. Instead, it uses a single TARG= option. For AJTCL, the following environment variables can be used to setup cross-compilation:

CROSS_CFLAGS="-march=armv7 -I/path/to/cross-tools/system/includes"
edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools



Asked: 2014-07-13 22:55:10 -0700

Seen: 1,747 times

Last updated: Jul 16 '14