【问题标题】:Alljoyn compilation errorAlljoyn 编译错误
【发布时间】:2017-04-06 20:15:54
【问题描述】:

请帮忙

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

export CROSS_COMPILE=~/tools/arm-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

【问题讨论】:

    标签: linux alljoyn


    【解决方案1】:

    我觉得你可以把编译参数写成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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-09-22
      • 1970-01-01
      • 1970-01-01
      • 2011-09-04
      相关资源
      最近更新 更多