Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-49137

Qt5.6 linux offline: examples not compiling (cannot find -lGL)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Invalid
    • Affects Version/s: 5.6.0 Beta
    • Fix Version/s: None
    • Component/s: Packaging & Installer
    • Labels:
    • Environment:
      Linux

      Description

      qt-enterprise-linux-x64-5.6.0-beta_254.run
      qt-opensource-linux-x64-5.6.0-beta_250.run

      Install, and open QtCreator, try to compile one of the Qt3D or webengine examples (also when creating new project from File -> new file or project -> Qt Widgets Application), error output:
      Linux (below is release build, but same happens with debug):
      /home/joaijala/tmp/qt5/5.6/gcc_64/bin/moc -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/home/joaijala/tmp/qt5/5.6/gcc_64/mkspecs/linux-g++ -I/home/joaijala/work/testing/widget_example -I/home/joaijala/tmp/qt5/5.6/gcc_64/include -I/home/joaijala/tmp/qt5/5.6/gcc_64/include/QtWidgets -I/home/joaijala/tmp/qt5/5.6/gcc_64/include/QtGui -I/home/joaijala/tmp/qt5/5.6/gcc_64/include/QtCore -I. ../widget_example/mainwindow.h -o moc_mainwindow.cpp
      g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../widget_example -I. -I../../../tmp/qt5/5.6/gcc_64/include -I../../../tmp/qt5/5.6/gcc_64/include/QtWidgets -I../../../tmp/qt5/5.6/gcc_64/include/QtGui -I../../../tmp/qt5/5.6/gcc_64/include/QtCore -I. -I. -I../../../tmp/qt5/5.6/gcc_64/mkspecs/linux-g++ -o moc_mainwindow.o moc_mainwindow.cpp
      g++ -Wl,-O1 -Wl,-rpath,/home/joaijala/tmp/qt5/5.6/gcc_64/lib -o widget_example main.o mainwindow.o moc_mainwindow.o -L/home/joaijala/tmp/qt5/5.6/gcc_64/lib -lQt5Widgets -L/usr/lib64 -lQt5Gui -lQt5Core -lGL -lpthread
      /usr/bin/ld: cannot find -lGL
      collect2: error: ld returned 1 exit status
      make: *** [widget_example] Error 1
      09:49:21: The process "/usr/bin/make" exited with code 2.
      Error while building/deploying project widget_example (kit: Desktop Qt 5.6.0 GCC 64bit)

      Works correctly on Windows or Mac.

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              releaseteam Qt Release Team
              Reporter:
              joaijala Johanna Äijälä
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes