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. Trouble with opengl and Qt 5.1
Qt 6.11 is out! See what's new in the release blog

Trouble with opengl and Qt 5.1

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 1.9k 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.
  • M Offline
    M Offline
    MyQtAccount
    wrote on last edited by
    #1

    I'm trying to build a preexisting project but get the following:
    error: cannot find -lGL

    opengl was added into the .pro file.

    Looking at other posts I tried this:
    sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev

    I keep getting this though:
    The following packages have unmet dependencies:
    libgl1-mesa-dev : Depends: libgl1-mesa-glx (= 9.0.1-0ubuntu1~precise)
    E: Unable to correct problems, you have held broken packages.

    Attempting to install glx gives:
    The following packages have unmet dependencies:
    libgl1-mesa-glx : Depends: libglapi-mesa (= 9.0.1-0ubuntu1~precise)

    It tells me libglapi-mesa is already installed and up to date, so I'm at a loss for what to try next.

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

      Hi,

      Did you try to find which package is broken ?

      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
      • M Offline
        M Offline
        MyQtAccount
        wrote on last edited by
        #3

        No, I really don't know what to do now. This is on Ubuntu and I'm not very familiar with it.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          john_god
          wrote on last edited by
          #4

          Try the package libqt5opengl5-dev

          1 Reply Last reply
          0
          • M Offline
            M Offline
            MyQtAccount
            wrote on last edited by
            #5

            I tried that but it just tell me it can't locate the package:

            $ sudo apt-get install libqt5opengl5-dev
            E: Unable to locate package libqt5opengl5-dev

            Was there a different way I was supposed to do it?
            Installing aptitude and using that didn't find it either.

            1 Reply Last reply
            0
            • JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              Try uninstalling libglapi-mesa (and any other broken packages), and then reinstalling them.

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              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