Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. g++: error: /lib64/libGL.so: No such file or directory
Qt 6.11 is out! See what's new in the release blog

g++: error: /lib64/libGL.so: No such file or directory

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 5.1k Views 2 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.
  • WotanW Offline
    WotanW Offline
    Wotan
    wrote on last edited by
    #1

    Hello everyone,
    I got a little problem of compilation with my QtCreator.
    I am under Debian (Linux 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux) and I am compiling with QtCreator 4.7.2
    When I compile a project, I got the following error:
    "g++: error: /lib64/libGL.so: No such file or directory"
    This is normal because my library libGL.so is at the following address "/usr/lib/x86_64-linux-gnu/libGL.so"
    Of course, I can compile by replacing in my Makefile the ligne
    LIBS = [...] /lib64/libGL.so[...]
    by
    LIBS = [...] /usr/lib/x86_64-linux-gnu/libGL.so [...]
    But I would like QtCreator to construct correctly the Makefile directly.
    I feel that it is something in the definition of the "Kits" but I cannot find where.
    Does anyone have an idea ?
    Thanks for your help ...

    jsulmJ 1 Reply Last reply
    0
    • WotanW Wotan

      Hello everyone,
      I got a little problem of compilation with my QtCreator.
      I am under Debian (Linux 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux) and I am compiling with QtCreator 4.7.2
      When I compile a project, I got the following error:
      "g++: error: /lib64/libGL.so: No such file or directory"
      This is normal because my library libGL.so is at the following address "/usr/lib/x86_64-linux-gnu/libGL.so"
      Of course, I can compile by replacing in my Makefile the ligne
      LIBS = [...] /lib64/libGL.so[...]
      by
      LIBS = [...] /usr/lib/x86_64-linux-gnu/libGL.so [...]
      But I would like QtCreator to construct correctly the Makefile directly.
      I feel that it is something in the definition of the "Kits" but I cannot find where.
      Does anyone have an idea ?
      Thanks for your help ...

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Wotan Install libgl1-mesa-dev package.
      See http://doc.qt.io/qt-5/linux.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3
      • V Offline
        V Offline
        vasu_gupta
        wrote on last edited by
        #3

        i did what u recommended gave me this result

        build-essential is already the newest version (12.1ubuntu2).
        libgl1-mesa-dev is already the newest version (18.0.5-0ubuntu0~16.04.1).
        
        1 Reply Last reply
        0
        • WotanW Offline
          WotanW Offline
          Wotan
          wrote on last edited by
          #4

          Sorry but it didn't work.
          I installed libgl1-mesa-dev and also build-essential (I have seen that vasu_gupta had the same problem) but I still have the same problem ...

          1 Reply Last reply
          0
          • WotanW Offline
            WotanW Offline
            Wotan
            wrote on last edited by
            #5

            OK, so finally to solve my problem, I have created a symbolic link to my library:
            # ln -s /usr/lib/x86_64-linux-gnu/libGL.so /lib64/libGL.so
            I am not sure that this is the smartest way to solve it, but it worked !

            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