Closed aepsicom closed 5 years ago
@aepsicom Thanks for the feedback! We are currently investigating and will update you shortly.
Hello @aepsicom . Can you try sudo ./setup-sh --simulated-data
instead?
Thanks!
Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.
Hi Sergaz, I have the same issue here as well:
Using simulated data -- Configuring done -- Generating done -- Build files have been written to: /home/pi/src/iot-hub-c-raspberrypi-client-app Scanning dependencies of target app [ 20%] Building C object CMakeFiles/app.dir/main.c.o /home/pi/src/iot-hub-c-raspberrypi-client-app/main.c:9:45: fatal error: azure_c_shared_utility/xlogging.h: No such file or directory
^
compilation terminated. CMakeFiles/app.dir/build.make:62: recipe for target 'CMakeFiles/app.dir/main.c.o' failed make[2]: [CMakeFiles/app.dir/main.c.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/app.dir/all' failed make[1]: [CMakeFiles/app.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2 pi@raspberrypi:~/src/iot-hub-c-raspberrypi-client-app $
Any workaround?
@xsqian please check if this helps solving the issue: https://github.com/MicrosoftDocs/azure-docs/issues/23151
Thanks!
This is still an ongoing issue
Moving this issue to the sample repo and we will be reaching out to owners https://github.com/Azure-Samples/iot-hub-c-raspberrypi-client-app/issues/25
hi https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-raspberry-pi-kit-c-get-started
cd ./iot-hub-c-raspberrypi-client-app sudo chmod u+x setup.sh sudo ./setup.sh
after this step I got this error . Can you help me solving this ? thanks
pipi@raspberrypi:~/iot-hub-c-raspberrypi-client-app $ sudo ./setup.sh Hit:1 https://deb.nodesource.com/node_11.x stretch InRelease
Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
Hit:3 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Reading package lists... Done
Reading package lists... Done Building dependency tree
Reading state information... Done Package 'libssl-dev' is not installed, so not removed The following packages were automatically installed and are no longer required: gyp libc-ares2 libhttp-parser2.8 libjs-inherits libjs-node-uuid libssl-doc libuv1-dev nodejs-doc Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. Reading package lists... Done Building dependency tree
Reading state information... Done build-essential is already the newest version (12.3). cmake is already the newest version (3.7.2-1). curl is already the newest version (7.52.1-5+deb9u8). git is already the newest version (1:2.11.0-3+deb9u4). libcurl4-openssl-dev is already the newest version (7.52.1-5+deb9u8). libssl1.0-dev is already the newest version (1.0.2l-2+deb9u3). uuid-dev is already the newest version (2.29.2-1+deb9u1). The following packages were automatically installed and are no longer required: gyp libc-ares2 libhttp-parser2.8 libjs-inherits libjs-node-uuid libssl-doc libuv1-dev nodejs-doc Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. mkdir: cannot create directory 'Source': File exists fatal: destination path 'azure-iot-sdk-c' already exists and is not an empty directory. ~/Source/azure-iot-sdk-c/cmake/iotsdk_linux ~/Source/azure-iot-sdk-c/build_all/linux -- The C compiler identification is GNU 6.3.0 -- The CXX compiler identification is GNU 6.3.0 -- 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 -- IoT Client SDK Version = 1.2.10 -- Provisioning client OFF -- Looking for include file stdint.h -- Looking for include file stdint.h - found -- Looking for include file stdbool.h -- Looking for include file stdbool.h - found -- target architecture: ARM -- Performing Test CXX_FLAG_CXX11 -- Performing Test CXX_FLAG_CXX11 - Success -- Found OpenSSL: /usr/lib/arm-linux-gnueabihf/libssl.so;/usr/lib/arm-linux-gnueabihf/libcrypto.so (found version "1.0.2l") -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29") -- Checking for module 'libcurl' -- Found libcurl, version 7.52.1 -- Found CURL: curl
-- target architecture: ARM -- target architecture: ARM -- target architecture: ARM -- target architecture: ARM -- iothub architecture: ARM -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project:
-- Build files have been written to: /root/Source/azure-iot-sdk-c/cmake/iotsdk_linux ~/Source/azure-iot-sdk-c/build_all/linux Scanning dependencies of target parson [ 0%] Building C object CMakeFiles/parson.dir/deps/parson/parson.c.o [ 1%] Linking C static library libparson.a [ 1%] Built target parson Scanning dependencies of target aziotsharedutil [ 1%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/base32.c.o [ 1%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/base64.c.o [ 2%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/buffer.c.o [ 2%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/connection_string_parser.c.o [ 3%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/constbuffer.c.o [ 3%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/consolelogger.c.o [ 4%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/crt_abstractions.c.o [ 4%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/constmap.c.o [ 5%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/doublylinkedlist.c.o [ 5%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/gballoc.c.o [ 6%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/gbnetwork.c.o [ 6%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/gb_stdio.c.o [ 6%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/gb_time.c.o [ 7%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/gb_rand.c.o [ 7%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/hmac.c.o [ 8%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/hmacsha256.c.o [ 8%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/xio.c.o [ 9%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/singlylinkedlist.c.o [ 9%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/map.c.o [ 10%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/sastoken.c.o [ 10%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/sha1.c.o [ 11%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/sha224.c.o [ 11%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/sha384-512.c.o [ 11%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/strings.c.o [ 12%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/string_token.c.o [ 12%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/string_tokenizer.c.o [ 13%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/uuid.c.o [ 13%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/urlencode.c.o [ 14%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/usha.c.o [ 14%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/vector.c.o [ 15%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/xlogging.c.o [ 15%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/optionhandler.c.o [ 16%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/adapters/agenttime.c.o [ 16%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/adapters/condition_pthreads.c.o [ 16%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/adapters/lock_pthreads.c.o [ 17%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/adapters/platform_linux.c.o [ 17%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/adapters/socketio_berkeley.c.o [ 18%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/adapters/tickcounter_linux.c.o [ 18%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/adapters/threadapi_pthreads.c.o [ 19%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/adapters/uniqueid_linux.c.o [ 19%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/adapters/envvariable.c.o [ 20%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/adapters/linux_time.c.o [ 20%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/httpapiex.c.o [ 21%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/httpapiexsas.c.o [ 21%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/httpheaders.c.o [ 21%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/adapters/httpapi_curl.c.o [ 22%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/http_proxy_io.c.o [ 22%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/adapters/tlsio_openssl.c.o [ 23%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/adapters/x509_openssl.c.o [ 23%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/wsio.c.o [ 24%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/uws_client.c.o [ 24%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/uws_frame_encoder.c.o [ 25%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/utf8_checker.c.o [ 25%] Building C object c-utility/CMakeFiles/aziotsharedutil.dir/src/ws_url.c.o [ 26%] Linking C static library libaziotsharedutil.a [ 26%] Built target aziotsharedutil Scanning dependencies of target uamqp [ 27%] Building C object uamqp/CMakeFiles/uamqp.dir/src/amqp_definitions.c.o [ 27%] Building C object uamqp/CMakeFiles/uamqp.dir/src/amqp_frame_codec.c.o [ 28%] Building C object uamqp/CMakeFiles/uamqp.dir/src/amqp_management.c.o [ 28%] Building C object uamqp/CMakeFiles/uamqp.dir/src/amqpvalue.c.o [ 29%] Building C object uamqp/CMakeFiles/uamqp.dir/src/amqpvalue_to_string.c.o [ 29%] Building C object uamqp/CMakeFiles/uamqp.dir/src/async_operation.c.o [ 30%] Building C object uamqp/CMakeFiles/uamqp.dir/src/cbs.c.o [ 30%] Building C object uamqp/CMakeFiles/uamqp.dir/src/connection.c.o [ 31%] Building C object uamqp/CMakeFiles/uamqp.dir/src/frame_codec.c.o [ 31%] Building C object uamqp/CMakeFiles/uamqp.dir/src/header_detect_io.c.o [ 31%] Building C object uamqp/CMakeFiles/uamqp.dir/src/link.c.o [ 32%] Building C object uamqp/CMakeFiles/uamqp.dir/src/message.c.o [ 32%] Building C object uamqp/CMakeFiles/uamqp.dir/src/message_receiver.c.o [ 33%] Building C object uamqp/CMakeFiles/uamqp.dir/src/message_sender.c.o [ 33%] Building C object uamqp/CMakeFiles/uamqp.dir/src/messaging.c.o [ 34%] Building C object uamqp/CMakeFiles/uamqp.dir/src/sasl_anonymous.c.o [ 34%] Building C object uamqp/CMakeFiles/uamqp.dir/src/sasl_frame_codec.c.o [ 35%] Building C object uamqp/CMakeFiles/uamqp.dir/src/sasl_mechanism.c.o [ 35%] Building C object uamqp/CMakeFiles/uamqp.dir/src/sasl_server_mechanism.c.o [ 36%] Building C object uamqp/CMakeFiles/uamqp.dir/src/sasl_mssbcbs.c.o [ 36%] Building C object uamqp/CMakeFiles/uamqp.dir/src/sasl_plain.c.o [ 36%] Building C object uamqp/CMakeFiles/uamqp.dir/src/saslclientio.c.o [ 37%] Building C object uamqp/CMakeFiles/uamqp.dir/src/session.c.o [ 37%] Building C object uamqp/CMakeFiles/uamqp.dir/src/socket_listener_berkeley.c.o [ 38%] Linking C static library libuamqp.a [ 38%] Built target uamqp Scanning dependencies of target umqtt [ 38%] Building C object umqtt/CMakeFiles/umqtt.dir/src/mqtt_client.c.o [ 39%] Building C object umqtt/CMakeFiles/umqtt.dir/src/mqtt_codec.c.o [ 39%] Building C object umqtt/CMakeFiles/umqtt.dir/src/mqtt_message.c.o [ 40%] Linking C static library libumqtt.a [ 40%] Built target umqtt Scanning dependencies of target uhttp [ 40%] Building C object deps/uhttp/CMakeFiles/uhttp.dir/src/uhttp.c.o [ 41%] Linking C static library libuhttp.a [ 41%] Built target uhttp Scanning dependencies of target iothub_service_client [ 42%] Building C object iothub_service_client/CMakeFiles/iothub_service_client.dir/src/iothub_deviceconfiguration.c.o [ 42%] Building C object iothub_service_client/CMakeFiles/iothub_service_client.dir/src/iothub_devicemethod.c.o [ 43%] Building C object iothub_service_client/CMakeFiles/iothub_service_client.dir/src/iothub_devicetwin.c.o [ 43%] Building C object iothub_service_client/CMakeFiles/iothub_service_client.dir/src/iothub_messaging.c.o [ 44%] Building C object iothub_service_client/CMakeFiles/iothub_service_client.dir/src/iothub_messaging_ll.c.o [ 44%] Building C object iothub_service_client/CMakeFiles/iothub_service_client.dir/src/iothub_registrymanager.c.o [ 45%] Building C object iothub_service_client/CMakeFiles/iothub_service_client.dir/src/iothub_sc_version.c.o [ 45%] Building C object iothub_service_client/CMakeFiles/iothub_service_client.dir/src/iothub_service_client_auth.c.o [ 45%] Building C object iothub_service_client/CMakeFiles/iothub_service_client.dir/__/iothub_client/src/iothub_message.c.o [ 46%] Linking C static library libiothub_service_client.a [ 46%] Built target iothub_service_client Scanning dependencies of target iothub_client_mqtt_transport [ 46%] Building C object iothub_client/CMakeFiles/iothub_client_mqtt_transport.dir/src/iothub_client_authorization.c.o [ 47%] Building C object iothub_client/CMakeFiles/iothub_client_mqtt_transport.dir/src/iothub_client_retry_control.c.o [ 47%] Building C object iothub_client/CMakeFiles/iothub_client_mqtt_transport.dir/src/iothub_transport_ll_private.c.o [ 48%] Building C object iothub_client/CMakeFiles/iothub_client_mqtt_transport.dir/src/iothubtransport_mqtt_common.c.o [ 48%] Building C object iothub_client/CMakeFiles/iothub_client_mqtt_transport.dir/src/iothubtransportmqtt.c.o [ 49%] Linking C static library libiothub_client_mqtt_transport.a [ 49%] Built target iothub_client_mqtt_transport Scanning dependencies of target iothub_client_amqp_ws_transport [ 49%] Building C object iothub_client/CMakeFiles/iothub_client_amqp_ws_transport.dir/src/iothub_client_authorization.c.o [ 50%] Building C object iothub_client/CMakeFiles/iothub_client_amqp_ws_transport.dir/src/iothub_client_retry_control.c.o [ 50%] Building C object iothub_client/CMakeFiles/iothub_client_amqp_ws_transport.dir/src/iothub_transport_ll_private.c.o [ 51%] Building C object iothub_client/CMakeFiles/iothub_client_amqp_ws_transport.dir/src/iothubtransport_amqp_common.c.o virtual memory exhausted: Cannot allocate memory iothub_client/CMakeFiles/iothub_client_amqp_ws_transport.dir/build.make:134: recipe for target 'iothub_client/CMakeFiles/iothub_client_amqp_ws_transport.dir/src/iothubtransport_amqp_common.c.o' failed make[2]: [iothub_client/CMakeFiles/iothub_client_amqp_ws_transport.dir/src/iothubtransport_amqp_common.c.o] Error 1 CMakeFiles/Makefile2:1388: recipe for target 'iothub_client/CMakeFiles/iothub_client_amqp_ws_transport.dir/all' failed make[1]: [iothub_client/CMakeFiles/iothub_client_amqp_ws_transport.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: [all] Error 2 [ 1%] Built target parson [ 26%] Built target aziotsharedutil [ 38%] Built target uamqp [ 40%] Built target umqtt [ 41%] Built target uhttp [ 46%] Built target iothub_service_client [ 49%] Built target iothub_client_mqtt_transport [ 50%] Building C object iothub_client/CMakeFiles/iothub_client_amqp_ws_transport.dir/src/iothubtransport_amqp_common.c.o virtual memory exhausted: Cannot allocate memory iothub_client/CMakeFiles/iothub_client_amqp_ws_transport.dir/build.make:134: recipe for target 'iothub_client/CMakeFiles/iothub_client_amqp_ws_transport.dir/src/iothubtransport_amqp_common.c.o' failed make[2]: [iothub_client/CMakeFiles/iothub_client_amqp_ws_transport.dir/src/iothubtransport_amqp_common.c.o] Error 1 CMakeFiles/Makefile2:1388: recipe for target 'iothub_client/CMakeFiles/iothub_client_amqp_ws_transport.dir/all' failed make[1]: [iothub_client/CMakeFiles/iothub_client_amqp_ws_transport.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: [all] Error 2 gcc version check pass (current:6.3.0,require:4.4.7) cmake version check pass (current:3.7.2,require:2.8.12) Cloning into 'wiringPi'... remote: Counting objects: 1177, done. remote: Compressing objects: 100% (980/980), done. remote: Total 1177 (delta 822), reused 212 (delta 142) Receiving objects: 100% (1177/1177), 369.48 KiB | 0 bytes/s, done. Resolving deltas: 100% (822/822), done. wiringPi Build script
WiringPi Library [UnInstall] [Compile] wiringPi.c [Compile] wiringSerial.c [Compile] wiringShift.c [Compile] piHiPri.c [Compile] piThread.c [Compile] wiringPiSPI.c [Compile] wiringPiI2C.c [Compile] softPwm.c [Compile] softTone.c wiringPi.c:1309:21: warning: 'digitalWrite8Dummy' defined but not used [-Wunused-function] static void digitalWrite8Dummy (UNU struct wiringPiNodeStruct node, UNU int pin, UNU int value) { return ; } ^
~~~~~ wiringPi.c:1308:21: warning: 'digitalRead8Dummy' defined but not used [-Wunused-function] static unsigned int digitalRead8Dummy (UNU struct wiringPiNodeStruct node, UNU int UNU pin) { return 0 ; } ^~~~~ [Compile] mcp23008.c [Compile] mcp23017.c [Compile] mcp23016.c [Compile] mcp23s08.c [Compile] mcp23s17.c [Compile] sr595.c [Compile] pcf8574.c [Compile] pcf8591.c [Compile] mcp3002.c [Compile] mcp3004.c [Compile] mcp4802.c [Compile] mcp3422.c [Compile] max31855.c [Compile] max5322.c [Compile] ads1115.c [Compile] sn3218.c [Compile] bmp180.c [Compile] htu21d.c [Compile] ds18b20.c [Compile] rht03.c [Compile] drcSerial.c [Compile] drcNet.c [Compile] pseudoPins.c [Compile] wpiExtensions.c [Link (Dynamic)] [Install Headers] [Install Dynamic Lib]WiringPi Devices Library [UnInstall] [Compile] ds1302.c [Compile] maxdetect.c [Compile] piNes.c [Compile] gertboard.c [Compile] piFace.c [Compile] lcd128x64.c [Compile] lcd.c [Compile] scrollPhat.c [Compile] piGlow.c [Link (Dynamic)] [Install Headers] [Install Dynamic Lib]
GPIO Utility [Compile] gpio.c [Compile] readall.c [Link] [Install]
All Done.
NOTE: To compile programs with wiringPi, you need to add: -lwiringPi to your compile line(s) To use the Gertboard, MaxDetect, etc. code (the devLib), you need to also add: -lwiringPiDev to your compile line(s).
-- The C compiler identification is GNU 6.3.0 -- The CXX compiler identification is GNU 6.3.0 -- 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 -- Configuring done -- Generating done -- Build files have been written to: /home/pi/iot-hub-c-raspberrypi-client-app Scanning dependencies of target app [ 20%] Building C object CMakeFiles/app.dir/main.c.o /home/pi/iot-hub-c-raspberrypi-client-app/main.c:9:45: fatal error: azure_c_shared_utility/xlogging.h: No such file or directory
include <azure_c_shared_utility/xlogging.h>
compilation terminated. CMakeFiles/app.dir/build.make:62: recipe for target 'CMakeFiles/app.dir/main.c.o' failed make[2]: [CMakeFiles/app.dir/main.c.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/app.dir/all' failed make[1]: [CMakeFiles/app.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.