[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
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.
Download the following packages:
ftp://ftp.sunsite.dk/projects/crystal/support/mingw32/cs_mingw_0.90.exe
ftp://ftp.sunsite.dk/projects/crystal/support/nasm/nasm-0.98e-bin-w32.zip
Follow these instructions to install the packages which you downloaded.
The following instructions assume the MinGW package is installed in `C:\mingw32'.
SET PATH=C:\mingw32\bin |
You must also add the following variables, so that GCC can find the Python header files.
SET PYTHON_INC=C:\mingw32\include\python1.5 SET PYTHONPATH=C:\mingw32\lib\python1.5 |
On Windows NT, 2000 and XP, use the System control panel to edit the environment variable.
If you fail to do so, then the `makedep' tool will not know where to look for Mingw32's system include files, and will emit a lot of warnings.
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 |
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.
You may need to customize settings in `CS\libs\cssys\win32\win32gcc.mak', the Mingw32 makefile. Check the following variables:
LIBS.GL3D.SYSTEM
LIBS.SOCKET.SYSTEM
LIBS.SOUND.SYSTEM
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.
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] | [ ? ] |