Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt and OpenGL ES

Qt and OpenGL ES

Scheduled Pinned Locked Moved Mobile and Embedded
30 Posts 4 Posters 38.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    spidermanma
    wrote on last edited by
    #20

    Hi.
    I don't know what to say,you are really a good guider and kind heart friend.
    You know what,you cheer me up. And fortunately, I have made a little progress:

    I have rebuilt mesa7.5 by arm-linux-g++ ,thought I haven't completely succeeded,
    I got several libs ,such as libEGL.so, etc . So, I copied them and put into the package with other libs which I have download before from "here":http://packages.debian.org/experimental/armel/libegl1-mesa-dev . Then , I configure qt embedded with these libs like this:

    ./configure -embedded arm -xplatform qws/linux-arm-g++ --prefix=/home/mx/qte/built -opengl es1 -nomake demos -no-libtiff -no-gif -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-tds -no-dbus -no-cups -no-dbus -no-cups -no-qt3support -no-phonon -no-pch -no-openssl -no-nis -no-scripttools -no-script -no-javascript-jit -no-stl -qt-mouse-linuxtp -fast -little-endian -no-separate-debug-info -depths 8,16 -L/home/spidermanma/opengl-lib/lib -I/home/spidermanma/opengl-lib/include -v

    But there is still a error :

    /usr/local/arm/4.3.1-eabi-armv6/usr/bin-ccache/../lib/gcc/arm-samsung-linux-gnueabi/4.3.1/../../../../arm-samsung-linux-gnueabi/bin/ld: warning: libX11.so.6, needed by /home/spidermanma/opengl-lib/lib/libEGL.so, not found (try using -rpath or -rpath-link)
    /home/spidermanma/opengl-lib/lib/libEGL.so: undefined reference to `XOpenDisplay'
    collect2: ld returned 1 exit status
    make: *** [egl4gles1] error 1
    EGL (GLES/egl.h) disabled

    As far as I know , XOpenDisplay is a important function. Why doesn't such a important function undefined in libEGL.so ? Do I miss some files ,or is there something wrong with my header egl.h ?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      almagest
      wrote on last edited by
      #21

      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.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        spidermanma
        wrote on last edited by
        #22

        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 ?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          spidermanma
          wrote on last edited by
          #23

          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 eglInitialize

          QEglContext::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

          1 Reply Last reply
          0
          • A Offline
            A Offline
            almagest
            wrote on last edited by
            #24

            Im really sorry that i cannot help you with this problem, i really dont know the answers to this. My best advice would be to spend quite some time googling this spesific problem though. Maybe somebody else have some ideas?

            1 Reply Last reply
            0
            • S Offline
              S Offline
              spidermanma
              wrote on last edited by
              #25

              Thank you very much all the same . Maybe this is something special with my platform .

              -s

              1 Reply Last reply
              0
              • A Offline
                A Offline
                almagest
                wrote on last edited by
                #26

                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.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  spidermanma
                  wrote on last edited by
                  #27

                  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

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    dreamerindia
                    wrote on last edited by
                    #28

                    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?

                    ~Ravivarman~

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      almagest
                      wrote on last edited by
                      #29

                      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?

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        perez.sgo
                        wrote on last edited by
                        #30

                        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!

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved