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. [SOLVED] How to create symlink for libs? Debian Wheezy.
Forum Update on Monday, May 27th 2025

[SOLVED] How to create symlink for libs? Debian Wheezy.

Scheduled Pinned Locked Moved Solved Installation and Deployment
7 Posts 3 Posters 2.9k 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.
  • E Offline
    E Offline
    eduardojsm
    wrote on last edited by
    #1

    I installed Qt 5.2 on Debian Wheezy with the Online Installer and I open the Qt Creator, then I created a new project and I build, but he returns this error:
    @:-1: error: cannot find -lGL
    :-1: error: collect2: error: ld returned 1 exit status@
    @16:52:53: Running steps for project SeriesGuidePC...
    16:52:53: Configuration unchanged, skipping qmake step.
    16:52:53: Starting: "/usr/bin/make"
    g++ -Wl,-O1 -Wl,-rpath,/home/tux/Qt/5.2.1/gcc -Wl,-rpath,/home/tux/Qt/5.2.1/gcc/lib -o SeriesGuidePC main.o seriesguidepc.o moc_seriesguidepc.o -L/home/tux/Qt/5.2.1/gcc/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
    /usr/bin/ld: cannot find -lGL
    collect2: error: ld returned 1 exit status
    make: *** [SeriesGuidePC] Error 1
    16:52:54: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project SeriesGuidePC (kit: Desktop Qt 5.2.1 GCC 32bit)
    When executing step 'Make'
    16:52:54: Elapsed time: 00:00.@

    Must be why the libs are not linked correctly in the system, because when I install Qt 4.8 using apt-get it usually works.

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

      Hi and welcome to devnet,

      You are just missing the OpenGL development libraries

      Just call
      @sudo apt-get install mesa-common-dev@

      and you should be good to go

      Happy Coding !

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

      O 1 Reply Last reply
      0
      • E Offline
        E Offline
        eduardojsm
        wrote on last edited by
        #3

        Hi, I installed the mesa-common-dev and still returning the same error. :(

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

          Then also install

          sudo apt-get install libgl1-mesa-dev

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

          1 Reply Last reply
          0
          • E Offline
            E Offline
            eduardojsm
            wrote on last edited by
            #5

            It worked! Thank you! :D

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

              You're welcome !

              Since you are all setup now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

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

              1 Reply Last reply
              0
              • SGaistS SGaist

                Hi and welcome to devnet,

                You are just missing the OpenGL development libraries

                Just call
                @sudo apt-get install mesa-common-dev@

                and you should be good to go

                Happy Coding !

                O Offline
                O Offline
                ofmrew
                wrote on last edited by
                #7

                @SGaist said in [SOLVED] How to create symlink for libs? Debian Wheezy.:

                sudo apt-get install mesa-common-dev

                This still works. Just loaded a fresh Mint Linux, then needed to run
                sudo apt update
                sudo apt install build-essential
                sudo apt-get install mesa-common-dev
                to get it to compile. Thanks

                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