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

wiringpi unavailable #32

Open geoffrey-vl opened 4 years ago

geoffrey-vl commented 4 years ago

The setup.sh script fails when it is fetching wiringpi. Given that wiringpi will soon be deprecated, and the git repo currently inaccessible:

git.drogon.net is temporarily unavailable. Please look for alternatives for wiringPi, etc. -Gordon

)

.. will a fork of the library be made available here for future use?

Birdeyman commented 4 years ago

I'm experiencing a similar issue, receiving the following after running sudo ./setup.sh --simulated-data:

Submodule path 'umqtt/deps/umock-c/deps/testrunner/deps/azure-macro-utils-c': checked out '7523af934fc4d9423111e358f49b19314ec9c3e3' ~/Source/azure-iot-sdk-c/cmake/iotsdk_linux ~/Source/azure-iot-sdk-c/build_all/linux ./build.sh: line 130: cmake: command not found make: No targets specified and no makefile found. Stop. make: No rule to make target 'install'. Stop. ./setup.sh: line 57: cmake: command not found gcc version check pass (current:8.3.0,require:4.4.7) cmake version check pass (current:,require:2.8.12) Cloning into 'wiringPi'... fatal: unable to connect to git.drogon.net: git.drogon.net[0: 188.246.205.22]: errno=Connection refused git.drogon.net[1: 2a03:9800:10:7b::2]: errno=Network is unreachable

./setup.sh: line 75: cd: ./wiringPi: No such file or directory ./setup.sh: line 76: ./build: No such file or directory Cloning into 'parson'... remote: Enumerating objects: 12, done. remote: Counting objects: 100% (12/12), done. remote: Compressing objects: 100% (8/8), done. remote: Total 603 (delta 5), reused 10 (delta 4), pack-reused 591 Receiving objects: 100% (603/603), 334.88 KiB | 405.00 KiB/s, done. Resolving deltas: 100% (327/327), done. Using simulated data sed: can't read config.h: No such file or directory ./setup.sh: line 90: cmake: command not found

jyankel commented 4 years ago

Workaround is to simply install wiringpi with apt-get. apt-get install wiringpi