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. Error: cannot find -lGL
Forum Updated to NodeBB v4.3 + New Features

Error: cannot find -lGL

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 602 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.
  • D Offline
    D Offline
    dezintegrator
    wrote on last edited by
    #1

    I have installed Qt IDE with Qt Online Installer for Linux 32-bit (23 MB). I have a problem, then I am compilled simple qt widget application :
    :-1: error: cannot find -lGL'
    :-1: error: collect2: error: ld returned 1 exit status

    Help me please to solve this problem.

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

      Hi,

      You need to install OpenGL development libraries. On Ubuntu, the package is libgl1-mesa-dev.

      P.S. This is a very common topic -- Google would have helped you find the solution quickly.

      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