Error: cannot find -lGL



  • Hi, anyone know this error "cannot find -lGL"?
    I'm using ubuntu

    Thanks


  • Moderators

    You need to install libgl1-mesa-dev package



  • @LIS-KZP Before you've installed the libgl1-mesa-dev?



  • sudo apt-get install libqt5-opengl-dev


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    @LIS-KZP please search the forum before asking a question. That one has been asked and answered many times already even yesterday.

    @johngod That will also install the Qt 5 dev packages from Ubuntu, which is not necessarily what the OP wants.



  • @Sgaist I did attempt a search but found nothing. What I want is qt-creator installed and working on my Ubuntu 14.04 machine using XFCE4. and I don't know enough about Qt to have any preferences.

    @jsulim I did the usual apt-get update and then

    sudo apt-get install libgl1-mesa-dev

    It appeared to be working and then a license notification appeared but there was no way to accept it so after several minutes I closed the terminal emulator.

    I get the same error when I attempt to compile. Do I need to delete my previous qt installation and reinstall? Should I use the Ubuntu version?



  • BTW I initialed my screen name after my first post ...


  • Qt Champions 2016

    @shellback3
    at work i'm also on 14.04 (mint) with xfce.
    besides sudo apt-get install libgl1-mesa-dev
    I just downloaded the linux open source installer and
    chmod +x it and ran it.
    I get no license notification so I wonder what you have installed?



  • When I run 'sudo apt-get install libgl1-mesa-dev' it starts to run and then the terminal window is filled by a window titled "Configuring ttf-mscorefonts-installer" with some text: "TrueType core fonts for the Web EULA". There is no place to input acceptance or reject the EULA and I suspect closing the window kills the installation. I think I need to reboot for that process to quit.



  • @mrjj I was able to kill the process. I'll attempt to install Qt again...


  • Moderators

    @shellback3 said:

    When I run 'sudo apt-get install libgl1-mesa-dev' it starts to run and then the terminal window is filled by a window titled "Configuring ttf-mscorefonts-installer" with some text: "TrueType core fonts for the Web EULA". There is no place to input acceptance or reject the EULA and I suspect closing the window kills the installation. I think I need to reboot for that process to quit.

    I've read that you can accept the license by pressing [space].

    If that doesn't work, try installing the libgl1-mesa-dev package using other means. Do you have a package manager installed?

    This is not related to Qt, by the way -- it's just that the Mesa libraries depend on non-free licenses.


  • Moderators

    I don't think libgl1-mesa-dev depends on ttf-mscorefonts-installer.
    I guess ttf-mscorefonts-installer was selected for installation before.
    And it is for sure possible to accept the license, I already installed this package several times, just check carefully what is printed there.



  • @JKSH
    @jsulm

    Thanks (to everyone), I DO have synaptic installed (I had forgotten), so I picked the Trusty box and it installed. This time the EULA displayed correctly with an 'Agree' check box and button to continue (I had tried the space bar before but it didn't do anything). The 'stub' application compiled without incident so I guess my path to Qt is cleared ...



  • [SOLVED]
    WIll this mark my post as solved? I can't edit the title.


  • Qt Champions 2016

    @shellback3
    Use the Topic Tools button to mark as Solved.
    its sort of under topic to the right


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.