簡體   English   中英

在Edison上構建Azure IoT SDK

[英]Build the Azure IoT sdk on edison

我正在嘗試在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.

提前謝謝了 !

運行Yocto的Intel Edison的說明已更新。 https://github.com/Azure/azure-iot-sdks/blob/master/doc/get_started/yocto-intel-edison-c.md克隆SDK存儲庫時是否使用了--recursive選項? 現在這是必需的,因為SDK使用子模塊來使用位於其他存儲庫上的其他庫。 希望這可以幫助

在Edison默認的git客戶端上不支持--recursive選項。

有3個選項:

  1. 手動克隆所有子模塊。 這容易出錯,尤其是在子模塊更新或更改時。
  2. 克隆到其他系統上,然后使用您喜歡的傳輸程序將其下載到Edison。
  3. 在Edison上構建自己的私有git客戶端,並改用該客戶端。

我個人使用Windows計算機上的BitVise ssh客戶端將Windows克隆轉移到我的Edison。 我在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 /

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM