asked 2014-09-21 21:35:46 -0700
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.