1
我想安裝libQGLViewer,我從Ubuntu 10.04上的http://www.libqglviewer.com/download.html下載。根據手冊我必須做的;使qglviewer給QT相關錯誤
1)CD QGLViewer/
2)qmake的
3)使
通過鍵入使然而誤差幾乎立即結束編譯庫;
`c++ -c -pipe -Wall -W -Os -fPIC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/macx-g++ -I. -I/usr/include/qt3 -I/System/Library/Frameworks/OpenGL.framework/Headers -I/System/Library/Frameworks/AGL.framework/Headers/ -I.moc/ -o .obj/qglviewer.o qglviewer.cpp
In file included from domUtils.h:23,
from qglviewer.cpp:23:
config.h:77:22: error: QGLWidget: No such file or directory
config.h:88:17: error: QList: No such file or directory
config.h:89:19: error: QVector: No such file or directory
In file included from qglviewer.cpp:23:
domUtils.h:25:23: error: QDomElement: No such file or directory
domUtils.h:26:19: error: QString: No such file or directory
domUtils.h:27:23: error: QStringList: No such file or directory
domUtils.h:28:18: error: QColor: No such file or directory
`
這樣下去了一會兒,結束:
`qglviewer.cpp:841: error: ‘height’ was not declared in this scope
qglviewer.cpp: At global scope:
qglviewer.cpp:864: error: variable or field ‘timerEvent’ declared void
qglviewer.cpp:864: error: ‘QTimerEvent’ was not declared in this scope
qglviewer.cpp:864: error: expected primary-expression before ‘)’ token
make: *** [.obj/qglviewer.o] Error 1
[email protected]:~/Downloads/libQGLViewer-2.5.1/QGLViewer$
`
我想這是因爲它無法找到Qt庫。但是我已經使用最新的http://qt-project.org/downloads下載安裝了QT 5.2。
難道是Makefile只能找到庫路徑嗎?如果是這樣,我該如何補救?