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. Qt-Creator does not start
Qt 6.11 is out! See what's new in the release blog

Qt-Creator does not start

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
qtcreator
13 Posts 4 Posters 4.5k Views 1 Watching
  • 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.
  • B Offline
    B Offline
    BoboFuego
    wrote on last edited by
    #1

    Hello, I just had a fresh new install of Qt 6.2.2 on Ubuntu 20.04.3 LTS, and at the first attempt of running Qt-Creator it logs out the error below and the application does not start!
    ./qtcreator: error while loading shared libraries: libOpenGL.so.0: cannot open shared object file: No such file or directory

    What can I don to fix this? Thanks in advance

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

      Install OpenGL drivers (sudo apt install libx11-xcb-dev libglu1-mesa-dev).

      You can also launch Qt Creator without plugins by running it with flags: -noload QmlProfiler -noload QuickDesigner. https://doc.qt.io/qtcreator/creator-faq.html

      (Z(:^

      1 Reply Last reply
      0
      • B Offline
        B Offline
        BoboFuego
        wrote on last edited by
        #3

        I tried to install the suggested packages, but they turned out to be already installed!

        Me@Me:~$ sudo apt install libx11-xcb-dev libglu1-mesa-dev
        Reading package lists... Done
        Building dependency tree       
        Reading state information... Done
        libx11-xcb-dev is already the newest version (2:1.6.9-2ubuntu1.2).
        libglu1-mesa-dev is already the newest version (9.0.1-1build1).
        libglu1-mesa-dev set to manually installed.
        The following packages were automatically installed and are no longer required:
          libllvm11 libqt5x11extras5 qml-module-qtquick-dialogs
          qml-module-qtquick-privatewidgets shim
        Use 'sudo apt autoremove' to remove them.
        0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
        

        Anything else I can do?

        1 Reply Last reply
        0
        • B Offline
          B Offline
          BoboFuego
          wrote on last edited by
          #4

          I also run it with the suggested flags and it won't start either!

          ./qtcreator -noload QmlProfiler -noload QuickDesigner
          ./qtcreator: error while loading shared libraries: libOpenGL.so.0: cannot open shared object file: No such file or directory
          
          JonBJ 1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            That's weird. Can you run any other 3D app, like glxgears (it's part of mesa-utils)?

            Run locate libOpenGL.so to see where it is.

            (Z(:^

            1 Reply Last reply
            1
            • B BoboFuego

              I also run it with the suggested flags and it won't start either!

              ./qtcreator -noload QmlProfiler -noload QuickDesigner
              ./qtcreator: error while loading shared libraries: libOpenGL.so.0: cannot open shared object file: No such file or directory
              
              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by JonB
              #6

              @BoboFuego

              • Find out whether you have a libOpenGL.so.0
              • Assuming so, run an ldd on it to see if it has any missing dependencies.
              • If qtcreator cannot locate it, set environment variable QT_DEBUG_PLUGINS=1 and run it to check if diagnostic output tells you anything about where it is looking (not sure whether this step applies, but you can always try it).
              1 Reply Last reply
              1
              • B Offline
                B Offline
                BoboFuego
                wrote on last edited by BoboFuego
                #7

                this is what locate command returned:

                locate libOpenGL.so
                /snap/gnome-3-34-1804/66/usr/lib/x86_64-linux-gnu/libOpenGL.so
                /snap/gnome-3-34-1804/66/usr/lib/x86_64-linux-gnu/libOpenGL.so.0
                /snap/gnome-3-34-1804/66/usr/lib/x86_64-linux-gnu/libOpenGL.so.0.0.0
                /snap/gnome-3-34-1804/77/usr/lib/x86_64-linux-gnu/libOpenGL.so
                /snap/gnome-3-34-1804/77/usr/lib/x86_64-linux-gnu/libOpenGL.so.0
                /snap/gnome-3-34-1804/77/usr/lib/x86_64-linux-gnu/libOpenGL.so.0.0.0
                /snap/gnome-3-38-2004/87/usr/lib/x86_64-linux-gnu/libOpenGL.so
                /snap/gnome-3-38-2004/87/usr/lib/x86_64-linux-gnu/libOpenGL.so.0
                /snap/gnome-3-38-2004/87/usr/lib/x86_64-linux-gnu/libOpenGL.so.0.0.0
                

                what can I do to make qtcreator be aware of it's location?

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

                  That looks like a sandbox for some snap app. You could try adding that to LD path:

                  export LD_LIBRARY_PATH=/snap/gnome-3-38-2004/87/usr/lib/x86_64-linux-gnu
                  ./qtcreator
                  

                  But it would be better to install OpenGL for the whole system, not only for that snap package.

                  (Z(:^

                  1 Reply Last reply
                  1
                  • B Offline
                    B Offline
                    BoboFuego
                    wrote on last edited by
                    #9

                    So what can I do to install it? And which package should I install in order to have that shared lib for the whole system?

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

                      Go to system settings or software sources and find "Additional Drivers" - there select proper driver for your GPU.

                      Or you can install a software renderer with mesa, but sorry I don't remember the package name. It's definitely much better to pick proper GPU driver instead.

                      (Z(:^

                      1 Reply Last reply
                      0
                      • B Offline
                        B Offline
                        BoboFuego
                        wrote on last edited by BoboFuego
                        #11

                        I have an Intel Graphic card, and from Ubuntu' forum I understood that Intel Graphics driver's are preinstalled in the kernel, thus it shouldn't be a GPU driver issue.
                        And to give you some more info, I just install qtcreator 4.11.0 from Ubuntu package manager and it runs without issues, the problem appears only with the newest version I installed from Qt-website

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

                          Oh hey, this is a Qt C bug! It's fixed in Creator 6.0.1: https://www.qt.io/blog/qt-creator-6.0.1-released

                          (Z(:^

                          B 1 Reply Last reply
                          3
                          • sierdzioS sierdzio

                            Oh hey, this is a Qt C bug! It's fixed in Creator 6.0.1: https://www.qt.io/blog/qt-creator-6.0.1-released

                            B Offline
                            B Offline
                            bwillard
                            wrote on last edited by
                            #13

                            @sierdzio It doesn't work for me with Qt Creator 6.0.1 either.

                            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