Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. qt5.4.1->qt5.5.1 [5.9.6; 5.10.1] - OpenGL builds OK but apps don't see it
Forum Update on Monday, May 27th 2025

qt5.4.1->qt5.5.1 [5.9.6; 5.10.1] - OpenGL builds OK but apps don't see it

Scheduled Pinned Locked Moved Solved Installation and Deployment
21 Posts 3 Posters 3.8k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #12

    Ok, so in fact, your current test setup isn't really cross-compiling since you start and end with the exact same architecture.

    What hardware are you using to run minimyth2 ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    W 1 Reply Last reply
    0
    • SGaistS SGaist

      Ok, so in fact, your current test setup isn't really cross-compiling since you start and end with the exact same architecture.

      What hardware are you using to run minimyth2 ?

      W Offline
      W Offline
      warpme
      wrote on last edited by warpme
      #13

      @SGaist said in qt5.4.1->qt5.5.1 [5.9.6; 5.10.1] - OpenGL builds OK but apps don't see it:

      Ok, so in fact, your current test setup isn't really cross-compiling since you start and end with the exact same architecture.

      Well - I would say: it IS cross compiling but in this exercise build, host and target are all x86_64. But only cpu arch is single common part.
      All other vital components (gcc, glibc, binutils, kernel, qt, etc are different).

      So pls don't be mislead: situation that build and target have declared the same architecture not means that there is no cross-compile.

      What hardware are you using to run minimyth2 ?

      It is any x86 or selected armv7 / aarch64 (bcm2837 tested)
      For x86 I have users with: Intel NUC, ION1, ION2, multiple AMD (Kabini, Richland, etc).
      Basically I'm supporting any x86 CPU and 1503 gfx cards out-of-box (with full auto detection and auto-configure)

      1 Reply Last reply
      0
      • W Offline
        W Offline
        warpme
        wrote on last edited by warpme
        #14

        I started to play with myth code to see what qt5.10.1 provides.
        After disabling OpenGL checks I started to see:

        QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
        

        Of course I have libglx.so in /home/piotro/minimyth-dev/images/main/usr/lib/xorg/modules/extensions.

        qt config summary also says GLX on X11:yes

        X11:
          Using system-provided XCB libraries .. yes
          EGL on X11 ........................... yes
          Xinput2 .............................. yes
          XCB XKB .............................. yes
          XLib ................................. yes
          XCB render ........................... yes
          XCB GLX .............................. yes
          XCB Xlib ............................. yes
          Using system-provided xkbcommon ...... yes
          Native painting (experimental) ....... yes
        

        What are other possible reasons for such error?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #15

          I wonder if it's a question of libraries versions.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          W 1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #16

            Consider running conifugre with verbose flag - you'll be able to see what libs it is looking for an maybe whether there are some warnings popping up.

            (Z(:^

            W 1 Reply Last reply
            1
            • SGaistS SGaist

              I wonder if it's a question of libraries versions.

              W Offline
              W Offline
              warpme
              wrote on last edited by warpme
              #17

              @SGaist said in qt5.4.1->qt5.5.1 [5.9.6; 5.10.1] - OpenGL builds OK but apps don't see it:

              I wonder if it's a question of libraries versions.

              I was thinking about this as well.
              I made test build with qt build-in xcb (assuming bundled xcb for sure is OK).
              OpenGL still not works.
              Currently I think qt5.5+ has changed opengl subsystem in a way that my cross-build procedure earlier described in this thread (my message from 8 days ago) will not work anymore.

              I think it is qt bug as:

              • conceptually procedure is OK (IMHO)
              • procedure works for qt5.4 and earlier
              • qt5.10 configure says Yes in all places where needed
              • qt5.10 build reports no errors nor related warnings
              1 Reply Last reply
              0
              • sierdzioS sierdzio

                Consider running conifugre with verbose flag - you'll be able to see what libs it is looking for an maybe whether there are some warnings popping up.

                W Offline
                W Offline
                warpme
                wrote on last edited by
                #18

                @sierdzio
                Pls look at my earlier post where I put links to full build log with -verbose flag in configure.
                Pls look at 5.5.1.log (as 5.5 is first qt ver. where opengl not works for me.)
                Maybe You will discover something meaningful in build log.
                I can't :-(

                1 Reply Last reply
                0
                • W Offline
                  W Offline
                  warpme
                  wrote on last edited by
                  #19

                  ok - I found it.
                  Issue was typo in filename of xcbintegration libs in my install script. argh....
                  5.4.x family don't have those libs while 5.5+ has.
                  I added images of those libs to boot image - but 2 letters in filename were in reverse order....

                  thx anybody who was trying to help me!

                  1 Reply Last reply
                  3
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #20

                    Glad you found out and thanks for sharing !

                    What was the additional file you had wrong ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    W 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      Glad you found out and thanks for sharing !

                      What was the additional file you had wrong ?

                      W Offline
                      W Offline
                      warpme
                      wrote on last edited by
                      #21

                      @SGaist said in qt5.4.1->qt5.5.1 [5.9.6; 5.10.1] - OpenGL builds OK but apps don't see it:

                      Glad you found out and thanks for sharing !

                      What was the additional file you had wrong ?

                      oh it was

                      libqxcb-glx-integration.so
                      

                      in

                      /usr/lib/qt5/plugins/xcbglintegrations
                      

                      dir
                      This .so is new addition since 5.5.
                      may ppl has issues with nonworking OpenGL due missing this library after upgrade to 5.5 but forgotten to install this lib. (there is also EGL version of this lib btw)
                      It is usually because packagers are frequently putting them the into separate package called usually xcbglintegrations plugins or similar.

                      btw: I'm really impressed in increasing quality of qt regarding building process.

                      1 Reply Last reply
                      1

                      • Login

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