The Glest Wiki
(Created page with "*Download and install TortoiseSVN. *Download and install CMake *Checkout source: Navigate to where you would like to place the project in your filesystem, right click and select …")
 
(Updated)
Line 16: Line 16:
 
*The generated project files can be found in the 'build' directory.
 
*The generated project files can be found in the 'build' directory.
 
[[File:Build-folder.jpg]]
 
[[File:Build-folder.jpg]]
  +
*Before running the game you will need to copy the binary dependencies in $DEP_DIR$/bin to $SVN_DIR$/data/game. (NOTE: You can skip this step if you set the project's working directory to $DEP_DIR$/bin in the next step)
*Once the solution is loaded, right click the 'game' project and set it as the start-up project, you can then launch the game in the debugger using the green 'play' button (or by pressing F5)
 
  +
*[[File:Binary_deps.jpg]]
  +
*To run the game from Visual Studio you need to set the working directory (otherwise it won't be able to find the DLLs). Right click on glestadv project and click 'Properties'. Go to 'Debugging'. Set the 'Working Directory' to $SVN_DIR$/data/game. This will need to be done for each configuration (eg Debug and Release). [[File:Working_dir.jpg]]
 
*Now, right click the 'game' project (ie glestadv) and set it as the start-up project, you can then launch the game in the debugger using the green 'play' button (or by pressing F5)
 
[[File:Set-startup-proj.jpg]]
 
[[File:Set-startup-proj.jpg]]
 
*You may wish to delete projects you do not plan to work with, to streamline the build process
 
*You may wish to delete projects you do not plan to work with, to streamline the build process

Revision as of 05:24, 14 September 2010

  • Download and install TortoiseSVN.
  • Download and install CMake
  • Checkout source:

Navigate to where you would like to place the project in your filesystem, right click and select 'SVN Checkout' and enter the url: https://glestae.svn.sourceforge.net/svnroot/glestae/trunk and change the name of the checkout directory if desired. Hit 'Ok' and go make a coffee. The directory you checked out the source to will now be referred to as $SVN_DIR$

Win check out.jpg

  • Download dependencies:

A windows dependencies package can be found at https://sourceforge.net/projects/glestae/files/win_dev_deps/win_deps.7z/download download and extract it somewhere. The directory you extracted this package to will now be referred to as $DEP_DIR$

  • Start CMake, set the source directory to $SVN_DIR$ and change the build directory to $SVN_DIR$/build, then add an entry called GAE_WINDEPS of type path, and point it at $DEP_DIR$

Cmake setup win.jpg

  • Press configure, choose the Visual Studio 9 generator, when done switch the Gui to 'grouped' view and expand the GAE section, ensure GAE_USE_PHYSFS & GAE_USE_PRECOMPILED_HDR are checked, and change the GAE_DATA_DIR (and optionally GAE_CONFIG_DIR) to $SVN_DIR$/data/game

Cmake-post configure1.jpg

  • Press configure again, then press generate.
  • The generated project files can be found in the 'build' directory.

File:Build-folder.jpg

  • Before running the game you will need to copy the binary dependencies in $DEP_DIR$/bin to $SVN_DIR$/data/game. (NOTE: You can skip this step if you set the project's working directory to $DEP_DIR$/bin in the next step)
  • File:Binary deps.jpg
  • To run the game from Visual Studio you need to set the working directory (otherwise it won't be able to find the DLLs). Right click on glestadv project and click 'Properties'. Go to 'Debugging'. Set the 'Working Directory' to $SVN_DIR$/data/game. This will need to be done for each configuration (eg Debug and Release). File:Working dir.jpg
  • Now, right click the 'game' project (ie glestadv) and set it as the start-up project, you can then launch the game in the debugger using the green 'play' button (or by pressing F5)

File:Set-startup-proj.jpg

  • You may wish to delete projects you do not plan to work with, to streamline the build process

File:Delete-other-projects.jpg