2016-01-08 39 views
0

我试图像在运行英特尔爱迪生C采样Azure的物联网SDK:建立在爱迪生

https://github.com/neeraj-khanna/azure-iot-sdks/blob/master/c/doc/run_sample_on_intel_edison.md

我试图建立Azure的物联网SDK, 我设置必要的环境变量

export CFLAGS="-I/home/root/qpid-proton/proton-c/include" 

export CPPFLAGS="-I/home/root/qpid-proton/proton-c/include" 

export LDFLAGS="-L/lib/" 

,并尝试在蔚蓝-IOT-SDK的运行运行./build.sh/C/build_all/Linux的 但我得到一个错误:

-- The C compiler identification is GNU 4.9.1 
-- The CXX compiler identification is GNU 4.9.1 
-- Check for working C compiler: /usr/bin/cc 
-- Check for working C compiler: /usr/bin/cc -- works 
-- Detecting C compiler ABI info 
-- Detecting C compiler ABI info - done 
-- Detecting C compile features 
-- Detecting C compile features - done 
-- Check for working CXX compiler: /usr/bin/c++ 
-- Check for working CXX compiler: /usr/bin/c++ -- works 
-- Detecting CXX compiler ABI info 
-- Detecting CXX compiler ABI info - done 
-- Detecting CXX compile features 
-- Detecting CXX compile features - done 
CMake Error at CMakeLists.txt:27 (add_subdirectory): 
    add_subdirectory given source "azure-c-shared-utility/c" which is not an 
    existing directory. 

非常感谢提前!

+0

azure-c-shared-utility是一个独立的GitHub项目。你有没有尝试过:git clone https://github.com/Azure/azure-c-shared-utility.git在你的“azure-iot-sdks/c”目录下? –

+0

我已经在Raspberry PI 2上测试了我的答案以上的raspbian。它的工作原理是... –

回答

0

- 在Edison上默认的git客户端上不支持--recursive选项。

有3种选择:

  1. 手工克隆所有子模块。这很容易出错,特别是如果子模块更新或更改。
  2. 克隆到不同的系统上,并使用您最喜爱的传输程序将其上传到爱迪生。
  3. 在Edison上构建您自己的私人git客户端,然后使用它。

我个人使用Windows机器上的BitVise ssh客户端将我的Windows克隆传输到我的爱迪生。我在我的Windows机器上完成了所有文件的编辑工作,并使用https://github.com/avranju/rsync来保持Windows机器和Edison同步。这不是一个完美的工作流程,但它适用于我,尤其是当我使用Visual Studio GDB扩展进行调试时(https://blogs.msdn.microsoft.com/vcblog/2015/11/18/announcing-the-vs-gdb-debugger-extension/