今天在Centos下用OSG加載影像和三維場景,一直沒有紋理,在QT上通過後臺查看發現一個警告“detected Opengl error:'invalid enumerant' at after randerer::compile”,發現是OpenGL的問題,然後在Centos對相關OpenGL庫進行安裝和更新。其實在Linux下只要安裝了Mesa和freeglut就可以了。
yum install freeglut
yum install mesa*
進行安裝就可以了,安裝好後,可以通過yum list Mesa*進行查看和Mesa相關的Lib和開發包。