User avatar
peepo
Posts: 306
Joined: Sun Oct 21, 2012 9:36 am

hello_pi howto build?

Sun Nov 03, 2013 12:36 pm

has anyone built hello_pi recently?
and able to offer advice?

fully up-to-date Rasbian Wheezy
following hello_pi README
sudo make -C libs/ilclient
sudo make -C libs/vgfont
no errors reported
however subsequently there were very many errors when building each program
ie fatal error: interface/vcos/vcos.h: no such file...
I tried editing various files,
interface/vchiq/vchiq.h No such file...
nb vchiq is not present, maybe vchiq_arm?

noted -lpthread is already in makefile.include

cannot seem to find what issue might be?

cheers!

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26442
Joined: Sat Jul 30, 2011 7:41 pm

Re: hello_pi howto build?

Sun Nov 03, 2013 2:56 pm

Have you cloned the entire Raspi userland repo, then tried buildme in the root of it?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

User avatar
peepo
Posts: 306
Joined: Sun Oct 21, 2012 9:36 am

Re: hello_pi howto build?

Sun Nov 03, 2013 4:30 pm

James,

using /opt/vc/src/hello_pi

perhaps you could elaborate?
It's not clear to me what you are proposing.

thanks again

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26442
Joined: Sat Jul 30, 2011 7:41 pm

Re: hello_pi howto build?

Sun Nov 03, 2013 7:22 pm

peepo wrote:James,

using /opt/vc/src/hello_pi

perhaps you could elaborate?
It's not clear to me what you are proposing.

thanks again
You can git clone the userland source tree that contains all the header files required to build all the example applications.

Code: Select all

git clone https://github.com/raspberrypi/userland.git
This will create the tree below the current working directory. Then you should have all the headers you need to build.

Are you compiling on the Raspi or cross compiling? The cross compiler is in

Code: Select all

git clone https://github.com/raspberrypi/tools.git
Use the linaro version of the compiler.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

User avatar
peepo
Posts: 306
Joined: Sun Oct 21, 2012 9:36 am

Re: hello_pi howto build?

Sun Nov 03, 2013 8:34 pm

James,

/opt/vc/userland/ is present.

apologies but what exactly needs to be done to build hello_pi?

User avatar
peepo
Posts: 306
Joined: Sun Oct 21, 2012 9:36 am

Re: hello_pi howto build?

Mon Nov 04, 2013 10:58 am

have working on another box without userland...

still not clear how to resolve this conflict.

tx

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26442
Joined: Sat Jul 30, 2011 7:41 pm

Re: hello_pi howto build?

Mon Nov 04, 2013 11:15 am

The buildme script at the root of userland will build all the examples. It'll take a while on a Pi. I've never tried building without userland, so cannot help there.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

User avatar
peepo
Posts: 306
Joined: Sun Oct 21, 2012 9:36 am

Re: hello_pi howto build?

Mon Nov 04, 2013 2:09 pm

James,

unfortunately I had tried this, and it did take a few minutes,
however it did not resolve the issue.
iirc there were various error messages similar to those already posted.

hence my persistence...
I wonder if there is something else?

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26442
Joined: Sat Jul 30, 2011 7:41 pm

Re: hello_pi howto build?

Mon Nov 04, 2013 3:32 pm

Will need the log messages to fathom it out I think.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

User avatar
Emanuele
Posts: 182
Joined: Wed Aug 03, 2011 5:28 pm
Contact: Website

Re: hello_pi howto build?

Thu Nov 07, 2013 1:35 pm

peepo wrote:has anyone built hello_pi recently?
and able to offer advice?

fully up-to-date Rasbian Wheezy
following hello_pi README
sudo make -C libs/ilclient
sudo make -C libs/vgfont
no errors reported
however subsequently there were very many errors when building each program
ie fatal error: interface/vcos/vcos.h: no such file...
I tried editing various files,
interface/vchiq/vchiq.h No such file...
nb vchiq is not present, maybe vchiq_arm?

noted -lpthread is already in makefile.include

cannot seem to find what issue might be?

cheers!
Not sure if it's recent enough, but I did build the firmware without building the userland on a minibian (which I guess is close enough to a raspbian) without issues a couple of weeks ago. Actually, I didn't have freetype installed, so I didn't build everything, but most demos were fine.

What about inspecting or copying and pasting the offending gcc line? It should have a -I/opt/vc/include argument somewhere and you should have a /opt/vc/include/interface/vcos/vcos.h in your file system.

Return to “OpenGLES”