Building Pioneer with code::blocks (Windows)
Posted: Sat Dec 21, 2013 4:01 pm
edit: updated instructions & links here: http://pioneerwiki.com/wiki/Building_with_Code::Blocks
Hey guys!
I don't have any version of Visual Studio installed any more so I had to get a code::blocks/mingw solution working. This might be useful to some of you.
First, install C::B. I have 13.12-RC1 right now.
Then, you'll need a compiler suite. I used TDM-GCC, 32-bit version.
Set up C::B to work with the compiler. Settings->Compiler, edit the default "GNU GCC compiler" configuration. The important settings are on the "Toolchain executables" tab. Set installation path to C:\TDM-GCC-32 (or wherever you installed it), the rest should be:
C compiler, mingw32-gcc.exe
C++ compiler, mingw32-g++.exe
Linker dynamic, mingw32-g++.exe
Linker static, ar.exe
Debugger, GDB/CDB
Resource compiler, windres.exe
Make program, mingw32-make.exe
Generating the C::B workspace. Check out my branch github.com/Luomu/pioneer/code-blocks. I made a Premake file to generate the projects, because maintaining individual project files is dull. Here's the premake4.exe I used: https://dl.dropboxusercontent.com/u/957 ... emake4.zip
Before generating the project, you'll need to gather some dependencies (SDL, LibPNG, vorbis...). I collected them in a package: https://dl.dropboxusercontent.com/u/957 ... b-deps.zip
Some come from the helpful http://mingw.pados.hu/, SDL from the project site and Assimp was built by me. If they don't work for you, you are on your own :) Extract them somewhere (let's say d:\dev\mingw32). You'll need the DLLs from bin/ in the game directory.
You may now generate the projects. In the project directory type
premake4.exe --thirdparty=D:/dev/mingw32 codeblocks
or just premake4 codeblocks, if you don't want to use the deps package and will set up the paths by yourself. You'll find Pioneer.workspace under build/.
That should be enough to build a working copy of Pioneer.
Hey guys!
I don't have any version of Visual Studio installed any more so I had to get a code::blocks/mingw solution working. This might be useful to some of you.
First, install C::B. I have 13.12-RC1 right now.
Then, you'll need a compiler suite. I used TDM-GCC, 32-bit version.
Set up C::B to work with the compiler. Settings->Compiler, edit the default "GNU GCC compiler" configuration. The important settings are on the "Toolchain executables" tab. Set installation path to C:\TDM-GCC-32 (or wherever you installed it), the rest should be:
C compiler, mingw32-gcc.exe
C++ compiler, mingw32-g++.exe
Linker dynamic, mingw32-g++.exe
Linker static, ar.exe
Debugger, GDB/CDB
Resource compiler, windres.exe
Make program, mingw32-make.exe
Generating the C::B workspace. Check out my branch github.com/Luomu/pioneer/code-blocks. I made a Premake file to generate the projects, because maintaining individual project files is dull. Here's the premake4.exe I used: https://dl.dropboxusercontent.com/u/957 ... emake4.zip
Before generating the project, you'll need to gather some dependencies (SDL, LibPNG, vorbis...). I collected them in a package: https://dl.dropboxusercontent.com/u/957 ... b-deps.zip
Some come from the helpful http://mingw.pados.hu/, SDL from the project site and Assimp was built by me. If they don't work for you, you are on your own :) Extract them somewhere (let's say d:\dev\mingw32). You'll need the DLLs from bin/ in the game directory.
You may now generate the projects. In the project directory type
premake4.exe --thirdparty=D:/dev/mingw32 codeblocks
or just premake4 codeblocks, if you don't want to use the deps package and will set up the paths by yourself. You'll find Pioneer.workspace under build/.
That should be enough to build a working copy of Pioneer.