1. 程式人生 > >Ubuntu16.04 QT5編譯出現cannot find -lGL和collect2:error:ld r

Ubuntu16.04 QT5編譯出現cannot find -lGL和collect2:error:ld r

鍵盤輸入 gre ase 系統 erro ace replace inux collect

在ubuntu下使用Qt 編譯時候遇上了cannot find -lGL錯誤,使用命令
是由於系統缺少鏈接庫,在終端執行下面命令就可以解決問題。

sudo apt-get install libqt4-dev或者sudo apt-get install libgl1-mesa-dev或者libgl1-mesa-dev或者libglu1-mesa-dev

可以解決問題


之前可以先apt-get install update一下



我遇到的Linux的錯誤集合:

1:ps -aux | grep corseGui 查找corseGui的進程


kill -s 9 5283 殺死corseGui的進程


2:鍵盤輸入法不支持中文 顯示為??,需要從word裏面復制粘貼


3.數組批量賦值 必須在定義的時候才可以。

Ubuntu16.04 QT5編譯出現cannot find -lGL和collect2:error:ld r