1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- Created by texi2html 1.64 -->
<!--
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
Karl Berry <karl@freefriends.org>
Olaf Bachmann <obachman@mathematik.uni-kl.de>
and many others.
Maintained by: Olaf Bachmann <obachman@mathematik.uni-kl.de>
Send bugs and suggestions to <texi2html@mathematik.uni-kl.de>
-->
<HTML>
<HEAD>
<TITLE>Crystal Space: MS-DOS</TITLE>
<META NAME="description" CONTENT="Crystal Space: MS-DOS">
<META NAME="keywords" CONTENT="Crystal Space: MS-DOS">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META NAME="Generator" CONTENT="texi2html 1.64">
</HEAD>
<BODY LANG="" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080" ALINK="#FF0000">
<A NAME="SEC111"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_41.html#SEC110"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_43.html#SEC117"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_38.html#SEC107"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_19.html#SEC29"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_43.html#SEC117"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="index.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_285.html#SEC711">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<HR SIZE=1>
<H3> 2.4.7 MS-DOS - Using DJGPP Compiler </H3>
<!--docid::SEC111::-->
<P>
If you want to compile and use Crystal Space for DOS using the DJGPP
compiler (<A HREF="http://www.delorie.com/djgpp">http://www.delorie.com/djgpp</A>), you're reading the right
document.
</P><P>
<A NAME="SEC112"></A>
<H4> Necessary Files </H4>
<!--docid::SEC112::-->
<P>
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:
</P><P>
DJGPP development kit<BR>
<A HREF="ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2/djdev203.zip">ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2/djdev203.zip</A>
</P><P>
DJGPP frequently asked questions<BR>
<A HREF="ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2/faq230b.zip">ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2/faq230b.zip</A>
</P><P>
DJGPP GNU make utility<BR>
<A HREF="ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/mak3791b.zip">ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/mak3791b.zip</A>
</P><P>
DJGPP GNU linker and assembler<BR>
<A HREF="ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/bnu2112b.zip">ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/bnu2112b.zip</A>
</P><P>
DJGPP GNU C compiler<BR>
<A HREF="ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/gcc2953b.zip">ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/gcc2953b.zip</A>
</P><P>
DJGPP GNU C++ compiler<BR>
<A HREF="ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/gpp2953b.zip">ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/gpp2953b.zip</A>
</P><P>
DJGPP GNU file utilities<BR>
<A HREF="ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/fil40b.zip">ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/fil40b.zip</A>
</P><P>
DJGPP GNU shell utilities<BR>
<A HREF="ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/shl20jb.zip">ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/shl20jb.zip</A>
</P><P>
DJGPP GNU diff utilities<BR>
<A HREF="ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/dif272b.zip">ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/dif272b.zip</A>
</P><P>
Compiled zip, jpeg and png libraries<BR>
<A HREF="ftp://ftp.sunsite.dk/projects/crystal/support/dos/doslibs_0.94.zip">ftp://ftp.sunsite.dk/projects/crystal/support/dos/doslibs_0.94.zip</A><BR>
<EM>These are needed if the "original" libraries don't work.</EM>
Extract these files into your CS directory. This will result in
a `<TT>libs</TT>' directory in `<TT>CS\libs\cssys\djgpp</TT>'.
</P><P>
NASM (Netwide Assembler) for DOS<BR>
<A HREF="ftp://ftp.sunsite.dk/projects/crystal/support/nasm/nasm-0.98e-bin-dos.zip">ftp://ftp.sunsite.dk/projects/crystal/support/nasm/nasm-0.98e-bin-dos.zip</A><BR>
Install this and add an entry to your PATH environment variable, so it can be
found.
</P><P>
LIBDXE (Dynamic Library Loader) for DJGPP<BR>
<A HREF="ftp://ftp.sunsite.dk/projects/crystal/support/dos/dxe2_094.zip">ftp://ftp.sunsite.dk/projects/crystal/support/dos/dxe2_094.zip</A><BR>
Extract this into your DJGPP install directory and compile it
`<TT>djgpp\contrib\dxe2</TT>' by invoking
</P><P>
<TABLE><tr><td> </td><td class=example><pre>make
</pre></td></tr></table></P><P>
and after that do a
</P><P>
<TABLE><tr><td> </td><td class=example><pre>make install
</pre></td></tr></table></P><P>
DJGPP GNU C++ libraries<BR>
<A HREF="ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/lgp2953b.zip">ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/lgp2953b.zip</A>
</P><P>
DJGPP GNU help system<BR>
<A HREF="ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/txi40b.zip">ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/txi40b.zip</A>
</P><P>
DJGPP GNU sed utility<BR>
<A HREF="ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/sed3028b.zip">ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/sed3028b.zip</A>
</P><P>
DJGPP GNU text utilities<BR>
<A HREF="ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/txt20b.zip">ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2gnu/txt20b.zip</A>
</P><P>
<A NAME="SEC113"></A>
<H4> Installation </H4>
<!--docid::SEC113::-->
<P>
Follow these installation instructions:
</P><P>
<UL>
<LI>
Unzip NASM somewhere.
<P>
<LI>
If you don't already have a directory for DJGPP, create one. Unzip all
of the DJGPP stuff into that directory.
<P>
<LI>
To use DJGPP you need to set two environment variables. Use this example
but change the directories to match the directories where you have DJGPP
and NASM installed:
<P>
<TABLE><tr><td> </td><td class=example><pre>SET PATH=c:\djgpp\bin;c:\nasm\bin;%PATH%
SET DJGPP=c:\djgpp\djgpp.env
</pre></td></tr></table></P><P>
<LI>
Now just go to the Crystal Space directory (`<TT>CS/</TT>').
If you want to
<UL>
<LI>
build dynamic executables where only needed code is loaded at runtime do
`<SAMP>make djgpp</SAMP>' and after that `<SAMP>make -k all</SAMP>'.
<LI>
build static executables where all is compiled in (programs tend go get very big that way :)
then do `<SAMP>make djgpp USE_PLUGINS=no</SAMP>' and after that `<SAMP>make -k all</SAMP>'.
</UL>
</UL>
<P>
<A NAME="SEC114"></A>
<H4> Allegro </H4>
<!--docid::SEC114::-->
<P>
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 `<TT>CS/config.mak</TT>' after the configuration step.
</P><P>
<TABLE><tr><td> </td><td class=example><pre>USE_ALLEGRO = yes
</pre></td></tr></table></P><P>
<A NAME="SEC115"></A>
<H4> Platform </H4>
<!--docid::SEC115::-->
<P>
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.
</P><P>
<A NAME="SEC116"></A>
<H4> Compilation Notes </H4>
<!--docid::SEC116::-->
<P>
You will note the `<SAMP>-k</SAMP>' 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).
<A NAME="Problems"></A>
<HR SIZE=1>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_41.html#SEC110"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_43.html#SEC117"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_38.html#SEC107"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_19.html#SEC29"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_43.html#SEC117"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="index.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_285.html#SEC711">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<BR>
<FONT SIZE="-1">
This document was generated
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
</BODY>
</HTML>
|