2012-02-14 14 views
2

Mac OS X 10.7.2でQT C++ OpenGLベースのコードをコンパイルしようとしましたが、qglviewer.hファイルが見つかりませんでした。Qt C++:Mac OS X 10.7.2でqglviewerがコンパイルされない

これは、コードをコンパイルするときに表示されるエラーです。

In file included from src/GLViewer.cc:12: src/GLViewer.h:22:23: error: 
qglviewer.h: No such file or directory In file included from 
src/GLViewer.cc:12: src/GLViewer.h:27: error: expected class-name 
before ‘{’ token src/GLViewer.cc: In constructor 
‘GLViewer::GLViewer(QWidget*)’: src/GLViewer.cc:28: error: class 
‘GLViewer’ does not have any field named ‘QGLViewer’ 
src/GLViewer.cc:36: error: ‘camera’ was not declared in this scope 
src/GLViewer.cc: In member function ‘void GLViewer::resetView()’: 
src/GLViewer.cc:48: error: ‘setSceneRadius’ was not declared in this 
scope src/GLViewer.cc:49: error: ‘qglviewer’ has not been declared 
src/GLViewer.cc:49: error: ‘setSceneCenter’ was not declared in this 
scope src/GLViewer.cc:50: error: ‘camera’ was not declared in this 
scope src/GLViewer.cc:55: error: ‘showEntireScene’ was not declared in 
this scope src/GLViewer.cc: In member function ‘void 
GLViewer::setScene(Scene*)’: src/GLViewer.cc:70: error: 
‘initFromDOMElement’ was not declared in this scope src/GLViewer.cc: 
In member function ‘virtual void GLViewer::resizeGL(int, int)’: 
src/GLViewer.cc:89: error: ‘QGLViewer’ has not been declared 
src/GLViewer.cc: In member function ‘virtual void GLViewer::draw()’: 
src/GLViewer.cc:128: error: ‘camera’ was not declared in this scope 
src/GLViewer.cc:134: error: ‘qglviewer’ has not been declared 
src/GLViewer.cc:134: error: expected `;' before ‘cameraPos’ 
src/GLViewer.cc:135: error: ‘cameraPos’ was not declared in this scope 
make[2]: \*\*\* [release/GLViewer.o] Error 1 make[1]: \*\*\* [release] Error 
2 make: \*\* [sub-qviewer-make_default-ordered] Error 2 
+0

qGLViewerはサードパーティのライブラリであると思われ、Qt http://www.libqglviewer.com/には含まれていません。あなたはそれがインストールされていますか? –

+0

ソースファイルを直接ダウンロードしてlibQGLViewerをインストールしようとしました。私はこれらのintsructions続く: [リンク](http://www.libqglviewer.com/installUnix.html) を私は 'それをmake'しようとしたとき、それは私にこれらのエラーを与えた: 'ファイルでsaveSnapshot.cpp:27: ui_VRenderInterface.Qt4.h:13:42:エラー:Qt3Support/Q3MimeSourceFactory:そのようなファイルまたはディレクトリがありません。 make [1]:*** [.obj/saveSnapshot.o]エラー1 make:*** [sub-QGLViewer-make_default-ordered] Error 2' – sinner

+0

libqglviewerは本当に古いですが、qt3に基づいています。それを使用する必要がある理由はありますか? QtのQGLWidgetを使ってみましたか? –

答えて

2

アトラス私はQGLViewer開発者に連絡し、この問題を修正しました。インストールについては、このリンク上の指示に従ってください:http://www.libqglviewer.com/compilation.html#pro

http://www.libqglviewer.com/index.html

[上記ページlibQGLViewer2.3.14バージョンリリースに従ってください]と、独自のQGLViewerプロジェクトをコンパイルするために、このリンクをクリックしてください Makefileを生成するために独自の .pro fileを作成する方法について説明します。

関連する問題