Cross-compile error: bcm_host.h: No such file or directory

I’ve followed the suggestions here to no avail:

Basically I’m getting stuck here:

../../../libs/openFrameworks/utils/ofConstants.h:160:31: fatal error: bcm_host.h: No such file or directory

On the RPi, that file is in /opt/vc/include/
However it’s not in my $RPI_ROOT directory on my 64-bit Ubuntu machine (12.04), so therefore it doesn’t find it.

Has anyone got around this?

have you tried copying it?

Yes, the Guide (http://openframeworks.cc/setup/raspberrypi/Raspberry-Pi-Cross-compiling-guide.html) is incomplete in rpi-root you have to copy /opt and /lib too. I did it and it’s working!

1 Like