Page 1 of 1

bcm_host.h: No such file

Posted: Tue May 12, 2015 2:40 pm
by ric96
i am trying to compile tangram on my pi1 running a net-ua version of raspbian ( aka minimal raspbian net install). And i end up with the following error.

Code: Select all

[ 48%] Building CXX object core/CMakeFiles/core.dir/src/style/polygonStyle.cpp.o
In file included from /root/tangram-es/core/src/util/vertexLayout.h:7:0,
                 from /root/tangram-es/core/src/style/style.h:7,
                 from /root/tangram-es/core/src/style/polygonStyle.h:3,
                 from /root/tangram-es/core/src/style/polygonStyle.cpp:1:
/root/tangram-es/core/src/gl.h:30:22: fatal error: bcm_host.h: No such file or directory
 #include "bcm_host.h"
                      ^
compilation terminated.
core/CMakeFiles/core.dir/build.make:54: recipe for target 'core/CMakeFiles/core.dir/src/style/polygonStyle.cpp.o' failed
make[3]: *** [core/CMakeFiles/core.dir/src/style/polygonStyle.cpp.o] Error 1
make[3]: Leaving directory '/root/tangram-es/build/rpi'
CMakeFiles/Makefile2:116: recipe for target 'core/CMakeFiles/core.dir/all' failed
make[2]: *** [core/CMakeFiles/core.dir/all] Error 2
make[2]: Leaving directory '/root/tangram-es/build/rpi'
Makefile:113: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/root/tangram-es/build/rpi'
Makefile:160: recipe for target 'rpi' failed
make: *** [rpi] Error 2
root@pi:~/tangram-es# 
pl. help

Re: bcm_host.h: No such file

Posted: Tue May 12, 2015 2:41 pm
by PeterO
What compiler switches are you using ?
PeterO

Re: bcm_host.h: No such file

Posted: Tue May 12, 2015 2:42 pm
by ric96
PeterO wrote:What compiler switches are you using ?
PeterO
using g++-4.8, the dev said to use that so......

Re: bcm_host.h: No such file

Posted: Tue May 12, 2015 2:44 pm
by PeterO
ric96 wrote:
PeterO wrote:What compiler switches are you using ?
PeterO
using g++-4.8, the dev said to use that so......
Compiler switches, not compiler version.

PeterO

Re: bcm_host.h: No such file

Posted: Tue May 12, 2015 2:47 pm
by ric96
PeterO wrote:
ric96 wrote:
PeterO wrote:What compiler switches are you using ?
PeterO
using g++-4.8, the dev said to use that so......
Compiler switches, not compiler version.

PeterO
how do i find out, and what is that?
[edit]
if you mean flags then...
none just simple
make rpi

the code compiles well on complete version on raspbian just error on a net-ua version
https://github.com/tangrams/tangram-es/ ... rypi.cmake

Re: bcm_host.h: No such file

Posted: Tue May 12, 2015 2:57 pm
by PeterO
You are trying to build on a minimal system so it is not surprising that things are missing !

My guess is that the files in /opt/vc/ and subdirectories that are needed to build code that uses the bcm_host APIs are missing.

PeterO

Re: bcm_host.h: No such file

Posted: Tue May 12, 2015 3:03 pm
by ric96
PeterO wrote:You are trying to build on a minimal system so it is not surprising that things are missing !

My guess is that the files in /opt/vc/ and subdirectories that are needed to build code that uses the bcm_host APIs are missing.

PeterO
Where do i get it from, github link???

Re: bcm_host.h: No such file

Posted: Tue May 12, 2015 3:11 pm
by PeterO
The files are included in every full Raspbian build.

I can't help any more than that as I don't have a minimal install of Raspbian to investigate.

PeterO

Re: bcm_host.h: No such file

Posted: Tue May 12, 2015 3:12 pm
by ric96
PeterO wrote:The files are included in every full Raspbian build.

I can't help any more than that as I don't have a minimal install of Raspbian to investigate.

PeterO
Thanks!

Re: bcm_host.h: No such file

Posted: Tue May 12, 2015 4:34 pm
by Paeryn
ric96 wrote:
PeterO wrote:You are trying to build on a minimal system so it is not surprising that things are missing !

My guess is that the files in /opt/vc/ and subdirectories that are needed to build code that uses the bcm_host APIs are missing.

PeterO
Where do i get it from, github link???
https://github.com/raspberrypi/firmware
You probably want to copy hardfp/opt to /opt (I'm assuming the stuff listed in opt in there is compiled for softfp).

Re: bcm_host.h: No such file

Posted: Tue May 12, 2015 4:52 pm
by ric96
Paeryn wrote:
ric96 wrote:
PeterO wrote:You are trying to build on a minimal system so it is not surprising that things are missing !

My guess is that the files in /opt/vc/ and subdirectories that are needed to build code that uses the bcm_host APIs are missing.

PeterO
Where do i get it from, github link???
https://github.com/raspberrypi/firmware
You probably want to copy hardfp/opt to /opt (I'm assuming the stuff listed in opt in there is compiled for softfp).
Yup, worked like charm, thnx

Re: bcm_host.h: No such file

Posted: Tue Feb 07, 2017 7:57 pm
by john.t
Hi
This is maybe a stupid question but where do i copy this file?root?boot?

thank you