Howto build object-viewer-qt (ovqt) with stlport on windows
Added by molator almost 5 years ago
Thank you to Dnk-88 and Sfb.
What you need¶
- Microsoft Visual Studio C++ 2008 Express Editions with SP1
Download vcsetup.exe
- Qt lib with stlport
I will assume that you extract qt lib with stlport in c:\
The qt root folder would be c:\Qt\4.6.3
You can build you own qt lib with stlport here :
- NeL lib with stlport
Build NeL with the following wikis :
I will assume that NeL is in c:\ryzom\code\nel
- Ryzom core external lib
https://sourceforge.net/projects/ryzom/files/external_stlport_lua51.7z/download
Extract Ryzom core external lib in c:\3rdParty
The folders would be c:\3rdParty\include, c:\3rdParty\lib, etc.
- TortoiseSVN
- CMake
- NSIS Nullsoft Scriptable Install System (optional)
Download NSIS if you want to create an installer.
Download and install.
Get object-viewer-qt source¶
Create a folder for object-viewer-qt source.
I will assume that you create the folder c:\object-viewer-qt
Right click on the folder then left click on SVN Checkout.
Fill "URL of repository" :
Click on "OK" to download object-viewer-qt source.
Set up everything¶
- Visual C++ settings
If you have already added the paths to Ryzom core external lib when you built Nel, skip those settings.
Add the following paths to the top of Visual C++ include settings :
c:\3rdParty\include\stlport
c:\3rdParty\include
c:\3rdParty\bin
Add the following paths to the top of Visual C++ lib settings :
c:\3rdParty\lib
- NeL settings
Edit the system variable PATH and add :
c:\ryzom\code\nel\lib
- Qt settings
Edit the system variable PATH and add :
c:\Qt\4.6.3\bin
Create a systeme variable QTLIB with the following value :
c:\Qt\4.6.3\lib
- 3rdParty settings
Copy everything from c:\ryzom\code\nel\include to c:\3rdParty\include
Copy everything from c:\ryzom\code\nel\lib to c:\3rdParty\lib
Generate Visual C++ solution with CMake¶
The 3rdParty subfolder must be in the same folder as object-viewer-qt source subfolder.
In our case :
c:\object-viewer-qt
c:\3rdParty
CMake will look after the 3rdParty subfolder.
Run cmake-gui.
Fill "Where is the source code" with object-viewer-qt source path :
c:\object-viewer-qt
Fill "Where to build the binaries" with the path where you want to build object-viewer-qt :
c:\object-viewer-qt-build
Click on "Configure".
Choose "Visual Studio 9 2008" and "Use default native compilers".
Click on "Finish".
Click on "Configure" again to finalize the configuration.
Click on "Generate" to generate the Visual C++ solution.
Build object-viewer-qt¶
Open the Visual C++ solution
c:\object-viewer-qt-build\object_viewer_qt.sln
Choose Release mode and hit F7 to build.
If you haven't installed NSIS, you won't be able to build some projects, but we don't care.
Run object-viewer-qt¶
Copy everything from c:\object-viewer-qt\data to c:\object-viewer-qt-build\bin\Release
Run
c:\object-viewer-qt-build\bin\Release\object-viewer-qt.exe
If you want to create a stand alone object-viewer-qt version, copy the following dll in c:\object-viewer-qt-build\bin\Release\ :
c:\ryzom\code\nel\lib\nel_drv_direct3d_win_r.dll
c:\ryzom\code\nel\lib\nel_drv_dsound_win_r.dll
c:\ryzom\code\nel\lib\nel_drv_fmod_win_r.dll
c:\ryzom\code\nel\lib\nel_drv_openal_win_r.dll
c:\ryzom\code\nel\lib\nel_drv_opengl_win_r.dll
c:\ryzom\code\nel\lib\nel_drv_xaudio2_win_r.dll
c:\Qt\4.6.3\lib\QtCore4.dll
c:\Qt\4.6.3\lib\QtGui4.dll
Here is an object-viewer-qt windows demo :
You may also need Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) :
You can find ps and shape files here :
That's all folks!