While attempting to install daqhats 1.4.0.8 on an RPi 4 with RPiOS bookworm (2023-12-05 release), I encountered this build error with gpio.c. As a result, the daqhats library isn't built and subsequent steps also fail.
The package builds ok with RPiOS bullseye (2023-12-05 release).
Question
cchaj
While attempting to install daqhats 1.4.0.8 on an RPi 4 with RPiOS bookworm (2023-12-05 release), I encountered this build error with gpio.c. As a result, the daqhats library isn't built and subsequent steps also fail.
The package builds ok with RPiOS bullseye (2023-12-05 release).
Please advise if there's a solution.
:~/Downloads/daqhats $ sudo ./install.sh
Building and installing library
make: Entering directory '/home/pi/Downloads/daqhats/lib'
...
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/Downloads/daqhats/lib'
additional information
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now