Difference between revisions of "Compiling the Launcher using Code::Blocks"
(No longer specify ansi) |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | In this article, we will learn how to compile the Odamex Launcher which uses the wxWidgets API, '''you WILL need to [[Compiling_using_Code::Blocks|take these steps]] before continuing with this article.''' | |
− | In this article, we will learn how to compile the | + | |
− | == | + | == Getting wxWidgets == |
− | === | + | === Windows === |
− | + | You will need to download the latest '''MSW''' package from the [http://www.wxwidgets.org wxWidgets website]. | |
− | You will need to download the | + | |
After that, extract everything to a directory of your choice, preserving directory structure. | After that, extract everything to a directory of your choice, preserving directory structure. | ||
− | === | + | === Linux === |
− | + | Refer to your distributions instructions on installing wxWidgets. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | == Compiling wxWidgets == | |
− | + | === Windows === | |
+ | Open a command prompt window, go to '''your-wxwidgets-dir\build\msw''' directory and type: | ||
<pre> | <pre> | ||
− | + | mingw32-make -f makefile.gcc MONOLITHIC=0 SHARED=0 BUILD=release | |
</pre> | </pre> | ||
− | This will | + | 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 wxrc == | |
+ | Go back to 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. | ||
− | to | + | == Compiling the Launcher == |
+ | Open Code::Blocks and navigate to the Settings->Global Variables menu, | ||
+ | select "wx" as your current variable if it isn't already selected. | ||
+ | In the '''base''' field, type in the path of your wxWidgets directory and close the dialog. | ||
− | + | Open your '''odamex.workspace''' in Code::Blocks and double-click on the Launcher project, select '''Release''' build target, go to the '''Build''' menu and hit '''Rebuild'''. | |
− | + | If all went well, you should see an '''odalaunch''' binary in the '''bin''' directory of your Odamex source directory. |
Latest revision as of 21:00, 8 February 2014
In this article, we will learn how to compile the Odamex Launcher which uses the wxWidgets API, you WILL need to take these steps before continuing with this article.
Contents
Getting wxWidgets
Windows
You will need to download the latest MSW package from the wxWidgets website.
After that, extract everything to a directory of your choice, preserving directory structure.
Linux
Refer to your distributions instructions on installing wxWidgets.
Compiling wxWidgets
Windows
Open a command prompt window, go to your-wxwidgets-dir\build\msw directory and type:
mingw32-make -f makefile.gcc MONOLITHIC=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 wxrc
Go back to 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.
Compiling the Launcher
Open Code::Blocks and navigate to the Settings->Global Variables menu, select "wx" as your current variable if it isn't already selected. In the base field, type in the path of your wxWidgets directory and close the dialog.
Open your odamex.workspace in Code::Blocks and double-click on the Launcher project, select Release build target, go to the Build menu and hit Rebuild.
If all went well, you should see an odalaunch binary in the bin directory of your Odamex source directory.