[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.4.3 Windows using MinGW

Philip Wyett philipwyett@dsl.pipex.com. Last updated October 13, 2001

These instructions are for building Crystal Space with MinGW--a GNU compiler for Windows. There are many different versions of the GNU Windows compiler and problems arise with some Windows header files containing non-standard code used by Microsoft, so we recommend the MinGW compiler which is currently best supported by Crystal Space.

Necessary Resources

Download the following packages:

Installation

Follow these instructions to install the packages which you downloaded.

Building

From within the Crystal Space directory (`CS\'), run the `make' command and follow the instructions. Typically, you would issue the following commands:

 
make win32gcc MODE=debug
make depend
make -k all

Some Windows ME users have reported a system crash when running the `make win32gcc' command. If you have that problem, try adding `FORCEBUCK=SS' to the command line, like this:

 
make win32gcc MODE=debug FORCEBUCK=SS
make depend
make -k all

Note that making the `depend' target is not absolutely required. If doing so presents problems, then you can safely omit it:

 
make win32gcc MODE=debug
make -k all

Additional Command Line Compile Options

You can also insert the `clean' makefile target into the `make' command, as follows:

 
make -k clean all

This will first remove all object files, libraries, etc. from the `CS\out\WIN32\X86\debug' directory and will then build the entire project.

The `-k' option used in the `make -k all' command instructs the compiler to ignore errors and continue compiling regardless.

Customizing

You may need to customize settings in `CS\libs\cssys\win32\win32gcc.mak', the Mingw32 makefile. Check the following variables:

Adjust them to match your system libraries. For example, if you use the SGI OpenGL SDK instead of Microsoft's OpenGL, change `-lopengl32' and `-lglut32' to `-lopengl' and `-lglut' in `LIBS.GL3D.SYSTEM'. Also in the file `CS\mk\user.mak' select which plugins you wish to compile.

Troubleshooting

If you successfully compiled Crystal Space, yet find that you cannot run the applications from the `CS\' root directory, a possible cause might be that the pathname leading up to the `CS\' directory may have whitespace in it. For instance, if you installed the project in `C:\my stuff\CS', try renaming the path to `C:\my_stuff\CS' or `C:\mystuff\CS'.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated using texi2html