Seite 1 von 1

Qt/3D einbinden

Verfasst: 12. Juni 2010 13:17
von mister11
Hi, ich benötige einen Modelviewer um eine .3ds in OpneGL zu laden.
Diesen habe ich im Qt/3D Framework gefunden:

http://qt.gitorious.org/qt-labs/qt3d/co ... odelviewer

Leider steht in der Readme folgendes:
This directory contains a prototype 3D API and examples for Qt 4.6 or later.

Run qmake and then make to build it against your favourite version of Qt.
You will need to have built Qt with the "-opengl" option. Run "make install"
afterwards to install the plugins into your Qt build.

Note: a build tree for Qt is required, not the SDK version of Qt.
The SDK version of Qt lacks the private headers that are needed to
build some parts of Qt/3D.

Directory structure:

threed/
This is the main library of the Qt/3D project, containing abstractions
for cross-platform GL, shaders, lighting models, and so on.
util/
Contains the "meshcvt" utility, for converting raw bezier and triangle
meshes into a form that can be loaded as static const data.
plugins/
Scene format loading plugins.
examples/
Some examples of using the Qt/3D library.
demos/
More complex demos of Qt/3D, including QML/3D for integrating
Qt/3D with the Declarative UI component of Kinetic.
tests/
Unit tests for the Math3D and Qt/3D libraries.
doc/
Documentation.

The documentation can be generated with "make docs". It will be placed
into "doc/html" in the build directory.
Ich ahbe aber das Qt SDK.Könnte mir bitte jemand ne Schritt für Schritt Anleitung geben wie ich es trotzdem einbinden kann?Es ist wirklich dringend.Danke.

Verfasst: 12. Juni 2010 16:44
von androphinx
Wenn ich das richtig verstehe, musst du dir die qt-sourcen hernehmen, diesen 3D-Code einfügen und qt dann kompilieren.

1. Qt-Sourcen downloaden
2. Entpacken
3. Qt/3D einfügen
4. Console -> qmake

Mfg androphinx

Verfasst: 14. Juni 2010 23:27
von mister11
Ich habe es jetzt wie auf diese Seite gemacht.
http://doc.qt.nokia.com/qt3d-snapshot/q ... lding.html
Leider ohne erfolg.

Ich bekomme folgende Medlung beim erstellen von Qt3D:

mingw32-make[1]: Leaving directory `E:/Diplomarbeit/QtSource/Qt3D/demos'
./tmp\obj\debug_shared\shaderwizardglwidget.o:E:\Diplomarbeit\QtSource\Qt3D\demos\shaderwizard/../../../demos/shaderwizard/shaderwizardglwidget.cpp:310: undefined reference to `_imp___ZlsR14QGLDisplayListRK12QGLHeightMap'
./tmp\obj\debug_shared\shaderwizardglwidget.o:E:\Diplomarbeit\QtSource\Qt3D\demos\shaderwizard/../../../demos/shaderwizard/shaderwizardglwidget.cpp:351: undefined reference to `_imp___ZlsR14QGLDisplayListRK12QGLHeightMap'
collect2: ld returned 1 exit status
mingw32-make[3]: *** [debug\shaderwizard.exe] Error 1
mingw32-make[2]: *** [debug-all] Error 2
mingw32-make[1]: *** [sub-shaderwizard-make_default] Error 2
mingw32-make: Leaving directory `E:/Diplomarbeit/QtSource/Qt3D'
mingw32-make: *** [sub-demos-make_default-ordered] Error 2
Beendet mit Rückgabewert 2.
Fehler beim Erstellen des Projekts opengl
Beim Ausführen des Build-Schritts 'Make'


Jemand eine Idee oder es selbst mal probiert?