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. Qt Creator on Linux - GL Library
Forum Updated to NodeBB v4.3 + New Features

Qt Creator on Linux - GL Library

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.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.
  • A Offline
    A Offline
    Alan B
    wrote on last edited by
    #1

    I installed Qt Creator onto Linux Mint 18.1 using the website download.

    Creating a standard desktop widget app gives a compile failure which basically boils down to the GL library not being found (-lGL flag). I managed to work around it by opening the Makefile and removing -lGL .

    My questions are :-

    1. What is the GL library ? (I'm guessing graphics library)
    2. Why wasn't it installed if it's included in the build config by default?
    3. How can I install it?

    Thanks in advance

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

      Hi,

      1. The OpenGL libraries
      2. Because it's a system level dependency and in your case each Linux distribution provides it from possibly different sources depending partly on your graphic stack. Other OSs might provide them natively (e.g. macOS).
      3. Use your distribution package manager

      PS: this question has already been asked numerous times, please take the time to use the forum search.

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

        Hi,
        He needed Help and you just said RTFM... not fair... I have the same question as I installed QT 5.9 too on 18.1... the GL library is likely to be unavailable on 18.1 by default and the package seems hard to find... Help needed

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Arafaer
          wrote on last edited by
          #4

          search "mesa-dev" packages and select OpenGL implementation and install the stuff it worked for me

          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