Building Object Viewet Qt with STLport on Windows

What you need

The path is hard-coded in the lib, so you must extract Qt STLport lib in c:\
The Qt root folder will be c:\Qt\4.7.4

You can build you own Qt STLport lib if you prefer: Build Qt with STLport on Windows

Qt settings

Edit the system variable PATH and add :

c:\Qt\4.7.4\bin

Create a systeme variable QTLIB with the following value :

c:\Qt\4.7.4\lib

Generate Visual C++ solution with CMake

Click on "Configure".
Choose "Visual Studio 9 2008" and "Use default native compilers".
Click on "Finish".

Select the following options:

  • WITH_NEL_TOOLS
  • WITH_QT
  • WITH_RYZOM_TOOLS

Click on "Configure" again to finalize the configuration.

Click on "Generate" to generate the Visual C++ solution.

Build Object Viewer QT

Select the following projects:

  • NeL, Driver, Sound: DirectSound
  • NeL, Driver, Sound: FMOD
  • NeL, Driver, Sound: OpenAL
  • NeL, Driver, Sound: XAudio2
  • NeL, Driver, Video: Direct3D
  • NeL, Driver, Video: OpenGL
  • NeL, Tools, 3D: Object Viewer Qt
  • NeL, Tools, 3D: Object Viewer Qt Plugin: Core
  • NeL, Tools, 3D: Object Viewer Qt Plugin: Display sheet id
  • NeL, Tools, 3D: Object Viewer Qt Plugin: Georges Editor
  • NeL, Tools, 3D: Object Viewer Qt Plugin: Landscape Editor
  • NeL, Tools, 3D: Object Viewer Qt Plugin: Log
  • NeL, Tools, 3D: Object Viewer Qt Plugin: Object Viewer
  • NeL, Tools, 3D: Object Viewer Qt Plugin: Sheet builder
  • NeL, Tools, 3D: Object Viewer Qt Plugin: Translation Manager
  • NeL, Tools, 3D: Object Viewer Qt Plugin: Mission Compiler

Choose Release mode, right click on the selection and generate.

Run Object Viewer Qt

Create a folder for Object Viewer Qt.
For example:

c:\Object Viewer Qt

Copy the following files from build\bin\Release into c:\Object Viewer Qt :

  • object_viewer_qt.exe
  • nel_drv_direct3d_win_r.dll
  • nel_drv_dsound_win_r.dll
  • nel_drv_fmod_win_r.dll
  • nel_drv_openal_win_r.dll
  • nel_drv_opengl_win_r.dll
  • nel_drv_xaudio2_win_r.dll

Copy everything from code\nel\tools\3d\object_viewer_qt\data into c:\Object Viewer Qt .

Create a subfolder named "plugins":

c:\Object Viewer Qt\plugins

Copy the following files from build\bin\Release into c:\Object Viewer Qt\plugins :

  • ovqt_plugin_core_r.dll
  • ovqt_plugin_disp_sheet_id_r.dll
  • ovqt_plugin_georges_editor_r.dll
  • ovqt_plugin_landscape_editor_r.dll
  • ovqt_plugin_log_r.dll
  • ovqt_plugin_object_viewer_r.dll
  • ovqt_plugin_sheet_builder_r.dll
  • ovqt_plugin_translation_manager_r.dll

You will find a subfolder per plugin here:

code\nel\tools\3d\object_viewer_qt\src\plugins

For each plugin, copy the xml file of the same name into c:\Object Viewer Qt\plugins .
For example:

ode\nel\tools\3d\object_viewer_qt\src\plugins\core\ovqt_plugin_core.xml

If you want to create a stand alone version of Object Viewer Qt, copy the following dll from c:\Qt\4.7.4\bin into c:\Object Viewer Qt :

QtCore4.dll
QtGui4.dll
QtNetwork4.dll
QtXml4.dll

Run object_viewer_qt.exe .

You will find an Object Viewer Qt Windows binary here: Downloads for Windows

You may also need Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) :

http://www.microsoft.com/DOWNLOADS/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en

Special settings

When opening a shape with OVQT, if you've got no texture, you will probably have to enable extension remap.
Edit Application Data\RyzomCore\ObjectViewerQt.ini or AppData\RyzomCore\ObjectViewerQt.ini and add:

[DataPath]
RemapExtensions=png, tga, png, dds

Previously, i have discarded the Mission Compiler plugin.
That plugin is working but will crash OVQT if you don't "subst" the following folder first:

subst L: c:\ryzom\code\ryzom\common\data_leveldesign