Hello,
during installation process of the daqhats driver package I got an error while building the gpio.o binary. The bcm_host.h package is obviously missing, and this terminates the build process. Thus my MCC172 HAT can't be detected by my software. I used the latest driver version (1.4.0.8) and even tried an older one (1.4.0.6) with the same result. Could you help me?
Building and installing library
make: Entering directory '/home/pi/newversion/daqhats/lib'
gcc -I../include -I/opt/vc/include -I/usr/include -fPIC -Wall -Wextra -g -O2 -DENABLE_LOCALES=Off -MMD -c util.c -o build/util.o
gcc -I../include -I/opt/vc/include -I/usr/include -fPIC -Wall -Wextra -g -O2 -DENABLE_LOCALES=Off -MMD -c mcc118.c -o build/mcc118.o
gcc -I../include -I/opt/vc/include -I/usr/include -fPIC -Wall -Wextra -g -O2 -DENABLE_LOCALES=Off -MMD -c mcc152.c -o build/mcc152.o
gcc -I../include -I/opt/vc/include -I/usr/include -fPIC -Wall -Wextra -g -O2 -DENABLE_LOCALES=Off -MMD -c mcc152_dac.c -o build/mcc152_dac.o
gcc -I../include -I/opt/vc/include -I/usr/include -fPIC -Wall -Wextra -g -O2 -DENABLE_LOCALES=Off -MMD -c mcc152_dio.c -o build/mcc152_dio.o
gcc -I../include -I/opt/vc/include -I/usr/include -fPIC -Wall -Wextra -g -O2 -DENABLE_LOCALES=Off -MMD -c gpio.c -o build/gpio.o
gpio.c:18:10: fatal error: bcm_host.h: No such file or directory
18 | #include "bcm_host.h"
| ^~~~~~~~~~~~
compilation terminated.
make: *** [makefile:32: build/gpio.o] Error 1
make: Leaving directory '/home/pi/newversion/daqhats/lib'
make: Entering directory '/home/pi/newversion/daqhats/lib'
make[1]: Entering directory '/home/pi/newversion/daqhats/include'
make[1]: Leaving directory '/home/pi/newversion/daqhats/include'
install: cannot stat './build/libdaqhats.so.1.4.0.8': No such file or directory
make: *** [makefile:38: install] Error 1
make: Leaving directory '/home/pi/newversion/daqhats/lib'
make: Entering directory '/home/pi/newversion/daqhats/lib'
make: Leaving directory '/home/pi/newversion/daqhats/lib'
Building and installing tools
By the way (in case this might be important): In the moment I am using an installation of RaspiOS-light (terminal version, Debian 12 bookworm, kernel 6.1.0-rpi8-rpi-v8, aarch64), that comes without GUI. A former installation of the driver packages on a RaspiOS that comes with GUI was successful.
Thanks a lot in advance!
PapaJoe