2016-01-08 41 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/