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

2.4.7 MS-DOS - Using DJGPP Compiler

If you want to compile and use Crystal Space for DOS using the DJGPP compiler (http://www.delorie.com/djgpp), you're reading the right document.

Necessary Files

You should use the Crystal Space makefile system to compile Crystal Space. This will require some utilities and libraries which are common in Unix-like environments but not in DOS. Here is a list of all of the files you should need to compile Crystal Space with DJGPP:

DJGPP development kit
ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2/djdev203.zip

DJGPP frequently asked questions
ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2/faq230b.zip

DJGPP GNU make utility
ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/mak3791b.zip

DJGPP GNU linker and assembler
ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/bnu2112b.zip

DJGPP GNU C compiler
ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/gcc2953b.zip

DJGPP GNU C++ compiler
ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/gpp2953b.zip

DJGPP GNU file utilities
ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/fil40b.zip

DJGPP GNU shell utilities
ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/shl20jb.zip

DJGPP GNU diff utilities
ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/dif272b.zip

Compiled zip, jpeg and png libraries
ftp://ftp.sunsite.dk/projects/crystal/support/dos/doslibs_0.94.zip
These are needed if the "original" libraries don't work. Extract these files into your CS directory. This will result in a `libs' directory in `CS\libs\cssys\djgpp'.

NASM (Netwide Assembler) for DOS
ftp://ftp.sunsite.dk/projects/crystal/support/nasm/nasm-0.98e-bin-dos.zip
Install this and add an entry to your PATH environment variable, so it can be found.

LIBDXE (Dynamic Library Loader) for DJGPP
ftp://ftp.sunsite.dk/projects/crystal/support/dos/dxe2_094.zip
Extract this into your DJGPP install directory and compile it `djgpp\contrib\dxe2' by invoking

 
make

and after that do a

 
make install

DJGPP GNU C++ libraries
ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/lgp2953b.zip

DJGPP GNU help system
ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/txi40b.zip

DJGPP GNU sed utility
ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/sed3028b.zip

DJGPP GNU text utilities
ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/txt20b.zip

Installation

Follow these installation instructions:

Allegro

If you use the Allegro graphics library (and want to use it in Crystal Space), you can use an alternative video driver. For this, you will have to add the following line to `CS/config.mak' after the configuration step.

 
USE_ALLEGRO = yes

Platform

I tested compilation on a WinNT4.0 sp6 system with cmd.exe as shell and on linux in a dosemu (where i had to fiddle with the configuration step - this is only for the adventurous people). Note that there are issues with djgpp and Win2k/WinXP. I did not try either so you are on your own here, but be told there is a FAQ on www.delorie.com/djgpp regarding this issue.

Compilation Notes

You will note the `-k' option in the make command above. This will prevent make to stop compilation if some subproject does not compile. In particular the sockets plugin will fail since there is no standard djgpp network package (there are a few out there but i tried only one and that did not compile :). Also, i did not try a compilation of Allegro, since i didnt have it installed (poor excuse, I know).


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

This document was generated using texi2html