Azure-Samples / iot-hub-c-raspberrypi-client-app

Application collects weather data from a BME280 sensor and sends it to IoT hub, also take actions according to cloud-to-device message, device management.
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-raspberry-pi-kit-c-get-started
MIT License
36 stars 34 forks source link

Illegal Instruction #28

Open al3x78-777 opened 5 years ago

al3x78-777 commented 5 years ago

Hello,

After running the setup script with or without a sensor I get the following errors:

a. I don't think the app is compiling properly b. When I try to run the app with my connection string after compiling, I get an Illegal Instruction message

Any thoughts?

Thanks in advance.

pi@rpi0w-sensor:~/iot-hub-c-raspberrypi-client-app $ cmake . && make -- Configuring done CMake Error: Unable to open check cache file for write. /home/pi/iot-hub-c-raspberrypi-client-app/CMakeFiles/cmake.check_cache pi@rpi0w-sensor:~/iot-hub-c-raspberrypi-client-app $ sudo cmake . && make -- Configuring done -- Generating done -- Build files have been written to: /home/pi/iot-hub-c-raspberrypi-client-app Built target app pi@rpi0w-sensor:~/iot-hub-c-raspberrypi-client-app $ sudo ./app '' Illegal instruction pi@rpi0w-sensor:~/iot-hub-c-raspberrypi-client-app $

iothubcerror

yzhong94 commented 5 years ago

Please try to build again with the latest script. I ran through it E2E on Friday and it was working properly. @al3x78-777