Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What a mix of EGL, GL, GLES and glx
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1480

PostPosted: Tue Mar 08, 2016 7:56 pm    Post subject: What a mix of EGL, GL, GLES and glx Reply with quote

If I analyze using this script
Code:
#!/bin/bash
for i in $(find /var/db/pkg -name 'NEEDED') ;do
 grep -q -e'libGL.so' "$i"  &&g='libGL' ||g=''
 grep -q -e'libGLES'  "$i"  &&g="$g libGLES"
 grep -q -e'libEGL.s' "$i" &&g="$g libEGL"
 grep -q -e'libglx'   "$i" &&g="$g libglx"
 i=${i/\/var\/db\/pkg\/}
 [ "$g" = "" ] ||echo "${i%\/NEEDED} $g"
done
I do get various doubles:
net-libs/webkit-gtk-2.4.9 libGLES libEGL
media-libs/gst-plugins-bad-1.6.3 libGL libEGL
media-libs/mesa-11.1.2-r1 libGL libGLES libEGL
dev-qt/qtgui-5.5.1-r1 libGLES libEGL
media-plugins/gst-plugins-vaapi-0.7.0 libGL libEGL

In some Gentoo bugs there is stated
mixing up OpenGL, Egl and Gles may crash you system.
But on the other hand portage often requires
to set both USE flags Egl and Gles2. Any clue somebody?
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8936

PostPosted: Tue Mar 08, 2016 8:47 pm    Post subject: Re: What a mix of EGL, GL, GLES and glx Reply with quote

ulenrich wrote:
In some Gentoo bugs there is stated
mixing up OpenGL, Egl and Gles may crash you system.

That's a very general statement that cannot possibly be answered.
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1480

PostPosted: Wed Mar 09, 2016 10:35 am    Post subject: Re: What a mix of EGL, GL, GLES and glx Reply with quote

genstorm wrote:
ulenrich wrote:
In some Gentoo bugs there is stated
mixing up OpenGL, Egl and Gles may crash you system.

That's a very general statement that cannot possibly be answered.

Despite yesterday having read that bug in question I cannot re-find it again. Remembering the user said: Most of all ABI functions are in all of that libraries and you should not mix them during runtime.

Finding the power you get when utilizing the /var/db/..../NEEDED files for analyzing that situation:
Code:
# cd /var/db/pkg &&grep -r -l --include="NEEDED" -e'libGL.so' -e'libGLES' -e'libwayland' -e'libEGL.so'

I suggest you play with such:
Code:
# cd /var/db/pkg && \
USE='-gles -gles1 -gles2 -opengl webgl mesa -classic gallium wayland egl' \
emerge --deep --ask --verbose \
$(grep -r -l --include="NEEDED" -e'libGL.so' -e'libGLES' -e'libwayland' -e'libEGL.so' |sed -e's/^/=/' -e's:/NEEDED::')

You will not find one line of USE flags that fits them all! (This also when using any "--exclude=webkit-gtk" directive)
:(
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Wed Mar 09, 2016 4:19 pm    Post subject: Re: What a mix of EGL, GL, GLES and glx Reply with quote

ulenrich wrote:

Despite yesterday having read that bug in question I cannot re-find it again. Remembering the user said: Most of all ABI functions are in all of that libraries and you should not mix them during runtime.


This sounds to me more like an application development issue than a system configuration issue. I think they're suggesting that an application should select one interface and stick to it, and not mix two interfaces. You could "fix" this if you felt you needed to on an app-by-app, lib-by-lib basis in package.use. Probably the biggest issue would be some common lib with USE flags for multiple interfaces, where package1 needs one interface and package2 needs a different one. It might take a bit of juggling, or hoping that the lib author was able to understand his calling context interface.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1480

PostPosted: Wed Mar 09, 2016 9:40 pm    Post subject: Re: What a mix of EGL, GL, GLES and glx Reply with quote

depontius wrote:
This sounds to me more like an application development issue than a system configuration issue.

@depontius, you enlightened me. Already was wondering why my system would not crash far more often :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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