Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eselect opengl problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mansonquasch
n00b
n00b


Joined: 15 Jan 2007
Posts: 47

PostPosted: Fri Apr 19, 2013 7:23 am    Post subject: eselect opengl problems Reply with quote

Hi there,

I am currently developing ebuilds for mali drivers for the Odroid U2. I know that there are some more general mali ebuilds around, but I'd like to base these ebuilds on the files provided by hardkernel, thus I started this work.

Anyway, I managed to create one ebuild, which installs the desired files in the necessary places, e.g. in /usr/lib/opengl/mali/*/:

Code:

odroid lib # pwd
/usr/lib/opengl/mali/lib
odroid lib # ls -l
insgesamt 740
lrwxrwxrwx 1 root root     11 19. Apr 09:08 libEGL.so -> libEGL.so.1
lrwxrwxrwx 1 root root     13 19. Apr 09:08 libEGL.so.1 -> libEGL.so.1.4
lrwxrwxrwx 1 root root     10 19. Apr 09:08 libEGL.so.1.4 -> libMali.so
lrwxrwxrwx 1 root root     37 19. Apr 09:08 libGL.so -> /usr/lib/opengl/xorg-x11/lib/libGL.so
lrwxrwxrwx 1 root root     39 19. Apr 09:08 libGL.so.1 -> /usr/lib/opengl/xorg-x11/lib/libGL.so.1
lrwxrwxrwx 1 root root     17 19. Apr 09:08 libGLESv1_CM.so -> libGLESv1_CM.so.1
lrwxrwxrwx 1 root root     19 19. Apr 09:08 libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.1
lrwxrwxrwx 1 root root     10 19. Apr 09:08 libGLESv1_CM.so.1.1 -> libMali.so
lrwxrwxrwx 1 root root     14 19. Apr 09:08 libGLESv2.so -> libGLESv2.so.2
lrwxrwxrwx 1 root root     16 19. Apr 09:08 libGLESv2.so.2 -> libGLESv2.so.2.0
lrwxrwxrwx 1 root root     10 19. Apr 09:08 libGLESv2.so.2.0 -> libMali.so
-rwxr-xr-x 1 root root 731492 19. Apr 09:08 libMali.so
lrwxrwxrwx 1 root root     10 19. Apr 09:08 libOpenVG.so -> libMali.so
lrwxrwxrwx 1 root root     10 19. Apr 09:08 libOpenVGU.so -> libMali.so
-rwxr-xr-x 1 root root  22232 19. Apr 09:08 libUMP.so


The mesa GL libs are linked due to the fact that mali is only able to provide EGL and OpenGL ES, but no pure OpenGL.

However, when I switch to the opengl mali interface via 'eselect opengl set mali', I get the following:

Code:

odroid lib # pwd
/usr/lib
odroid lib # ls -l *GL*
lrwxrwxrwx 1 root root     26 19. Apr 09:08 libEGL.so -> opengl/mali/lib/libMali.so
lrwxrwxrwx 1 root root     34 19. Apr 09:08 libGL.so -> opengl/xorg-x11/lib/libGL.so.1.2.0
lrwxrwxrwx 1 root root     34 19. Apr 09:08 libGL.so.1 -> opengl/xorg-x11/lib/libGL.so.1.2.0
lrwxrwxrwx 1 root root     26 19. Apr 09:08 libGLESv1_CM.so -> opengl/mali/lib/libMali.so
lrwxrwxrwx 1 root root     26 19. Apr 09:08 libGLESv2.so -> opengl/mali/lib/libMali.so
[... some unrelated files are cut ...]


If you compare both snippets, you will see that only one link for each libEGL, libGLESv1_CM and libGLESv2 is provided, whilst for libGL both links are there. Mainly, there are no links with numbers after *.so, such as e.g. libEGL.so.1. Apparently, some applications need these links.

For comparison reasons, here is the same output with 'eselect opengl set xorg-x11':

Code:

odroid lib # pwd
/usr/lib/opengl/xorg-x11/lib
odroid lib # ls -l
insgesamt 532
lrwxrwxrwx 1 root root     15 31. Mär 00:24 libEGL.so -> libEGL.so.1.0.0
lrwxrwxrwx 1 root root     15 31. Mär 00:24 libEGL.so.1 -> libEGL.so.1.0.0
-rwxr-xr-x 1 root root 100912  8. Apr 11:48 libEGL.so.1.0.0
lrwxrwxrwx 1 root root     14 31. Mär 00:24 libGL.so -> libGL.so.1.2.0
lrwxrwxrwx 1 root root     14 31. Mär 00:24 libGL.so.1 -> libGL.so.1.2.0
-rwxr-xr-x 1 root root 366876  8. Apr 11:48 libGL.so.1.2.0
lrwxrwxrwx 1 root root     21 31. Mär 00:24 libGLESv1_CM.so -> libGLESv1_CM.so.1.1.0
lrwxrwxrwx 1 root root     21 31. Mär 00:24 libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.1.0
-rwxr-xr-x 1 root root  25768  8. Apr 11:48 libGLESv1_CM.so.1.1.0
lrwxrwxrwx 1 root root     18 31. Mär 00:24 libGLESv2.so -> libGLESv2.so.2.0.0
lrwxrwxrwx 1 root root     18 31. Mär 00:24 libGLESv2.so.2 -> libGLESv2.so.2.0.0
-rwxr-xr-x 1 root root  33960  8. Apr 11:48 libGLESv2.so.2.0.0


Code:

odroid lib # pwd
/usr/lib
odroid lib # ls -l *GL*
lrwxrwxrwx 1 root root     35 19. Apr 09:15 libEGL.so -> opengl/xorg-x11/lib/libEGL.so.1.0.0
lrwxrwxrwx 1 root root     35 19. Apr 09:15 libEGL.so.1 -> opengl/xorg-x11/lib/libEGL.so.1.0.0
lrwxrwxrwx 1 root root     34 19. Apr 09:15 libGL.so -> opengl/xorg-x11/lib/libGL.so.1.2.0
lrwxrwxrwx 1 root root     34 19. Apr 09:15 libGL.so.1 -> opengl/xorg-x11/lib/libGL.so.1.2.0
lrwxrwxrwx 1 root root     41 19. Apr 09:15 libGLESv1_CM.so -> opengl/xorg-x11/lib/libGLESv1_CM.so.1.1.0
lrwxrwxrwx 1 root root     41 19. Apr 09:15 libGLESv1_CM.so.1 -> opengl/xorg-x11/lib/libGLESv1_CM.so.1.1.0
lrwxrwxrwx 1 root root     38 19. Apr 09:15 libGLESv2.so -> opengl/xorg-x11/lib/libGLESv2.so.2.0.0
lrwxrwxrwx 1 root root     38 19. Apr 09:15 libGLESv2.so.2 -> opengl/xorg-x11/lib/libGLESv2.so.2.0.0
[... some unrelated files are cut ...]


As you can see, the *.so.X links are set correctly for xorg-x11 by eselect opengl.

What am I doing wrong with the mali files here?

Thanks a lot.

m.
Back to top
View user's profile Send private message
mansonquasch
n00b
n00b


Joined: 15 Jan 2007
Posts: 47

PostPosted: Fri Apr 19, 2013 3:16 pm    Post subject: Reply with quote

Well, the problem was, that the libraries were lacking their sonames.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum