Qt and OpenGL ES
-
First of all, is it intended that you use X11 as a window manager on the device? I choose to not use it, since Qt would take care of all my needs in that sense. - Just a thought.
In any case, by looking at the output you printed;
... warning: libX11.so.6, needed by /home/spidermanma/opengl-lib/lib/libEGL.so, not found ...
probably implies that the library containing the XOpenDisplay (X11) needs the corresponding library libX11.so.6 to work properly. Look for the library, and make sure it is reachable by the compiler. -
Yes,you are right.I found X11 libs and put them into the right package . Eventually , I configure qt embedded successfully . It's a long time I have worked on it, this is a big step for me . Thanks to your help, I make it .
I will run command 'make' tomorrow , because there are some other libs(such as tslib, etc.) should be added into qt libs .
But , if X11 is not necessary as you mentioned , how can I remove it and configure it without errors ? Can I configure qt embedded without X11 ? -
Hi, almagest.
I have built qt with opengl es . But I got a error again, when I run opengl examples.
The error :libEGL debug: dlopen(/mnt/nfs/builtQte2/lib/egl/egl_glx.so)
libEGL warning: GLX: XOpenDisplay failed
libEGL debug: EGL user error 0x3001 (other) in eglInitializeQEglContext::defaultDisplay(): Cannot initialize EGL display: "Not initialized (0x3001)"
I compiled X11 before , since I didn't know that it is not necessary . But what can I use as a driver for libEGL without X11 ? What can I do with this error , if I use X11 ? I am so glad to get any idea from you.
-s
-
Thank you very much all the same . Maybe this is something special with my platform .
-s
-
Have you tried to run a opengles2 example that does not use qt?
Then you can prove that at least some parts are working as they should.I have an example written in c++ that i used to show a rotating triangle. Like you, i have problems running opengles2 within the qt environment.
-
Hi
I am sorry to reply so late , because of my classes and homework .I have run opengles examples on my platform and it's good . I have read a article "here":http://labs.qt.nokia.com/2010/08/05/hitching-qtembedded-to-a-framebuffer-opengl-es-2-abstraction/ . It seems that every kind of platform has its own EGL driver as QScreen management . Just like WSEGL for powervr . So , I think we have the same problem that we don't have the right EGL driver .
This is what I think . I don't know whether it is right or not . How can get the right driver or any other solution to me , if I am right ? What cause this error , if I am wrong ?
-s
-
Hi,
I got similar error as below,@QEgl::display(): Cannot initialize EGL display: "Not initialized (0x3001)"
QEglContext::chooseConfig(): Could not find a suitable EGL configuration
Requested: "type=es2 rgba=8,8,8,0 surface-type=window"
Available: @Have you solved your problem?
-
DreamerIndia, please don't double (or triple-post) your problem.
Generally, if you want help, state as much information as possible regarding your system, compiler, goals .. etc.You posted the same question in different threads recently, please do not hijack threads like this. (it also makes searching harder, since you get hits on tons of identical questions..)
Your identical threads;
http://qt-project.org/forums/viewthread/35307/
http://qt-project.org/forums/viewthread/35392/Maybe you should try to run some GLES application that does not require Qt or EGL first?
-
Hi almagest,
have you had any luck with the original problem?. I'm working with a iMX53 QSB, compiled everything to run Qt with OpenGL following this "post":https://community.freescale.com/thread/230065 and had exactly the same result as you:
@hellogl_es2$ ./hellogl_es2 -qws
QEgl::display(): Cannot initialize EGL display: "Not initialized (0x3001)"
QEglContext::chooseConfig(): Could not find a suitable EGL configuration
Requested: "type=es2 rgba=5,6,5,0 surface-type=window"
Available:@Could you resolve this problem? I had googled a lot, also in Qt forums an iMX community with no luck.
My compiled version of Qt without OpenGL works perfect.
Thanks in advance!