QT5.3.2編譯程序出錯: GL/gl.h: No such file or directory

用QT5.3.2編譯程序報錯:

 fatal error: GL/gl.h: No such file or directory

原因:

You are missing the OpenGL include files. Install the mesa-common-dev package.

解決方法:

sudo apt-get install mesa-common-dev
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev
發佈了55 篇原創文章 · 獲贊 22 · 訪問量 24萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章