User avatar
ric96
Posts: 1253
Joined: Sun Mar 17, 2013 6:03 am
Location: NOIDA, India
Contact: Website

bcm_host.h: No such file

Tue May 12, 2015 2:40 pm

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
My apologies for shameless YouTube Plugs...
youtube.com/sahajsarup
twitter @sahajsarup
skype srics1996
e-mail: sahajsarup@gmail.com
Blog: http://www.geektillithertz.com/wordpress
Web: http://www.geektillithertz.com

User avatar
PeterO
Posts: 5829
Joined: Sun Jul 22, 2012 4:14 pm

Re: bcm_host.h: No such file

Tue May 12, 2015 2:41 pm

What compiler switches are you using ?
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
ric96
Posts: 1253
Joined: Sun Mar 17, 2013 6:03 am
Location: NOIDA, India
Contact: Website

Re: bcm_host.h: No such file

Tue May 12, 2015 2:42 pm

PeterO wrote:What compiler switches are you using ?
PeterO
using g++-4.8, the dev said to use that so......
My apologies for shameless YouTube Plugs...
youtube.com/sahajsarup
twitter @sahajsarup
skype srics1996
e-mail: sahajsarup@gmail.com
Blog: http://www.geektillithertz.com/wordpress
Web: http://www.geektillithertz.com

User avatar
PeterO
Posts: 5829
Joined: Sun Jul 22, 2012 4:14 pm

Re: bcm_host.h: No such file

Tue May 12, 2015 2:44 pm

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
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
ric96
Posts: 1253
Joined: Sun Mar 17, 2013 6:03 am
Location: NOIDA, India
Contact: Website

Re: bcm_host.h: No such file

Tue May 12, 2015 2:47 pm

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
Last edited by ric96 on Tue May 12, 2015 2:57 pm, edited 1 time in total.
My apologies for shameless YouTube Plugs...
youtube.com/sahajsarup
twitter @sahajsarup
skype srics1996
e-mail: sahajsarup@gmail.com
Blog: http://www.geektillithertz.com/wordpress
Web: http://www.geektillithertz.com

User avatar
PeterO
Posts: 5829
Joined: Sun Jul 22, 2012 4:14 pm

Re: bcm_host.h: No such file

Tue May 12, 2015 2:57 pm

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
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
ric96
Posts: 1253
Joined: Sun Mar 17, 2013 6:03 am
Location: NOIDA, India
Contact: Website

Re: bcm_host.h: No such file

Tue May 12, 2015 3:03 pm

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???
My apologies for shameless YouTube Plugs...
youtube.com/sahajsarup
twitter @sahajsarup
skype srics1996
e-mail: sahajsarup@gmail.com
Blog: http://www.geektillithertz.com/wordpress
Web: http://www.geektillithertz.com

User avatar
PeterO
Posts: 5829
Joined: Sun Jul 22, 2012 4:14 pm

Re: bcm_host.h: No such file

Tue May 12, 2015 3:11 pm

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
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

User avatar
ric96
Posts: 1253
Joined: Sun Mar 17, 2013 6:03 am
Location: NOIDA, India
Contact: Website

Re: bcm_host.h: No such file

Tue May 12, 2015 3:12 pm

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!
My apologies for shameless YouTube Plugs...
youtube.com/sahajsarup
twitter @sahajsarup
skype srics1996
e-mail: sahajsarup@gmail.com
Blog: http://www.geektillithertz.com/wordpress
Web: http://www.geektillithertz.com

User avatar
Paeryn
Posts: 2952
Joined: Wed Nov 23, 2011 1:10 am
Location: Sheffield, England

Re: bcm_host.h: No such file

Tue May 12, 2015 4:34 pm

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).
She who travels light — forgot something.

User avatar
ric96
Posts: 1253
Joined: Sun Mar 17, 2013 6:03 am
Location: NOIDA, India
Contact: Website

Re: bcm_host.h: No such file

Tue May 12, 2015 4:52 pm

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
My apologies for shameless YouTube Plugs...
youtube.com/sahajsarup
twitter @sahajsarup
skype srics1996
e-mail: sahajsarup@gmail.com
Blog: http://www.geektillithertz.com/wordpress
Web: http://www.geektillithertz.com

john.t
Posts: 28
Joined: Fri Sep 23, 2016 10:56 am

Re: bcm_host.h: No such file

Tue Feb 07, 2017 7:57 pm

Hi
This is maybe a stupid question but where do i copy this file?root?boot?

thank you

Return to “General discussion”