Tuesday, May 3, 2016

'Cannot find -lGL' error while building the Qt widget application in Linux OS?


Hi all,

Did any one get "Cannot find -lGL" error while building the Qt widget application in Ubuntu operating system? Qt installer provides compiler, debugger, make and other tools for the development. But when you want to develop Qt graphical based application it requires Open GL libraries.

Most of the Linux OS will not provide Open GL libraries as default. To continue building Qt graphical applications just install this libraries.

For Ubuntu use the following command

$sudo apt-get install build-essential libgl1-mesa-dev

For Fedora/ RHEL

$sudo yum groupinstall "C Development Tools and Libraries"

$sudo yum install mesa-libGL-devel

1 comment:

  1. Lucky Club Review 2021 | Lucky Club Casino Site
    Lucky Club is an online casino. Get a free spins bonus worth up to 1600 EUR when 카지노사이트luckclub you sign up for an account in the site's dedicated Lucky Club page. Rating: 4.5 · ‎Review by LuckyClub.live

    ReplyDelete