Qt6 topics merged with General

Qt 5.1.0 --- "cannot find -lGL"

  • Have move from 4.8.x to 5.1.0 and now have the following issue on comile of my application: (Ubuntu 12.04)

    Installs/Qt5//5.1.0/gcc/lib -lQt5Widgets -lQt5SerialPort -lQt5Sql -lQt5Network -lQt5Gui -lQt5Core -lGL -lpthread
    /usr/bin/ld: cannot find -lGL
    collect2: ld returned 1 exit status
    make: *** [cataps] Error 1
    09:13:09: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project catap (kit: Desktop Qt 5.1.0 GCC 32bit)
    When executing step 'Make'
    09:13:09: Elapsed time: 00:36.

    Any ideas?

  • install libgl-mesa-dev and it's solved.

  • Awesome thanks = installed libgl1-mesa-dev

Log in to reply