BorlandC.html
changeset 274 051b991765ba
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/BorlandC.html	Wed Feb 13 17:45:24 2002 +0000
     1.3 @@ -0,0 +1,68 @@
     1.4 +Date: Sun, 13 Jan 2002 13:59:56 -0600
     1.5 +From: David Snopek <xevol@newtonave.net>
     1.6 +To: slouken@devolution.com
     1.7 +Subject: Compiling SDL with Borland C++
     1.8 +
     1.9 +<html>
    1.10 +<title>Building SDL with Borland C++ </title>
    1.11 +<body>
    1.12 +
    1.13 +<h1>Building SDL with Borland C++ </h1>
    1.14 +<b> by <a href=mailto:xevol@users.sourceforge.net> David Snopek </a> </b> 
    1.15 +
    1.16 +<br>
    1.17 +<br>
    1.18 +
    1.19 +These instructions cover how to compile SDL and its included test programs using either 
    1.20 +Borland C++ Builder 5 or the free Borland compiler. <br>
    1.21 +
    1.22 +<h3> <b> Extract the files </b> </h3>
    1.23 +
    1.24 +<p> Unzip the Borland.zip archive into <b>this</b> directory.  Do not unzip it into any 
    1.25 +other directory because the makefiles use relative paths to refer to the SDL sources.  This 
    1.26 +should create a directory named "Borland" inside of the top level SDL source directory. 
    1.27 +</p>
    1.28 +
    1.29 +<h3> <b> Using Borland C++ Builder 5 </b> </h3>
    1.30 +
    1.31 +<p> Inside of the "Borland" directory there is a "bcb5" directory that contains a number 
    1.32 +of Builder project files.  Double-click on the "libSDL.bpg" file icon.  Once Builder has 
    1.33 +started click on the "<u>P</u>rojects" menu on the menu-bar and go down to 
    1.34 +"B<u>u</u>ild All Projects" option.  This will proceed to build SDL, SDLmain, and all 
    1.35 +the <a href="#tests">test programs</a>. </p>
    1.36 +
    1.37 +<h3> <b> Using the free Borland compiler </b> </h3>
    1.38 +
    1.39 +<p> The free Borland compiler can be downloaded at no charge from <a href="http://www.borland.com/bcppbuilder/freecompiler/"> the 
    1.40 +Borland website </a>.  Make sure that it is installed and properly configured. </p>
    1.41 +
    1.42 +<p> Open an MS-DOS Prompt.  Change to the "Borland\freebcc" directory under the 
    1.43 +SDL source directory.  Type "make -f SDL.mak" to build SDL and "make -f 
    1.44 +SDLmain.mak".  There are also makefiles for all of the <a href="#tests">test 
    1.45 +programs</a>, if you wish to build them. </p>
    1.46 +
    1.47 +<h3> <b> Output files </b> </h3>
    1.48 +
    1.49 +No matter which compiler you used, three important files should have been produced:
    1.50 + 
    1.51 +<UL>
    1.52 +	<LI> SDL.dll </LI>
    1.53 +	<LI> SDL.lib </LI>
    1.54 +	<LI> SDLmain.lib </LI>
    1.55 +</UL>
    1.56 +
    1.57 +Both of the *.lib files will need to be added to all the projects that use SDL and SDL.dll 
    1.58 +must be placed some where the Windows dynamic linker can find it (either in your 
    1.59 +project directory or on the system path, C:\WINDOWS\SYSTEM).
    1.60 +
    1.61 +<a name="tests">
    1.62 +<h3> <b> Test programs </b> </h3>
    1.63 +</a>
    1.64 +
    1.65 +Some of the test programs require included media files.  Before trying to run any of the 
    1.66 +test programs, copy these media files from the "tests/" directory into the build directory.
    1.67 +
    1.68 +</body>
    1.69 +</html>
    1.70 +
    1.71 +