To compile Delta3D it is necessary to first create a solution file for a IDE (or some other environment) and then build the project using that tool. Delta3D 2.1.0 does not come with pre-created VS2005/8 solution files like older versions of Delta3D did.
To create a VS2008 solution for Delta3D 2.1.0 first obtain the following programs/sources:
- Download Delta3D 2.1.0 from Sourceforge.
- Download Delta3D 2.1.0 dependencies from Sourceforge.
- Download the open source C++ edition of Qt from Trolltech.
- Download NMake build tool from Microsoft.
- Download CMake build tool from cmake.org.
Now you have the resources you need to be able to start the build process. Please notice that the version of Qt to download must be the source code (src) version, not the MinGW version, which Delta3D can not use. Now you need to install nmake, cmake and the other tools. I am assuming that you already have VS2008 installed…
- Install NMake – create a directory for NMake, for example C:\Program Files\NMake and move the NMake executable file to the new foldet. Run the file and it will unzip to a couple of files, among them nmake.exe.
- Install CMake – just follow the instructions.
- Unzip the Qt package to where you will want it installed, for example C:\Qt\4.4.3 (depending on version).
- Install Delta3D from the executable – again just follow the instructions.
- Unzip the Delta3D dependencies package to your Delta3D installation folder, for example C:\Program Files\Delta3D_REL-2.1.0. The package contains a single folder, ext, which you should overwrite the existing Delta3D ext folder with.
Now the tools are basically installed. The first step is then to compile Qt:
- Add NMake to your path – For example add C:\Program Files\NMake to your path varialble if that is where you installed the NMake tool.
- Add the Qt bin folder to your path – If you installed Qt to C:\Qt\4.4.3 then add C:\Qt\4.4.3\bin to your path.
- Start a Visual Studio 2008 Command Prompt, not the usual cmd but the VS2008 one so that Qt can find the compilation (cl) and linking (link) tools.
- Navigate to the Qt folder, for example C:\Qt\4.4.3, and run “configure.exe -platform win32-msvc-2008″ which should create a file called “Makefile” in the Qt directory.
- Run NMake by typing “nmake” and wait while Qt compiles… this takes a LONG time.
Now that Qt is installed you are able to create a VS2008 solution file for Delta3D:
- Open the CMake tool. Select the CMake entry in your start menu (not the cmake-gui).
- Open an explorer window and drag the CMakeLists.txt file from the Delta3D folder into the CMake window.
- Click configure and wait while it checks your system. If it complains about QMAKE missing, find the relevant entry (some where in the bottom of the configurations in CMake) and point it to the qmake.exe in your Qt bin directory, and press configure again.
- When successfully configured press OK.
Now you have a VS2008 solution file in the root of your Delta3D folder. Open that with Visual Studio and build as necessary.