本文介紹了Qt:找不到 -lGL 錯誤的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
我剛剛重新安裝了 QtCreator,創(chuàng)建了新項目(Qt Application)并在編譯后得到了這個:
I just reinstalled QtCreator, created new project (Qt Application) an got this after compilation:
/usr/bin/ld: **cannot find -lGL**
collect2: error: ld returned 1 exit status
make: *** [untitled1] Error 1
18:07:41: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project untitled1 (kit: Desktop Qt 5.1.0 GCC 32bit)
When executing step 'Make'
(項目是空的,我沒有提交任何更改)
Qt Creator 2.7.2
基于 Qt 5.1.0(32 位)
Ubuntu 13.04
Qt Creator 2.7.2
Based on Qt 5.1.0 (32 bit)
Ubuntu 13.04
我該如何解決這個問題?
How do I solve this problem?
推薦答案
您應(yīng)該安裝包libgl1-mesa-dev":
You should install package "libgl1-mesa-dev":
sudo apt install libgl1-mesa-dev
這篇關(guān)于Qt:找不到 -lGL 錯誤的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!