Qt編譯錯誤“GL/gl.h:No such file or directory”的解決方法
備註:
1)操作系統:Ubuntu-14.04或12.04
2)Linux用戶:root
3)Qt版本:qt-linux-opensource-5.2.0-x86
為了迎接Qt的新紀元(從諾基亞移居到芬蘭公司Digia家中),我決定將Qt開發環境升級到當前的最新版5.2,在安裝好開發環境後,編譯第一個工程的時候出現了如下錯誤:“GL/gl.h:No
such file or
directory”,這是由於系統中沒有安裝OpenGL庫導致的,於是在控制臺中輸入以下命令安裝OpenGL庫及其工具:apt-get
install libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev 即可。
Qt編譯錯誤“GL/gl.h:No such file or directory”的解決方法
相關推薦
Ubuntu下 fatal error: Python.h: No such file or directory 解決方法
error ID apt overflow AC python3 TE cto fat 參考: fatal error: Python.h: No such file or directory Ubuntu下 fatal error: Python.h: No such f
Redis安裝報錯error:jemalloc/jemalloc.h:No such file or directory解決方法
安裝Redis 在安裝Redis之前,需要安裝Redis的依賴程式tcl,如果不安裝tcl在Redis執行make test的時候就會報錯的哦。 $ yum install -y tcl $ tar xvf 3.2.0.tar.gz -C /usr/loc
配置caffe的python環境時make pycaffe提示fatal error: numpy/arrayobject.h No such file or directory解決方法
重灌numpy: sudo pip uninstall numpy sudo pip install numpy 是沒有用的。。。 解決的辦法就是: sudo apt-get install python-numpy (adsbygoogle = window.adsbygoogl
Qt之opengl:錯誤: 無法開啟包括檔案:“gl/glut.h”: No such file or directory
我使用的是vs2008,相信vs2005應該跟這個步驟差不多,執行的時候總是提示:fatal error C1083: 無法開啟包括檔案:“GL/glut.h”: No such file or directory這個時候就要進行相應的如下操作:下載GLUT工具包,然後如下:
caffe編譯:fatal error: pyconfig.h: No such file or directory #include "pyconfig.h“編譯protobuf
sudo make clean sudo make all -j8 報錯 CXX tools/caffe.cpp In file included from /usr/include/boost/python/detail/prefix.hpp:13:0,
psutil安裝錯誤"Python.h: No such file or directory"解決
下載psutil原始碼包:wget https://pypi.python.org/packages/source/p/psutil/psutil-2.0.0.tar.gz 然後解壓安裝:sudo python setup.py install,出現如下錯誤: 需要安裝依
fatal error: Python.h: No such file or directory 解決
parrot python error pycrypto python.h [常見錯誤] fatal error: Python.h: No such file or directory環境場景系統: Parrot Linux軟件: 系統python默認版本2.7 PyCharm默認版本P
numa.h:No such file or directory 解決方法
解決 clas issues -o log 方法 -s body num 參考: numa.h:No such file or directory numa.h:No such file or directory 解決方法 Ubuntu: $ apt-get install
mingw下用gcc編譯c檔案出現no such file or directory解決方法
c檔案直接拖進cmd時地址是對的,但gcc不認空格,所以要把路徑當做所有空格都去掉或改成“—”,這樣它就能直接發現檔案了,這時在cmd中編寫:gcc F:\new.c -o F:\new.exe ,就會出現new.e
錯誤:QMainWindow: No such file or directory 解決方法
C++ GUI Qt4程式設計第二版的原始碼,在Qt5下編譯,出現如下錯誤: "#include <QtWidgets> No such file or directory", 解決
fatal error: alsa/asoundlib.h: No such file or directory 解決辦法
最近在ROS裡編譯呼叫了科大訊飛SDK的語音包,編譯時報了錯誤 fatal error: alsa/asoundlib.h: No such file or directory, 找不到asoundlib.h檔案,解決辦法如下,直接apt安裝那個庫就行了 sudo a
fatal error:xxx.h no such file or directory 解決方案
編譯程式的時候遇到了找不到依賴包的問題,找了很多解決方案都沒有解決,最後摸索了很久才解決,把過程記錄下來方便以後用。 碰到這種問題,首先是要找有沒有可安裝的依賴包,命令為: apt-cache search xxx | grep dev 用dev過濾是因為有時候相關的安裝包
ltdl.h: No such file or directory解決辦法
簡介 系統沒有安裝libltdl開發庫 解決方法 如果在ubunt作業系統中,只需安裝: apt install libltdl3-dev 如果在centos作業系統中,只需安裝: yum
[Android] 單獨編譯生成boot.img時mkbootfs: No such file or directory解決方法
在一臺沒有安裝Android原始碼編譯環境的64位 Ubuntu14.04.5虛擬機器上嘗試單獨編譯Android用的Linux Kernel。並從編譯好Android原始碼的機器上將out資料夾下的mkbootfs、minigzip、mkbootimg二進位制
Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] No such file or directory解決方法
mouse 正是 from key int stripe 進程 成功 stack 今天用pdo連接mysql遇到一個奇怪的問題,host設為127.0.0.1可以連接成功,設為localhost就會報如下的錯誤: PHP Fatal error: Uncaught ex
nginx 啟動報錯“var/run/nginx/nginx.pid" no such file or directory解決方法
今天剛搭建的nginx伺服器啟動時,報錯“var/run/nginx/nginx.pid" no such file or directory,按照他的意思我在var/run/新建了一個資料夾nginx,重新啟動,啟動成功。 但是當我虛擬機
Debian下Cannot set LC_CTYPE to default locale: No such file or directory解決方法
把語言環境變數改為英文 將Ubuntu系統語言環境改為英文的en_US.UTF-8 檢視當前系統語言環境 locale 編輯配置檔案。將zh_US.UTF-8改為en_US.UTF-8。zh改為en sudo nano /etc/default/locale
bash: ./arm-none-linux-gnueabi-gcc: No such file or directory解決方法
2016年08月30日 14:56:14 simonli1121 閱讀數:3727更多 個人分類: linux 轉自:http://blog.csdn.net/mr_define/article/details/51059329 http:
nginx 啟動報錯“var/run/nginx/nginx.pid" no such file or directory解決方法
今天剛搭建的nginx伺服器啟動時,報錯“var/run/nginx/nginx.pid" no such file or directory,按照他的意思我在var/run/新建了一個資料夾nginx,重新啟動,啟動成功。 但是當我虛擬機器重啟後依然報錯“
No such file or directory: 解決方法
剛剛編譯時突然報紅No such file or directory: '/Users...,在專案裡搜對應檔案發現它就靜靜的在那,沒有任何異常,解決方法:刪掉TARGETS - Build Phases - Compile Sources 裡白框的檔案