Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved Qt 5.7 -lGL not found

    Installation and Deployment
    5
    12
    2912
    Loading More Posts
    • 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.
    • B
      BenoitH last edited by

      Hi !

      I wanted to migrate my software from Qt 4.8 to 5.7, but I'm stopped by a message "-IGL not found" at the link stage.

      I'm working on linux.

      I don't understand which library is missing since under Qt 4.8 I don't have any error !

      Thanks 4 your help,

      BenoitH

      1 Reply Last reply Reply Quote 0
      • M
        muratkarakus7 last edited by

        It should be OpenGL library.

        1 Reply Last reply Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          Hi and welcome to devnet,

          Please search the forum a bit, this question has been asked many times already: you are missing the OpenGL development package on your system.

          Then name of the package depends on your distribution.

          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 Reply Quote 0
          • C
            chrysl666 last edited by chrysl666

            I have the same problem .
            using Centos 7.2.1511 Core(x86-64) Cinnamon 2.8.8 (GCC) 4.8.5 20150623
            after have installed all components my Qt creator is still sending error messages about libGL . which libGL should I use ?

            /usr/bin/ld: skipping incompatible /usr/lib64/libGL.so when searching for -lGL
            /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libGL.so when searching for -lGL
            /usr/bin/ld: skipping incompatible /lib/../lib64/libGL.so when searching for -lGL
            /usr/bin/ld: skipping incompatible /usr/lib/../lib64/libGL.so when searching for -lGL
            /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../libGL.so when searching for -lGL
            /usr/bin/ld: skipping incompatible /lib64/libGL.so when searching for -lGL
            /usr/bin/ld: skipping incompatible /usr/lib64/libGL.so when searching for -lGL
            /usr/bin/ld: skipping incompatible /usr/lib64/libGL.so when searching for -lGL
            /usr/bin/ld: skipping incompatible /lib/libGL.so when searching for -lGL
            /usr/bin/ld: skipping incompatible /usr/lib/libGL.so when searching for -lGL

            1 Reply Last reply Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by SGaist

              Hi,

              Did you install a 32 bit Qt in your system ?

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

              C 1 Reply Last reply Reply Quote 0
              • C
                chrysl666 @SGaist last edited by

                @SGaist

                my version is qt-opensource-linux-x64-5.7.0

                1 Reply Last reply Reply Quote 0
                • SGaist
                  SGaist Lifetime Qt Champion last edited by

                  Can you show the linker line before it starts outputting this error ?

                  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 Reply Quote 0
                  • C
                    chrysl666 last edited by

                    18:18:02: Running steps for project MyPrj...
                    18:18:02: Starting: "/home/chrystielira/Qt5.7.0x/5.7/gcc_64/bin/qmake" /home/chrystielira/Desktop/CPP_projects/MyPrj/MyPrj.pro -r -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug
                    Info: creating stash file /home/chrystielira/Desktop/CPP_projects/build-MyPrj-Desktop_Qt_5_7_0_GCC_64bit-Debug/.qmake.stash
                    18:18:02: The process "/home/chrystielira/Qt5.7.0x/5.7/gcc_64/bin/qmake" exited normally.
                    18:18:02: Starting: "/usr/bin/make"
                    /home/chrystielira/Qt5.7.0x/5.7/gcc_64/bin/uic ../MyPrj/mainwindow.ui -o ui_mainwindow.h
                    g++ -c -pipe -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../MyPrj -I. -I../../../Qt5.7.0x/5.7/gcc_64/include -I../../../Qt5.7.0x/5.7/gcc_64/include/QtWidgets -I../../../Qt5.7.0x/5.7/gcc_64/include/QtGui -I../../../Qt5.7.0x/5.7/gcc_64/include/QtCore -I. -I. -I../../../Qt5.7.0x/5.7/gcc_64/mkspecs/linux-g++ -o main.o ../MyPrj/main.cpp
                    g++ -c -pipe -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../MyPrj -I. -I../../../Qt5.7.0x/5.7/gcc_64/include -I../../../Qt5.7.0x/5.7/gcc_64/include/QtWidgets -I../../../Qt5.7.0x/5.7/gcc_64/include/QtGui -I../../../Qt5.7.0x/5.7/gcc_64/include/QtCore -I. -I. -I../../../Qt5.7.0x/5.7/gcc_64/mkspecs/linux-g++ -o mainwindow.o ../MyPrj/mainwindow.cpp
                    /home/chrystielira/Qt5.7.0x/5.7/gcc_64/bin/moc -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/home/chrystielira/Qt5.7.0x/5.7/gcc_64/mkspecs/linux-g++ -I/home/chrystielira/Desktop/CPP_projects/MyPrj -I/home/chrystielira/Qt5.7.0x/5.7/gcc_64/include -I/home/chrystielira/Qt5.7.0x/5.7/gcc_64/include/QtWidgets -I/home/chrystielira/Qt5.7.0x/5.7/gcc_64/include/QtGui -I/home/chrystielira/Qt5.7.0x/5.7/gcc_64/include/QtCore -I. -I/usr/include/c++/4.8.5 -I/usr/include/c++/4.8.5/x86_64-redhat-linux -I/usr/include/c++/4.8.5/backward -I/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include -I/usr/local/include -I/usr/include ../MyPrj/mainwindow.h -o moc_mainwindow.cpp
                    g++ -c -pipe -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../MyPrj -I. -I../../../Qt5.7.0x/5.7/gcc_64/include -I../../../Qt5.7.0x/5.7/gcc_64/include/QtWidgets -I../../../Qt5.7.0x/5.7/gcc_64/include/QtGui -I../../../Qt5.7.0x/5.7/gcc_64/include/QtCore -I. -I. -I../../../Qt5.7.0x/5.7/gcc_64/mkspecs/linux-g++ -o moc_mainwindow.o moc_mainwindow.cpp
                    g++ -Wl,-rpath,/home/chrystielira/Qt5.7.0x/5.7/gcc_64/lib -o MyPrj main.o mainwindow.o moc_mainwindow.o -L/home/chrystielira/Qt5.7.0x/5.7/gcc_64/lib -lQt5Widgets -L/usr/lib64 -lQt5Gui -lQt5Core -lGL -lpthread
                    /usr/bin/ld: skipping incompatible /usr/lib64/libGL.so when searching for -lGL
                    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libGL.so when searching for -lGL
                    /usr/bin/ld: skipping incompatible /lib/../lib64/libGL.so when searching for -lGL
                    /usr/bin/ld: skipping incompatible /usr/lib/../lib64/libGL.so when searching for -lGL
                    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../libGL.so when searching for -lGL
                    /usr/bin/ld: skipping incompatible /lib64/libGL.so when searching for -lGL
                    /usr/bin/ld: skipping incompatible /usr/lib64/libGL.so when searching for -lGL
                    /usr/bin/ld: skipping incompatible /usr/lib64/libGL.so when searching for -lGL
                    /usr/bin/ld: skipping incompatible /lib/libGL.so when searching for -lGL
                    /usr/bin/ld: skipping incompatible /usr/lib/libGL.so when searching for -lGL
                    /usr/bin/ld: cannot find -lGL
                    collect2: error: ld returned 1 exit status
                    make: *** [MyPrj] Error 1
                    18:18:05: The process "/usr/bin/make" exited with code 2.
                    Error while building/deploying project MyPrj (kit: Desktop Qt 5.7.0 GCC 64bit)
                    When executing step "Make"
                    18:18:05: Elapsed time: 00:03.

                    1 Reply Last reply Reply Quote 0
                    • SGaist
                      SGaist Lifetime Qt Champion last edited by

                      Maybe a silly question but did you install the OpenGL dev package for your OS ?

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

                      C 1 Reply Last reply Reply Quote 0
                      • C
                        chrysl666 @SGaist last edited by

                        @SGaist yes . unfortunately many times . but it doesn't works , and i don't have any clue of what is wrong in my system :( !!

                        1 Reply Last reply Reply Quote 0
                        • SGaist
                          SGaist Lifetime Qt Champion last edited by

                          Strange, then one silly idea, install the Qt development environment from your distribution. That might trigger some additional packages installation that might help.

                          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 Reply Quote 0
                          • A
                            ascnp last edited by

                            It seems you did not install libgl or installed but the link was broken.
                            search libgl.so in your pi3 sysroot.

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post