README.Win32
author Sam Lantinga <slouken@libsdl.org>
Wed, 20 Mar 2002 02:37:44 +0000
changeset 313 67ad846ed21c
parent 274 051b991765ba
permissions -rw-r--r--
*** empty log message ***
slouken@0
     1
slouken@0
     2
==============================================================================
slouken@0
     3
Using the Simple DirectMedia Layer with Windows 95,NT
slouken@0
     4
==============================================================================
slouken@0
     5
slouken@0
     6
These instructions are for people using the GNU free compilers.
slouken@274
     7
If you want to use Microsoft VC++ with SDL, read "VisualC.html" or 
slouken@274
     8
if you want to use Borland C++ Builder or the free Borland compiler,
slouken@274
     9
read "BorlandC.html".
slouken@0
    10
slouken@0
    11
==============================================================================
slouken@0
    12
I.  Building the Simple DirectMedia Layer libraries:
slouken@0
    13
    (This step isn't necessary if you have the SDL binary distribution)
slouken@0
    14
slouken@0
    15
  First, get gcc compiler for Win32, which can be found at:
slouken@0
    16
	http://www.libsdl.org/Xmingw32/index.html
slouken@0
    17
slouken@0
    18
  Grab the cross configure and make scripts, and then run:
slouken@0
    19
	sh cross-configure.sh
slouken@0
    20
	sh cross-make.sh install
slouken@0
    21
  If you have already built SDL natively, you must do "make distclean"
slouken@0
    22
  before you build for Win32.
slouken@0
    23
slouken@0
    24
  If everything compiles successfully, you now have SDL.dll and gcc archive
slouken@0
    25
  libraries libSDLmain.a and libSDL.a installed in /usr/local/cross-tools/
slouken@0
    26
slouken@0
    27
==============================================================================
slouken@0
    28
II. Building the Simple DirectMedia Layer test programs:
slouken@0
    29
slouken@0
    30
  This is easy once you have built the libraries:
slouken@0
    31
slouken@0
    32
	cd test; sh ../cross-configure.sh; sh ../cross-make.sh
slouken@0
    33
slouken@0
    34
==============================================================================
slouken@0
    35
III. Building the Simple DirectMedia Layer demo programs:
slouken@0
    36
slouken@0
    37
  Go to the directory containing the demo you want to build and type:
slouken@0
    38
slouken@0
    39
	sh cross-configure.sh; sh cross-make.sh
slouken@0
    40
slouken@0
    41
  Be sure to rename the demo to use the .exe extension, or Windows will
slouken@0
    42
  not be able to execute it.
slouken@0
    43
slouken@0
    44
==============================================================================
slouken@0
    45
IV.  Enjoy! :)
slouken@0
    46
slouken@0
    47
  If you have a project you'd like me to know about, or want to ask questions,
slouken@0
    48
  go ahead and join the SDL developer's mailing list by sending e-mail to:
slouken@0
    49
slouken@253
    50
	sdl-request@libsdl.org
slouken@0
    51
slouken@253
    52
  and put "subscribe" into the subject of the message. Or alternatively you
slouken@253
    53
  can use the web interface:
slouken@253
    54
slouken@253
    55
	http://www.libsdl.org/mailman/listinfo/sdl
slouken@0
    56
  
slouken@0
    57
==============================================================================
slouken@0
    58