Summary of usr/bin/ld: cannot find-LXXX (QT compilation error cannot find-lgl)

Source: Internet
Author: User

Decide to end this problem! (It is too difficult to find a complete answer on the Internet)

Http://blog.sciencenet.cn/blog-676535-541444.html

Two days ago, the virtual machine was crashed, so I had to reinstall the Virtual Machine and perform the previous work again. After QT-creator is installed, the Compilation Program encounters the following error:

Cannot find-lgl

Baidu finds the solution as follows:

Sudo apt-Get install libqt4-dev or sudo apt-Get install libgl1-mesa-dev or sudo apt-Get libglu1-mesa-dev

I tried the above method one by one.

Let's talk about the first apt-Get install libqt4-dev. below is my error message.

 

Execute the second sudo apt-Get install libgl1-mesa-dev, but the installation can start, but there is a system error at the end of the installation. Many of the built-in software did not see it, and run QT-creator to flash back directly. There is no solution for online search, so you have to reinstall it.

The same is true for executing the third sudo apt-Get libglu1-mesa-dev.

 

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.