HowTo Setup a build environment under windows using MinGW and Codeblocks
Download the necessary tools
- MsysGit is a fork of git for windows. Download the first file in the list.
- 7-Zip (or a compatible extractor) is an open source file archiver with a high compression ratio.
- MinGW Minimalist GNU utils port for Windows, it includes the powerful gcc-c++ compiler.
- wxPack is a precompiled version of wxWidgets so that you don't have to compile it yourself. It also comes with wxFormBuilder.
- Codeblocks IDE is a cross platform C++ IDE, a nightly build is required because the rc2 version is too outdated.
Installation & configuration
The programs doesn't requires special installation instructions, unless specifically mentioned in this guide.
MinGW
Don't change the default installation path unless of special needs, or will requires manual editing of some values in later steps Enable the following components:
MinGW base tools G++ compiler MinGW Make
GDB
gdb is not included in the mingw installer anymore, get it from here. You'll find gdb.exe inside that archive in subdir bin/. Extract gdb.exe to C:\mingw\bin (in case you changed default path of mingw install, change accordingly).
wxPack
Install into a directory like C:\wxWidgets. Remember where you installed it as you will need the path later.
Git
Open up the command prompt (start -> run -> type in cmd -> press ok). Go to the directory where you want the SpringLobby? source to be downloaded to. (e.g. C:/ if you want it in C:/springlobby). Find out who's git repository you want to download from (You can find a list of the repositories here.).
Now type:
git clone git://springlobby.info/git/semi/springlobby.git
Change the URL with the URL of the Repository you are downloading from.
Codeblocks
Once following the official installation instruction, open the program. Select the GNU GCC Compiler as default. If the MinGW was installed in the default location, at this point it should be detected automatically, make sure it is by going in Settings-> Compiler and debugger -> Global compiler settings-> Toolchain executables and change otherwise to your MinGW installation
Go into Settings-> Compiler and debugger -> Global compiler settings-> Other settings and mark the following checkboxes:
[X]Explicitly add currently compiling file's directory to compiler search dirs [X]Explicitly add project's add top-level directory to compiler search dirs [X]Display build progress bar [X]Display build progress percentage in log
Go into Settings-> Compiler and debugger -> Debugger Settings and enable the following checkbox:
[X]Evaluate expression under cursor
Compiling the project
Go to File->Open and open the file springlobby.cbp from the main SpringLobby source folder. Now go to Settings -> Compiler & Debugger and click on the Search Directories tab. In the Compiler tab under that, add the following paths, replacing (WX_DIR) with the path to wxWidgets).
(WX_DIR)\include (WX_DIR)\lib\gcc_dll\mswd (WX_DIR)\contrib\include
Now, add the following path to the Linker tab. Again, replace (WX_DIR) with the path to wxWidgets).
(WX_DIR)\lib\gcc_dll
To finish, add the following path to the Resource Compiler tab. Again, replace (WX_DIR) with the path to wxWidgets).
(WX_DIR)\include
In the user interface, change Build target to: "Win32 | Debug" and click build.
Troubleshooting
If you encounter troubles with any of the steps, please check the guide again and if doesn't help, contact the lobby developers.
