User avatar
jwzumwalt
Posts: 44
Joined: Sun Aug 04, 2013 4:00 pm

Raspbian core video support

Mon Sep 30, 2013 3:38 am

I ran across a post and found that GENTOO uses a package manager that will install cor video support - GLES2, EGL, openmax and openVG by using the command...
emerge --ask raspberrypi-userland

Does Raspbian have a simular package for apt-get?

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

Re: Raspbian core video support

Mon Sep 30, 2013 6:32 am

Those are already installed as standard on Raspbian I believe.

sudo apt-get upgrade
sudo apt-get install

Should get latest version I think.

sudo rpi-update

Will update firmware as well.
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
jwzumwalt
Posts: 44
Joined: Sun Aug 04, 2013 4:00 pm

Re: Raspbian core video support

Mon Sep 30, 2013 7:17 am

I'v done this but when I check the include and lib directories the openvg which is most important is not present. Nether is gless, gl, or opengl, glut, etc.

The most important thing to me is to get openvg I looked for a package name for using apt-get but did not find one. Any ideas?

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

Re: Raspbian core video support

Mon Sep 30, 2013 8:04 am

They should be somewhere around - you will need to include the Raspi specific ones (to get the right acceleration), they live in or around /opt/vc/...
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
AndyD
Posts: 2334
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

Re: Raspbian core video support

Mon Sep 30, 2013 8:08 am

The files you are looking for are in /opt/vc/
in /opt/vc/include

Code: Select all

bcm_host.h
EGL/
GLES/
GLES2/
IL/
interface/
KHR/
vcinclude/
VG/
WF/
in /opt/vc/lib

Code: Select all

libbcm_host.so
libdebug_sym.so
libEGL.so
libEGL_static.a
libGLESv1_CM.so
libGLESv2.so
libGLESv2_static.a
libkhrn_client.a
libkhrn_static.a
libmmal_core.so
libmmal.so
libmmal_util.so
libmmal_vc_client.so
libopenmaxil.so
libOpenVG.so
libvcfiled_check.a
libvchiq_arm.so
libvchostif.a
libvcos.so
libvmcs_rpc_client.a
libWFC.so
Look in /opt/vc/src/hello_pi/ for a number of examples that show the code needed initialize as well as the compile and link.

User avatar
jwzumwalt
Posts: 44
Joined: Sun Aug 04, 2013 4:00 pm

Re: Raspbian core video support

Mon Sep 30, 2013 4:05 pm

Thanks for the help. It appears that the apt-get or the distro did not do its job.

opt/vc/lib libraries are present
/opt/vc/include does not exist
/opt/vc/src does not exist


So... What are the apt-get library names I need for a reload gl, gles, openvg etc.?

Is there a way to use apt-get to do wildcard search listings etc?

UPDATE: After giving this some thought I think I know what happened. I recently ran this command
deborphan --guess-all | xargs apt-get -y remove --purge # remove orphan packages

I think it must of clobbered some directories.

User avatar
AndyD
Posts: 2334
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

Re: Raspbian core video support

Mon Sep 30, 2013 10:40 pm

I am not sure what is going on, but yes you have probably removed things from /opt/vc/ as this is all present in the Raspbian distro.

User avatar
jwzumwalt
Posts: 44
Joined: Sun Aug 04, 2013 4:00 pm

Re: Raspbian core video support

Tue Oct 01, 2013 2:15 am

Thanks for the help Andy. I was going to copy the files from another SD card but now I have decided to start with a fresh SD card. I have really learned a lot during the past week and a fresh start is the best choice. Thanks to your help and others I will have a very nice stable restart with many improvements. I have kept notes so my development system if will be better than before.

Thanks to everyone!

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: Raspbian core video support

Tue Oct 01, 2013 1:07 pm

jwzumwalt wrote:Is there a way to use apt-get to do wildcard search listings etc?
apt-cache search raspberrypi

Could also try:
apt-cache search raspberry
apt-cache search raspi
apt-cache search rpi
as a 'just in case' ;)

Return to “Graphics programming”