首页 文章

在爱迪生上构建Azure IoT sdk

提问于
浏览
0

我试图在英特尔爱迪生上运行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

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

  • 0

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

    有3种选择:

    • 手动克隆所有子模块 . 这很容易出错,尤其是在子模块更新或更改时 .

    • 克隆到另一个系统并使用您喜欢的传输程序将其导入Edison .

    • 在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/

相关问题