首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Alljoyn编译错误

Alljoyn编译错误
EN

Stack Overflow用户
提问于 2016-10-08 00:40:20
回答 1查看 167关注 0票数 0

你能帮帮我吗

我正在尝试设置CROSS_COMPILE标志,如下所示

导出CROSS_COMPILE=~/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-

我得到了下面的错误?

代码语言:javascript
复制
$:~/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文件夹,如下所示

代码语言:javascript
复制
export OPENSSL_ROOT=/home/alljoyn/deps/openssl
EN

回答 1

Stack Overflow用户

发布于 2016-10-10 13:52:02

我认为可以将编译参数设置为CROSS_ compile =/usr/bin/arm-linux-gnueabihf-

并且您需要安装一些依赖项:

sudo apt-get install build-essential

sudo apt-get install maven

sudo apt-get install scons

sudo apt-get install git

sudo apt-get install curl

sudo apt-get install openssl

sudo apt-get install libssl-dev

sudo apt-get install libjson0

sudo apt-get install libjson0-dev

有关更多信息,请访问以下链接:https://gist.github.com/germanviscuso/30cfa7dfb041c12e6ba3

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39922159

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档