To compile and run Overgrowth, you first need to have installed a commercial version of the game. If you're on steam, you'll also want to make sure you're using the internal_testing branch to have the latest set of data-files for the game. The reason for this is that you want the Data/ folder from the game.
These instructions assume you've already managed to download the project and have it in a local folder. There's no need to try and initialize the submodules unless you are an official developer of Wolfire, as those repos are private and primarily used by the build system for deployment. Make sure that the folder depth isn't too great, as this can cause some issues. From now we'll assume you've downloaded the repo into the following folder on windows C:\overgrowth
and ~/overgrowth
on unix-like systems.
To compile Overgrowth on windows you'll need the following to be installed before you start:
- CMake https://github.com/Kitware/CMake/releases/download/v3.23.0/cmake-3.23.0-windows-x86_64.msi
- Visual Studio 2022 Community Edition https://visualstudio.microsoft.com/downloads/
On MacOSX, you'll need to install XCode and CMake before you can compile the project.
After that you may need to start XCode once before building the project, to ensure that everything is configured. You may also have to install the command line XCode tools.
You'll need a GCC compiler, OpenGL, CMake, SDL2, SDL2_net, GTK 2, Ogg, Vorbis, FreeImage, OpenAL, libjpeg, bzip2 and FreeType.
The following command should install all necessary dependencies to build Overgrowth.
sudo dnf install gcc-c++ cmake make 'pkgconfig(gl)' 'pkgconfig(glu)' 'pkgconfig(sdl2)' 'pkgconfig(SDL2_net)' 'pkgconfig(gtk+-2.0)' 'pkgconfig(ogg)' 'pkgconfig(vorbis)' 'pkgconfig(openal)' 'pkgconfig(libjpeg)' 'pkgconfig(bzip2)' 'pkgconfig(freetype2)'
The following command should install all necessary dependencies to build Overgrowth.
sudo apt install build-essential cmake mesa-common-dev libsdl2-dev libsdl2-net-dev libgtk2.0-dev libogg-dev libvorbis-dev libopenal-dev libjpeg-dev libbz2-dev libfreetype-dev
-
Make sure you have an installed copy of Overgrowth and find the path to the install. If you've installed the game via Steam you can get the path by right clicking the game in the Steam games list, press Properties, go to Local Files and press Browse. This will open explorer window with the game path, copy that path into your clipboard. example:
E:\SteamLibrary\steamapps\common\Overgrowth
-
Go to the Overgrowth git repo folder and create a new subfolder named "Build" example
C:\overgrowth\Build
-
Open a windows cmd (alternatively a git bash console) in the build folder you just created.
-
Run the following command
cmake ../Projects -DAUX_DATA="E:/SteamLibrary/steamapps/common/Overgrowth"
. Replace the path with your own Overgrowth install, and switch the path separators from\
to/
-
Open the generated
Overgrowth.sln
file using Visual Studio 2022 -
Press the "Local Windows Debugger" button to compile and start the game.
- Go to the folder of the project
- Create a build directory
% mkdir Build
- Switch the terminal to the directory you just created.
% cd Build
- Run cmake to generate Makefiles, include the path to an already installed instance of Overgrowth
% cmake ../Projects -DAUX_DATA="/path/to/installed/Overgrowth.app/Contents/MacOS"
- Run make to build the game
% make
- Run the game by first moving to the project directory
% cd ..
- Then start the game
% ./Build/Overgrowth.app/Contents/MacOS/Overgrowth
- Go to the folder of the project
- Create a build directory
$ mkdir Build
- Switch the terminal to the directory you just created.
% cd Build
- Run cmake to generate Makefiles, include the path to an already installed instance of Overgrowth
$ cmake ../Projects -DAUX_DATA="/path/to/installed/Overgrowth"
- Run make to build the game
$ make
- Run the game by first moving to the project directory
$ cd ..
- Then start the game
$ Build/Release/Overgrowth.x86_64