在VMware中安裝debian並安裝運行OpenGL應用程序所需的全部庫文件後,我使用glxgears
以確保一切正常。OpenGL:在VMware(debian x64)中,glxgears可以工作 - 但不是其他OpenGL程序
# glxgears
3426 frames in 5.0 seconds = 685.171 FPS
3562 frames in 5.0 seconds = 712.339 FPS
...
XI0: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
after 33172 requests (33170 known processed) with 0 events remaining.
glxgears
似乎運行良好。即使在單擊glxgears窗口框上的「關閉」後出現上述錯誤,它也會顯示在窗口中旋轉的齒輪。
但是,當我嘗試使用freeglut3執行一個簡單的OpenGL程序,我得到以下結果:
# ./program
X Error of failed request: BadRequest (invalid request code or no such operation)
Major opcode of failed request: 155 (GLX)
Minor opcode of failed request: 34()
Serial number of failed request: 36
Current serial number in output stream: 35
該作品使用非虛擬機上的所有相同的文件和庫的程序,不可用爲我在家。
我該如何解決這個問題?這是在虛擬機上運行OpenGL程序的常見問題嗎?