Jump to content
  • 0

daqhats build error with RPiOS bookworm



While attempting to install daqhats 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'



Edited by cchaj
additional information
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

The latest release of the Raspberry PI OS made significant changes to how GPIO control is handled. As a result, we have yet to release Daqhat support for it. You should use the previous version of Bullseye until the next Daqhat release (v1.5.0.0) is available sometime this quarter.


Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...