在爱迪生上构建Azure IoT sdk

时间:2016-01-08 08:15:21

标签: azure iot intel-edison

我正试图在英特尔爱迪生上运行C样本,如:

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

我正在尝试构建Azure IoT 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/"

并尝试在azure-iot-sdks / c / build_all / Linux中运行./build.sh 但是我收到了一个错误:

-- 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.

非常感谢提前!

2 个答案:

答案 0 :(得分:0)

英特尔Edison运行Yocto的说明已更新。 https://github.com/Azure/azure-iot-sdks/blob/master/doc/get_started/yocto-intel-edison-c.md 克隆SDK repo时是否使用了--recursive选项? 现在这是必要的,因为SDK使用子模块来使用其他库中的其他库。 希望这有帮助

答案 1 :(得分:0)

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

有3种选择:

  1. 手动克隆所有子模块。这很容易出错,尤其是在子模块更新或更改的情况下。
  2. 克隆到另一个系统并使用您喜欢的转移程序将其带到爱迪生。
  3. 在Edison上构建您自己的私有git客户端,然后使用它。
  4. 我个人使用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/

相关问题