/[pcsx2_0.9.7]/trunk/3rdparty/SDL-1.3.0-5387/README.Watcom
ViewVC logotype

Annotation of /trunk/3rdparty/SDL-1.3.0-5387/README.Watcom

Parent Directory Parent Directory | Revision Log Revision Log


Revision 401 - (hide annotations) (download)
Fri Feb 25 17:31:09 2011 UTC (9 years, 9 months ago) by william
File size: 4675 byte(s)
Auto Commited Import of: pcsx2-0.9.7-DEBUG (upstream: v0.9.7.4358 local: v0.9.7.313-latest) in ./trunk
1 william 401 Using SDL 1.3 under Windows with the OpenWatcom compiler
2    
3     ====================================================
4    
5     Prerequisites
6     -------------
7    
8     I have done the port under Windows XP Professional with SP2 installed.
9     Windows 2000 should also be working. I'm not so sure about ancient Windows NT,
10     since only DirectX 3 is available there. Building should be possible,
11     but running the compiled applications will probalbly fail with
12     SDL_VIDEODRIVER=directx. The windib driver should work, though.
13    
14     To compile and use the SDL with Open Watcom you will need the following:
15     - Open Watcom compiler. I used version 1.8. The environment variables
16     PATH, WATCOM and INCLUDE need to be set appropriately - please consult
17     the OpenWatcom documentation and instructions given during the
18     installation of the compiler.
19     My setup looks like this in owvars.bat:
20     set WATCOM=C:\dev\ow18
21     set INCLUDE=%WATCOM%\h;%WATCOM%\h\nt
22     set PATH=%PATH%;%WATCOM%\binnt;%WATCOM%\binw
23     - A recent DirectX SDK. The library needs D3d9.h so at leat the
24     directx 9 sdk is to be used. I used DirectX 10 SDK from August 2009
25     taken directly from the microsoft site.
26     - The SDL 1.3 sources from Subversion
27     - The file Watcom-Win32.zip (now available in Subversion)
28    
29    
30     Building the Library
31     --------------------
32    
33     1) In the SDL base directory extract the archive Watcom-Win32.zip. This
34     creates a subdirectory named 'watcom'.
35     2) The makefile expects the environment variable DXDIR to be set to the
36     base directory of a DirectX SDK. I have tried the August 2009
37     DirectX SDK from Microsoft
38     You can also edit the makefile directly and hard code your path to
39     the SDK on your system.
40     I have this in my setup:
41     set DXDIR=..\dx10
42     3) Enter the watcom directory and run
43     wmake sdl
44     4) All tests from the test directory are working and can be built by
45     running
46     wmake tests
47    
48     Notes:
49    
50     The makefile offers some options to tweak the way the library is built.
51     You have at your disposal the option to build a static (default)
52     library, or a DLL (with tgt=dll). You can also choose whether to build
53     a Release (default) or a Debug version (with build=debug) of the tests
54     and library. Please consult the usage comment at the top of the
55     makefile for usage instructions.
56    
57     If you specify a test target (i.e. 'wmake tests' for all tests, or
58     selected targets like 'wmake testgl testvidinfo testoverlay2'), the
59     tests are always freshly compiled and linked. This is done to
60     minimise hassle when switching between library versions (static vs.
61     DLL), because they require subtly different options.
62     Also, the test executables are put directly into the test directory,
63     so they can find their data files. The clean target of the makefile
64     removes the test executables and the SDL.dll file from the test
65     directory.
66    
67     To use the library in your own projects with Open Watcom, you can use
68     the way the tests are built as base of your own build environment.
69    
70     The library can also be built with the stack calling convention of the
71     compiler (-6s instead of -6r).
72    
73     Test applications
74     -----------------
75     $FixME: which test works ? which one compiles ?
76    
77     I've tried to make all tests work. The following table gives an overview
78     of the current status.
79    
80     Testname Status
81     ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82     checkkeys +
83     graywin +
84     loopwave +
85     testalpha +
86     testbitmap +
87     testdyngl +
88     testerror +
89     testfile +
90     testgamma +
91     testgl +
92     testhread +
93     testiconv - (all failed)
94     testkeys +
95     testlock +
96     testoverlay + (needs 'set SDL_VIDEODRIVER=directx')
97     testoverlay2 + (needs 'set SDL_VIDEODRIVER=directx')
98     testpalette +
99     testplatform +
100     testsem +
101     testsprite +
102     testtimer +
103     testver +
104     testvidinfo +
105     testwin ? (fading doesn't seem right)
106     testwm +
107     torturethread +
108     testcdrom +
109     testjoystick not tested
110     threadwin +
111     testcursor +
112    
113    
114     TODO
115     ----
116    
117     There is room for further improvement:
118     - Test joystick functionality.
119     - Investigate fading issue in 'testwin' test.
120     - Fix the UTF-8 support.
121     - Adapt the makefile/object file list to support more target systems
122     - Use "#pragma aux" syntax for the CPU info functions.
123    
124    
125     Questions and Comments
126     ----------------------
127    
128     Please direct any questions or comments to me:
129    
130     ow_sdl [at] digitalfantasy [dot] it
131    
132     The original porting to the open watcom compiler was made by
133     Marc Peter <mailto:macpete@gmx.de>
134    
135     Happy Coding!
136    
137     Daniele Forghieri
138    
139    

  ViewVC Help
Powered by ViewVC 1.1.22