README.Win32
author Sam Lantinga <slouken@libsdl.org>
Tue, 06 Nov 2001 00:15:04 +0000
changeset 232 678e3ed01019
parent 0 74212992fb08
child 253 b23d3c5a32f3
permissions -rw-r--r--
Don't generate a spurious error on SDL_InitVideo()
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@0
     7
If you want to use Microsoft VC++ with SDL, read "VisualC.html"
slouken@0
     8
slouken@0
     9
==============================================================================
slouken@0
    10
I.  Building the Simple DirectMedia Layer libraries:
slouken@0
    11
    (This step isn't necessary if you have the SDL binary distribution)
slouken@0
    12
slouken@0
    13
  First, get gcc compiler for Win32, which can be found at:
slouken@0
    14
	http://www.libsdl.org/Xmingw32/index.html
slouken@0
    15
slouken@0
    16
  Grab the cross configure and make scripts, and then run:
slouken@0
    17
	sh cross-configure.sh
slouken@0
    18
	sh cross-make.sh install
slouken@0
    19
  If you have already built SDL natively, you must do "make distclean"
slouken@0
    20
  before you build for Win32.
slouken@0
    21
slouken@0
    22
  If everything compiles successfully, you now have SDL.dll and gcc archive
slouken@0
    23
  libraries libSDLmain.a and libSDL.a installed in /usr/local/cross-tools/
slouken@0
    24
slouken@0
    25
==============================================================================
slouken@0
    26
II. Building the Simple DirectMedia Layer test programs:
slouken@0
    27
slouken@0
    28
  This is easy once you have built the libraries:
slouken@0
    29
slouken@0
    30
	cd test; sh ../cross-configure.sh; sh ../cross-make.sh
slouken@0
    31
slouken@0
    32
==============================================================================
slouken@0
    33
III. Building the Simple DirectMedia Layer demo programs:
slouken@0
    34
slouken@0
    35
  Go to the directory containing the demo you want to build and type:
slouken@0
    36
slouken@0
    37
	sh cross-configure.sh; sh cross-make.sh
slouken@0
    38
slouken@0
    39
  Be sure to rename the demo to use the .exe extension, or Windows will
slouken@0
    40
  not be able to execute it.
slouken@0
    41
slouken@0
    42
==============================================================================
slouken@0
    43
IV.  Enjoy! :)
slouken@0
    44
slouken@0
    45
  If you have a project you'd like me to know about, or want to ask questions,
slouken@0
    46
  go ahead and join the SDL developer's mailing list by sending e-mail to:
slouken@0
    47
slouken@0
    48
	majordomo@lokigames.com
slouken@0
    49
slouken@0
    50
  and put the line "subscribe sdl" in the body of the message.
slouken@0
    51
  
slouken@0
    52
==============================================================================
slouken@0
    53