GLBasic
Posts: 1
Joined: Mon Jul 02, 2012 9:10 pm

libGLES_CM.so is missing

Mon Jul 02, 2012 9:13 pm

as said, we're using OpenGL|ES 1.1 and the library seems missing on the Ubuntu image. Anything I can do?

Breakthrough
Posts: 2
Joined: Thu Aug 09, 2012 3:46 pm

Re: libGLES_CM.so is missing

Thu Aug 09, 2012 3:49 pm

I'm trying to port an SDL OpenGL application to OpenGL-ES, and ran into the same problem. I made sure I installed the proper packages, but the linker couldn't find libGLES_CM.

So, puzzled, I searched for all files starting with "libGL", and actually found that the library was infact present - just with a slightly different name: libGLESv1_CM.

Thus, for OpenGL ES v1.x, you link with the flag -lGLESv1_CM, and for v2.x, you link with the flag -lGLESv2.

Pickle
Posts: 68
Joined: Tue Sep 20, 2011 5:09 pm

Re: libGLES_CM.so is missing

Thu Aug 09, 2012 5:39 pm

at least with the debian image everything was tucked away in /opt/vc

so /opt/vc/include has the headers and /opt/vc/lib has the libs

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5502
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: libGLES_CM.so is missing

Fri Aug 10, 2012 1:09 am

There is no GLES_CM. GLESv2 contains both GLES v1 and v2. Make sure you link with the hw accelerated libs (usually installed in /opt/vc/lib).

Chips
Posts: 195
Joined: Sat Aug 18, 2012 8:21 pm

Re: libGLES_CM.so is missing

Sat Aug 25, 2012 5:54 pm

Then why not making a link by default from GLESv1_CM to GLESv2 ?
Many source code depends on this name so it would avoid to waste time on this issue...

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5502
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: libGLES_CM.so is missing

Sat Aug 25, 2012 6:04 pm

Does this:
cd /opt/vc/lib
sudo ln -s libGLESv2.so libGLES_CM.so

make building easier?

Chips
Posts: 195
Joined: Sat Aug 18, 2012 8:21 pm

Re: libGLES_CM.so is missing

Fri Sep 07, 2012 6:23 pm

no, you're missing the v1
eg:

sudo ln -s libGLESv2.so libGLESv1_CM.so

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5502
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: libGLES_CM.so is missing

Fri Sep 07, 2012 10:03 pm

Chips wrote:no, you're missing the v1
eg:

sudo ln -s libGLESv2.so libGLESv1_CM.so
Okay, so would doing:
sudo ln -s libGLESv2.so libGLESv1_CM.so

make building easier? I can probably add that to the git repo, so you cat that link as standard.

Chips
Posts: 195
Joined: Sat Aug 18, 2012 8:21 pm

Re: libGLES_CM.so is missing

Sat Sep 08, 2012 9:27 am

Yes, that would helps

Return to “OpenGLES”