Compiling the Launcher using Code::Blocks

From OdaWiki
Revision as of 01:17, 19 January 2007 by Russell (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Overview

In this article, we will learn how to compile the odamex launcher which uses the wxWidgets API

Compiling on Windows

Compiling wxWidgets

You will need to download the wxMSW package from the wxWidgets website, the latest version.

After that, extract everything to a directory of your choice, preserving directory structure.

Navigate to this directory, go to the build\msw subdirectory and type in the command prompt:

mingw32-make -f makefile.gcc MONOLITHIC=0 UNICODE=0 SHARED=0 BUILD=release

This process will take a while, you should end up with some libraries in the lib\gcc_lib folder after its built, these are the compiled wxWidgets libraries.

Compiling XML Resource files

(This is optional, only do this if you want to change the layout of your launcher!)

In the wxWidgets root directory, navigate to the utils\wxrc sub-directory and type the same command line in the command prompt that you compiled wxWidgets with, this will build wxrc.

After that, copy the wxrc.exe file from one of the subdirectories inside utils\wxrc to the odalaunch\res dir in your odamex root directory

Now, In the odalaunch\res sub-directory, type this into the command prompt:

wxrc /c /o res/xrc_resource.h res/dlgmain.xrc res/dlgconfig.xrc

This will compile the XML Resource (*.xrc) files into a C header file.

Compiling the launcher

to be continued..


Compiling on Linux

Compiling on MacOSX

External Links

wxWidgets website