8 | | == Preparations == |
9 | | Bear in mind that we '''only support Visual Studio 2005 SP1'''. Once the CMake generators work, it should be possible to use several versions. |
10 | | |
11 | | === DirectX SDK === |
12 | | (The following instructions for DirectX are copied from the OGRE wiki) |
13 | | |
14 | | Download the latest DirectX 9.0 SDK from http://msdn.microsoft.com/directx. |
15 | | |
16 | | The DirectX SDK install should automatically update the Visual Studio include and library paths with the locations of the DX SDK includes and lib paths. If not, you will need to enter the DirectX include and library directories into MSVC so you can compile against the SDK. It would look something like this: |
17 | | |
18 | | * Select Tools|Options|Projects|VC++ Directories |
19 | | '''Note''': Path to the folder must be ON TOP of the list or you will get errors during compilation (Example: error LNK2001: unresolved external symbol _IID_IDirect3DBaseTexture9) |
20 | | |
21 | | * Under library files, set the appropriate library directory for the SDK. E.g., |
22 | | C:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86 |
23 | | |
24 | | * Under include files, set the appropriate include directory for the SDK. E.g., |
25 | | C:\Program Files\Microsoft DirectX SDK (August 2007)\Include |
| 7 | === DirectX === |
| 8 | You sure have DirectX 9 already installed.. |
28 | | 1. Checkout the HEAD revision of the trunk or of any branch you like. Also checkout the Media repository and put it on the same directory level as your source checkout. More information can be found in the [wiki:SVN] section. [[br]][[br]] |
29 | | 1. The next thing is getting the external dependencies. We supply these as precompiled [http://svn.orxonox.net/ogre/binaries/VisualStudio8/ archives] (take the newest ones) with the lib, dll, debug symbols and include files all at once. Once you got the archive, put it in the directory of your source checkout folder and extract it right there (not in a new folder). This will create a folder named "dependencies" that includes everything necessary. [[br]][[br]] |
30 | | 1. Start visual_studio/vc8/orxonox_vc8.sln now. [[br]][[br]] |
| 11 | 1. Checkout the HEAD revision of the trunk or of any branch you like. Also checkout the media repository and put it on the same directory level as your source checkout. More information can be found in the [wiki:SVN] section. [[br]][[br]] |
| 12 | 1. The next thing is getting the external dependencies. We supply these as precompiled [http://svn.orxonox.net/ogre/precompiled_dependencies/ archives] (take the newest ones) with the lib, dll, debug symbols and include files. Once you got the archive, put it in the directory of your source checkout folder and extract it right there (not in a new folder). This will create a folder named "dependencies" that includes everything necessary. [[br]][[br]] |
50 | | 4. Select ''Build Solution'' and the ''Build'' menu or simply hit F7 and wait... |
51 | | Default build configuration was ''Debug''. You can also choose ''Release'' in the little bar underneath the menu. ''Release'' is a lot faster, but debugging isn't recommended at all. Also consider that you need to build everything twice. [[br]][[br]] |
52 | | 5. F5 or ''Debug, Start Debugging'' will start orxonox in the corresponding configuration. Note that all necessary external binary files got copied to bin/orxonox_vc8/(debug|release) so can also start Orxonox without Visual Studio. |
| 31 | 1. We use CMake to have better cross platform support. Get the latest (at least v2.6) binaries at [http://www.cmake.org/cmake/resources/software.html cmake.org] and extract/install them. |
| 32 | 1. Run bin/cmake-gui.exe and select your source checkout folder ('trunk' in my example above). The binary folder below can be anywhere except the source folder itself. We suggest trunk/build. |
| 33 | 1. Hit "configure" twice (or as long as "generate" is unavailable) and then "generate". You will be prompted to select a generator. Choose the Visual Studio version you have (64 bit is not yet supported!). |
| 34 | 1. Go to your freshly created binary folder, open Orxonox.sln and hit F7. That will build orxonox. |
| 35 | 1. On the left you see all targets, make sure that 'Orxonox' is bold by right clicking on it and selecting "Set as StartUp Project". |
| 36 | 1. F5 will start the game. |
| 37 | [[br]] |
| 38 | |
| 39 | If you have any trouble, feel free to contact me (Reto '1337' Grieder). |