2009/11/1 Kenneth Bull
2009/11/1 Clear Computers :
being able to type make in cygwin and use something like notepad++ to
edit
source files, like i do on linux isthe main objective, compiling all SDL
stuff on the way.
could cross compile… though that’s also a headache.
finished it! tell me it makes sence!
SET UP A SDL 1.3 DEVELOPMENT ENVIRONMENT WITH WINDOWS IN ABOUT AN HOUR
This guide covers SDL 1.3 only, not any support libraies, if you wish to
make use of other libnraries in the SDL family you are better off using the
absolutley perfect SDL1.2. SDL1.3 is very different from SDL1.2. This is in
no way a technical document all facts are subject to change and error.
Step One - Setup Cygwin ( 10-20 mins depending on time zone and altitude )
Step Two - Get and compile SDL ( 20 - 40 mins depening on fabric of your
socks and wind speed )
Step Three - Get a sauce file editor ( 10 mins - 5 mins if there is a
halogen head lamp to hand )
Step Four - Make and run your SDL code on windows! ( anything up to and
above 47 years depending on beard shape )
Step One - Setup Cygwin
Download Cygwin setup.exe. Run it. It
will ask you where you want to put the root of the system, and where you
download packages from and to. you can delete the downloaded package files
once setup is complete. Next you will be asked what packages to download,
each set of packages has two arrows in a circle next to them, you click this
icon to toggle what is to be downloaded, if you have the time ( a copule of
hours ) and disk space and like faffing around with random crap just toggle
’all’ then click next. The bits we need are in ‘devel’ just toggling that
will take about 20 mins to download and install. You could set the actual
induvidual bits you need. But not now.
Step Two - Get and compile SDL
Double click the shiney new cygwin icon on you loverly windows desktop. A
command prompt window will appear, now type the command below then cross
your fingers, make a cup of tea, do some knitting, whatever. With a bit of
luck SDL 1.3 will compile and install.
svn co http://svn.libsdl.org/trunk/SDL && cd SDL && ./autogen.sh &&
./configure && make && make install && cd …
Step Three - Get a sauce file editor
Download and install this.
It has realivley good C editing facilities.
Step Four - Make and run your SDL code on windows!
Download this,
extract it to your cygwin/home/user directory, then run this command…
cd blahsdl && make
Then, you can run it using the command ( from inside blahsdl directory ),
you may need to copy the SDL.dll from inside the SDL directory to the same
folder.
./sdlblah.exe