11 Replies Latest reply on May 16, 2016 1:48 PM by Intel_Peter

    Connect Intel Edison with Microsoft Azure IoT

    cnvery

      Hi all,

       

      I wish to connect my Intel Edison with Microsoft Azure IoT.

       

      Originally, I refer to this documentation IoT - Setting up the Intel® Edison Board with the Microsoft Azure IoT Suite | Intel® Developer Zone .

       

      However, there is some error on ./build.sh and make -f makefile.linux

       

      The error is shown as per below:

      root@edison:~/azure-iot-sdks/c/iothub_client/samples/iothub_client_sample_amqp/linux# make -f linux

      make: linux: No such file or directory

      make: *** No rule to make target 'linux'.  Stop.

       

       

       

      root@edison:~/azure-iot-sdks/c/build_all/linux# ./build.sh --no-mqtt

      -sh: ./build.sh: not found

       

      The reason for this is the latest Azure IoT SDK in C (Updated one month ago) no longer have build_proton.sh, which can be seen in Github Azure IoT SDK Webpage GitHub - Azure/azure-iot-sdks: SDKs for a variety of languages and platforms that help connect devices to Microsoft Azur….


      Then, I refer to latest GIT documentation azure-iot-sdks/yocto-intel-edison-c.md at master · Azure/azure-iot-sdks · GitHub .


      With additional command opkg install nodejs, I am ble to execute ./build.sh. But with following errors:

      root@edison:~/azure-iot-sdks/c/build_all/linux# ./build.sh --no-mqtt --no-amqp --no-http
      ~/cmake ~/azure-iot-sdks/c/build_all/linux
      -- The C compiler identification is GNU 4.8.2
      -- The CXX compiler identification is GNU 4.8.2
      -- 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++ -- broken
      CMake Error at /usr/share/cmake-3.4/Modules/CMakeTestCXXCompiler.cmake:54 (message):
       
      The C++ compiler "/usr/bin/c++" is not able to compile a simple test
        program
      .

       
      It fails with the following output:

       
      Change Dir: /home/root/cmake/CMakeFiles/CMakeTmp

       
      Run Build Command:"/usr/bin/make" "cmTC_5d8ca/fast"

       
      /usr/bin/make -f CMakeFiles/cmTC_5d8ca.dir/build.make
       
      CMakeFiles/cmTC_5d8ca.dir/build

        make
      [1]: Entering directory '/home/root/cmake/CMakeFiles/CMakeTmp'

       
      Building CXX object CMakeFiles/cmTC_5d8ca.dir/testCXXCompiler.cxx.o

       
      /usr/bin/c++ -o CMakeFiles/cmTC_5d8ca.dir/testCXXCompiler.cxx.o -c
       
      /home/root/cmake/CMakeFiles/CMakeTmp/testCXXCompiler.cxx

       
      Linking CXX executable cmTC_5d8ca

       
      /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5d8ca.dir/link.txt
       
      --verbose=1

       
      /usr/bin/c++ -L/lib/ CMakeFiles/cmTC_5d8ca.dir/testCXXCompiler.cxx.o -o
        cmTC_5d8ca
      -rdynamic

       
      /usr/lib/gcc/i586-poky-linux/4.8.2/../../../../i586-poky-linux/bin/ld:
        cannot find
      -lstdc++

        collect2
      : error: ld returned 1 exit status

       
      CMakeFiles/cmTC_5d8ca.dir/build.make:97: recipe for target 'cmTC_5d8ca'
        failed

        make
      [1]: *** [cmTC_5d8ca] Error 1

        make
      [1]: Leaving directory '/home/root/cmake/CMakeFiles/CMakeTmp'

       
      Makefile:126: recipe for target 'cmTC_5d8ca/fast' failed

        make
      : *** [cmTC_5d8ca/fast] Error 2

       
      CMake will not be able to correctly generate this project.
      Call Stack (most recent call first):
       
      CMakeLists.txt:5 (project)

      -- Configuring incomplete, errors occurred!
      See also "/home/root/cmake/CMakeFiles/CMakeOutput.log".
      See also "/home/root/cmake/CMakeFiles/CMakeError.log".

      Due to error above, I cannot execute ./iothub_client_sample_amqp

       

      Is there any solution for this?