Getting GAE source and setting up to build.
Step by step instructions for Windows users.
- Download and install Visual Studio Express 2008 C++ or all package (2010 is untested)
- Download and install TortoiseGit
- Download and install CMake
- Clone Repository (other methods, including read/write, are at ObtainingSource):
Navigate to where you would like to place the project in your filesystem, right click and select 'Git Clone' and enter the url: git://glestae.git.sourceforge.net/gitroot/glestae/glestae 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 $GIT_DIR$
- Download dependencies:
Pre-compiled libraries are available in three packages, the base package contains everything the shared lib and game require. The tools package contains wxWidgets for the map editor, g3d viewer and configurator. The test package contains Cpp-Unit needed for the test suite.
Extract all the packages you downloaded to the same location. The directory 'gae-deps' that was extracted at the top level of the location you chose will from now on be referred to as $DEPS_DIR$
- Start CMake, set the source directory to $GIT_DIR$ and change the build directory to $GIT_DIR$/build, then add an entry called GAE_WINDEPS of type path, and point it at $DEPS_DIR$
- Press configure, click yes to create build directory, choose the Visual Studio 9 generator (VS might need to be closed if it is open), when done switch the Gui to 'grouped' view and expand the GAE section, ensure GAE_USE_PRECOMPILED_HDR is checked, and change the GAE_DATA_DIR (and optionally GAE_CONFIG_DIR) to $GIT_DIR$/data/game
- Press configure again, then press generate.
- The generated project files can be found in the 'build' directory. Open the solution file if you haven't already.
- Before running the game you will need to copy the binary dependencies in $DEPS_DIR$/bin to $GIT_DIR$/data/game. (NOTE: You can skip this step if you set the project's working directory to $DEPS_DIR$/bin in the next step)
- 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 $GIT_DIR$/data/game. This will need to be done for each configuration (eg Debug and Release).
- 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)
- You may wish to delete projects you do not plan to work with, to streamline the build process
- win_check_out.jpg (49.8 KB) - added by silnarm 3 years ago.
- cmake_setup_win.jpg (52.8 KB) - added by silnarm 3 years ago.
- cmake-pre-configure.jpg (52.9 KB) - added by silnarm 3 years ago.
- cmake-post_configure1.jpg (103.5 KB) - added by silnarm 3 years ago.
- build-folder.jpg (98.9 KB) - added by silnarm 3 years ago.
- set-startup-proj.jpg (32.6 KB) - added by silnarm 3 years ago.
- delete-other-projects.jpg (29.4 KB) - added by silnarm 3 years ago.
- binary_deps.jpg (78.4 KB) - added by hailstone3 3 years ago.
- working_dir.jpg (40.9 KB) - added by hailstone3 3 years ago.