2016-10-07 30 views
0

請你能幫助Alljoyn編譯錯誤

我試圖設置CROSS_COMPILE標誌如下

出口CROSS_COMPILE =〜/工具/臂bcm2708/ARM-RPI-4.9.3-Linux的gnueabihf/bin/arm-linux-gnueabihf-

我收到以下錯誤消息?

$:~/alljoyn/src/alljoyn-16.04.00-src$ scons CPU=arm OS=linux BINDINGS=c,cpp WS=off 
scons: Reading SConscript files ... 
Checking c++ compiler support for -std=c++11 flag... (cached) yes 
Using OpenSSL crypto 
Building bindings: cpp, c 
Building services: 
GTEST_DIR not specified skipping common unit test build 
GTEST_DIR not specified skipping About Service unit test build 
GTEST_DIR not specified skipping alljoyn_core unit test build 
SQLITE_DIR not specified: skipping Security Manager sample program build 
GTEST_DIR not specified skipping alljoyn_c unit test build 
scons: done reading SConscript files. 
scons: Building targets ... 
     [CC]  alljoyn_c/test/bbcclient.c 
     [CXX]  alljoyn_c/src/AboutData.cc 
     [CXX]  common/crypto/openssl/CryptoAES.cc 
In file included from common/crypto/openssl/CryptoAES.cc:35: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的文件夾如下

export OPENSSL_ROOT=/home/alljoyn/deps/openssl 

回答

0

我想你可以把編譯參數爲CROSS_COMPILE =的/ usr/bin中/ ARM-Linux的gnueabihf-

而你需要安裝一些依賴關係:

命令和apt-get安裝建立必要的

sudo易於得到安裝Maven

命令和apt-get安裝scons的

命令和apt-get安裝的git

命令和apt-get安裝捲曲

命令和apt-get安裝OpenSSL的

sudo apt-get install libssl-dev

sudo apt-get install libjson0

命令和apt-get安裝libjson0-dev的

您可以參考此鏈接瞭解更多信息: https://gist.github.com/germanviscuso/30cfa7dfb041c12e6ba3