Cross compiling alljoyn framework on openwrt OS for pandboard

asked 2014-09-21 21:35:46 -0700

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.


As we are very new to alljoyn and would like to put alljoyn framework on openwrt and using pandboard. Our intention is to enable alljoyn and make it work on Pandaboard running with openWRT OS.

Below are the steps we followed to achieve this:

1) Downloaded alljoyn source code alljoyn-suite-14.06.00-src.tar.gz from "https://allseenalliance.org/source-code"

2) Got Openwrt prebuild images and Openwrt toolchain OpenWrt-Toolchain-omap4-for-arm_v7-a-gcc-4.6 from "http://downloads.openwrt.org/attitude_adjustment/12.09-rc2/omap4/generic/"

3) Started cross compliation of alljoyn. Below is the command used for it:

$scons V=1 ICE=off BR=on BT=off WS=off CPU=openwrt OS=openwrt BINDINGS="core,cpp" SERVICES="about,notification,controlpanel,config" VARIANT=release "TARGET_CFLAGS=-Os -pipe  -fPIC -fno-caller-saves -Wno-error=unused-but-set-variable -msoft-float" "TARGET_CC=$TARGET-gcc" "TARGET_CXX=$TARGET-g++" "TARGET_AR=$TARGET-ar" "TARGET_RANLIB=$TARGET-ranlib" "TARGET_LINK=$TARGET-gcc" "TARGET_CPPFLAGS=-I$OPENWRT_TARGET_BASE/usr/include -I$OPENWRT_TARGET_BASE/include -I$OPENWRT_TOOLCHAIN_BASE/usr/include -I$OPENWRT_TOOLCHAIN_BASE/include" "TARGET_PATH=$OPENWRT_TOOLCHAIN_BASE/bin:$OPENWRT_BASE/staging_dir/host/bin:$PATH" "TARGET_LINKFLAGS=-L$OPENWRT_TARGET_BASE/usr/lib -L$OPENWRT_TARGET_BASE/lib -L$OPENWRT_TOOLCHAIN_BASE/usr/lib -L$OPENWRT_TOOLCHAIN_BASE/lib" "STAGING_DIR=$OPENWRT_TARGET_BASE" $@

During compilation, we are getting below error:

Openwrt/tool/bin/arm-openwrt-linux-g++ -o common/build/openwrt/openwrt/release/obj/os/SslSocket.o -c -std=c++0x -fno-exceptions -Os -pipe -fPIC -fno-caller-saves -Wno-error=unused-but-set-variable -msoft-float -Wno-deprecated -DNDEBUG -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -Ibuild/openwrt/openwrt/release/dist/cpp/inc -Ibuild/openwrt/openwrt/release/dist/c/inc -Ibuild/openwrt/openwrt/release/dist/cpp/inc/alljoyn -Icommon/inc -Ibuild/openwrt/openwrt/release/dist/cpp/inc common/os/posix/SslSocket.cc
In file included from common/os/posix/SslSocket.cc:35:0:
common/os/posix/../../crypto/openssl/OpenSsl.h:25:25: fatal error: openssl/aes.h: No such file or directory compilation terminated.
scons: *** [common/build/openwrt/openwrt/release/obj/os/SslSocket.o] Error 1
scons: building terminated because of errors.

Please help with your suggestions to compile the above source code of alljoyn; Also please let us know are we following right approach. If any error in our approach, please guide us with appropriate steps.

Thanks in Advance.

Regards, Raghu

edit retag flag offensive close merge delete


Minor tweak to formatting only to improve readability

stevek ( 2014-09-22 12:30:34 -0700 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-09-22 12:40:43 -0700

stevek gravatar image

AllJoyn is dependent on OpenSSL. I have not tried building AllJoyn outside of OpenWrt using the cross-compilation tools you describe, but you will need to ensure that OpenSSL is part of your build environment.

The easiest way to build AllJoyn for OpenWrt is to use the package definitions by the AllJoyn OpenWrt feed. You can get information on building OpenWrt source code from www.openwrt.org and you can get information on adding the AllJoyn feed to OpenWrt here: https://wiki.allseenalliance.org/develop/openwrt .

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-09-21 21:35:46 -0700

Seen: 616 times

Last updated: Sep 24 '14