0

Cross compile for raspberry pi

asked 2015-05-26 19:12:50 -0800

jiwook gravatar image

updated 2015-05-26 19:54:48 -0800

I've tried to cross-compile alljoyn-core(AJSCL) on Ubuntu for raspberry-pi.

I used the below command.

scons OS=linux CPU=arm WS=off BD=on OE_BASE=/usr BINDINGS=cpp CROSS_COMPILE=~/raspberrypi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-

The compilation had been started. But, it was stopped searching for "openssl/aes.h" with the below error message. Actually, I installed "libssl-dev". I can find it on the location "/usr/include/openssl/aes.h".

Meanwhie, I can build it with other CPU options (like "openwrt", "x86_64"). Is there any missing parts to cross-compile AJSCL for raspberry-pi?

Please help me. Thanks in advance. :)


scons: Reading SConscript files ... Building bindings: cpp 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: done reading SConscript files. scons: Building targets ... [CXX] common/crypto/openssl/CryptoAES.cc In file included from common/crypto/openssl/CryptoAES.cc:36:0: common/crypto/openssl/OpenSsl.h:25:25: fatal error: openssl/aes.h: No such file or directory #include <openssl aes.h=""> ^ compilation terminated. scons: * [build/linux/arm/debug/obj/common/crypto/CryptoAES.o] Error 1 scons: building terminated because of errors.</openssl>

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-05-27 16:47:56 -0800

stevek gravatar image

fatal error: openssl/aes.h: No such file or directory

You are missing the OpenSSL library in your cross-compile tools. AllJoyn uses a couple functions from OpenSSL to compute cryptographic hashes.

Additionally, you may want to look at the information in this response question about cross-compiling: https://ask.allseenalliance.org/question/788/how-to-compile-suite-140600-on-beaglebone-black/#790

edit flag offensive delete publish link more

Comments

I've compiled the 14.12 version refering stevek's answer successfully. Thanks. But, I can't build the 15.04 version with the below message. --------------- [LINK] build/linux/arm/debug/obj/alljoyn_core/router/posix/alljoyn-daemon /home/jiwook.jung/alljoyn/rpi/rpi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf- raspbian/bin/../lib/gcc/arm-linux-gnueabihf/4.8.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lcap ----------------- I installed 'libcap-dev', 'libcap2-dev', 'libcap2-bin'. I can find the libcap.so on /lib/arm-linux-gnueabihf/ Should I install any other packages? Thanks.

jiwook ( 2015-05-31 19:21:17 -0800 )edit

libcap is the only new dependency for 15.04 that I am aware of.

stevek ( 2015-06-01 10:53:56 -0800 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-05-26 19:12:50 -0800

Seen: 655 times

Last updated: May 27 '15