edgexfoundry-holding / device-bluetooth-c

Apache License 2.0
5 stars 4 forks source link

Getting the error no such file or directory IOT/logger.h #31

Open testing-bee opened 1 year ago

testing-bee commented 1 year ago

I have cloned the project device-bluetooth-c and trying to build the device service (./scripts/build.sh). I already tried the following commands to install iot utilities, still getting the error mentioned under the heading "Output & error". Can someone please help me on this?

Commands what I tried to install iot utilities:

apt-get install lsb-release apt-transport-https curl gnupg curl -fsSL https://iotech.jfrog.io/artifactory/api/gpg/key/public | apt-key add - echo "deb https://iotech.jfrog.io/iotech/debian-release $(lsb_release -cs) main" | tee -a /etc/apt/sources.list.d/iotech.list apt-get update apt-get install iotech-iot-1.5-dev

Output & error:

Scanning dependencies of target device-ble [ 20%] Building C object CMakeFiles/device-ble.dir/src/c/ble.c.o In file included from /device-bluetooth-c/src/c/ble.c:9: //device-bluetooth-c/src/c/ble.h:14:10: fatal error: iot/logger.h: No such file or directory 14 | #include <iot/logger.h> | ^~~~~~ compilation terminated. make[2]: [CMakeFiles/device-ble.dir/build.make:63: CMakeFiles/device-ble.dir/src/c/ble.c.o] Error 1 make[1]: [CMakeFiles/Makefile2:76: CMakeFiles/device-ble.dir/all] Error 2 make: *** [Makefile:84: all] Error 2