CentOS Solution for QT compilation problems (Error:cannot FIND-LGL)

Source: Internet
Author: User
Tags centos

1, install QT, enter the terminal of the CentOS system, execute the following order sequentially
chmod +x Qt-opensource-linux-x64-5.5.1.run
./qt-opensource-linux-x64-5.5.1.run


2, the author CentOS 7 64, Installation complete Qt5.5.1. Create a new QT Widgets application at random.

The result is a QT compilation problem with the following message:

Error:cannot FIND-LGL

Error:collect2:error:ld returned 1 exit status

The reason is that the system lacks the corresponding OpenGL library files caused by the solution as follows:

On the premise of networking, enter the terminal of the CentOS system, and then execute the following command, you can solve. Note that when you are prompted to this ok[y/d/n]: enter "Y".

Su Root

Yum Install Mesa-libgl-devel Mesa-libglu-devel

Yum Install Freeglut-devel

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.