stellarium 0.13.2 built fine on my system with USE="-egl" but failed to run, claiming that OpenGL 2.1 is not available on my system. Thanks to the developer's help on IRC (thanks!) we figured out that egl might be missing and setting +egl on dev-qt/qtgui:5 fixed it. Dependency should be adjusted Reproducible: Always
builds and runs fine for me without that use flag. I'm assuming it's because of the opengl that you're using so please attach the output from emerge --info and the messages that stellarium prints out at startup.
Created attachment 395470 [details] emerge --info AFTER the USE flag has been changed (+egl and +evdev)
current (after the change) emerge --info has been attached. qtgui:5 USE-flags before were: qtgui: 5.4.0(5)^t(14:44:55 02.02.2015)(accessibility gif gles2 harfbuzz jpeg opengl png udev xcb -debug -egl -eglfs -evdev -ibus -kms -test)
Created attachment 395472 [details] message output from stellarium
Created attachment 395474 [details] glxinfo
I wonder if it's just the egl use flag on mesa that you need. Can you try turning it on for mesa but just having the opengl flag turned on for qtgui?
No, it really seems to be qtgui that matters. I have mesa-10.4.3 with "classic dri3 egl gallium gbm gles1 gles2 llvm nptl osmesa pic udev vaapi wayland xa xvmc -bindist -debug -opencl -openmax -pax_kernel -r600-llvm-compiler -selinux -vdpau" and qtgui-5.4.0 with "accessibility gif gles2 harfbuzz jpeg opengl png udev xcb -debug -egl -eglfs -evdev -ibus -kms -test" and running stellarium fails with "No OpenGL 2.1 support on this system. Aborting."
I don't want to force people to turn on egl and evdev if they don't have to. I could put in some kind of message for people with inferior opengl setups but that's not great. I'm open to suggestions.
I cannot judge on how much impact enabling the two USE flags have. Personally I don't have a problem enabling them. Futhermore one might take a look at stellarium's source code to see if the check for "OpenGL 2.1" or at least the error message shown could be improved. Maybe egl is not required but they're checking for the wrong things?
hi, seems that stellarium really needs qtgui being built with egl flag. qtgui with gles2 and without egl/eglfs: stellarium refused to run. With those flags: works great.
try it without gles2. I'm thinking that if you have gles2 enabled that it also needs egl.