Installing SDL on Windows

Hi,

I would like to start developing on my Windows machine with MinGW/SDL/OpenGL. I
have somehow gotten MinGW to work. But am stuck trying to get the SDL to install.

I have downloaded the zip, and unpacked it. I then try and run “make native” and
it says…

$ make native
make install prefix=/usr
make[1]: Entering directory /c/SDL-1.2.8' make[1]:install’ is up to date.
make[1]: Leaving directory `/c/SDL-1.2.8’

…as if nothing has happened. There is no configure file either.

Looking around I did find a configure file in SDL-1.2.8/test so I ran that and
it seemed like I was in luck until I got this…

*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
configure: error: *** SDL version 1.2.7 not found

I looked around and couldn’t find a sdl-config script. But in SDL-1.2.8/bin I
found this, i386-mingw32msvc-sdl-config.

So I tried adding SDL-1.2.8/bin to my Path by doing the following:
-My Computer > Properties > Advanced > Environment Variables

Then I tried adding c:\SDL-1.2.8\bin to Path but I got the same error
(sdl-config could not be found)

Then I tried adding a SDL_CONFIG variable and set it to
c:\SDL-1.2.8\bin\i386-mingw32msvc-sdl-config

Still no dice :frowning:

Please… any help on getting this going would be appreciated. I have scoured
the web for an answer and have found nothing.

-Billy

Still no dice :frowning:

Please… any help on getting this going would be appreciated. I have scoured
the web for an answer and have found nothing.

-Billy

I managed to find SDL-1.2.7 and some instructions to install that. I would like
to try and install 1.2.8 again but need to uninstall 1.2.7. I tried “make
distclean” but no dice. How does one go about uninstalling SDL? -billy

[…]

How does one go about uninstalling SDL?

It should just be the standard approach; with a properly configured
tree:

make uninstall

//David Olofson - Programmer, Composer, Open Source Advocate

.- Audiality -----------------------------------------------.
| Free/Open Source audio engine for games and multimedia. |
| MIDI, modular synthesis, real time effects, scripting,… |
`-----------------------------------> http://audiality.org -’
http://olofson.nethttp://www.reologica.se —On Monday 21 March 2005 11.52, Billy wrote:

Billy <bill_v_cheung hotmail.com> writes:

Hi,

I would like to start developing on my Windows machine with MinGW/SDL/OpenGL.
I have somehow gotten MinGW to work. But am stuck trying to get the SDL to
install.

accept a piece of advice from me, which is not a solution to your specific
problem but rather a way to bypass it, with many other:

switch to Dev-C++,
( http://www.bloodshed.net/devcpp.html )
a free Integrated Developer Environment for C and C++ that realy cute and well
done, and is provided with a wonderful “package downlaoder and manager” that
makes it so easy to download and properly install any common library, including
SDL (and all its little brothers like SDL_Image etc).

Once you go Dev-C++, you never go back.

Marco

Hey Marco,

I did dev-C++ first and then switched to mingw/msys and am loving it.

you cant do ./configure on mingw/msys or ./make or anything like that like
you would in a bash terminal.

i highly recomend mingw/msys to everyone> ----- Original Message -----

From: tarini@isti.cnr.it (Marco Tarini)
To:
Sent: Monday, March 21, 2005 7:10 PM
Subject: [SDL] Re: Installing SDL on Windows

Billy <bill_v_cheung hotmail.com> writes:

Hi,

I would like to start developing on my Windows machine with
MinGW/SDL/OpenGL.

I have somehow gotten MinGW to work. But am stuck trying to get the SDL
to

install.

accept a piece of advice from me, which is not a solution to your specific
problem but rather a way to bypass it, with many other:

switch to Dev-C++,
( http://www.bloodshed.net/devcpp.html )
a free Integrated Developer Environment for C and C++ that realy cute and
well
done, and is provided with a wonderful "package downlaoder and manager"
that
makes it so easy to download and properly install any common library,
including
SDL (and all its little brothers like SDL_Image etc).

Once you go Dev-C++, you never go back.

Marco


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

oops, should read " you cant do ./configure in dev-C++ or ./make or anything
like that like you would in a bash terminal."

if you want a way in windows to program so that you can easily port to
unixes and possibly mac (havent tried it there), mingw/msys is the way to
go, its virtualy the same> ----- Original Message -----

From: @atrix2 (atrix2)
To: "A list for developers using the SDL library. (includesSDL-announce)"

Sent: Monday, March 21, 2005 8:26 PM
Subject: Re: [SDL] Re: Installing SDL on Windows

Hey Marco,

I did dev-C++ first and then switched to mingw/msys and am loving it.

you cant do ./configure on mingw/msys or ./make or anything like that like
you would in a bash terminal.

i highly recomend mingw/msys to everyone

----- Original Message -----
From: “Marco Tarini”
To:
Sent: Monday, March 21, 2005 7:10 PM
Subject: [SDL] Re: Installing SDL on Windows

Billy <bill_v_cheung hotmail.com> writes:

Hi,

I would like to start developing on my Windows machine with
MinGW/SDL/OpenGL.

I have somehow gotten MinGW to work. But am stuck trying to get the
SDL
to

install.

accept a piece of advice from me, which is not a solution to your
specific

problem but rather a way to bypass it, with many other:

switch to Dev-C++,
( http://www.bloodshed.net/devcpp.html )
a free Integrated Developer Environment for C and C++ that realy cute
and
well

done, and is provided with a wonderful "package downlaoder and manager"
that
makes it so easy to download and properly install any common library,
including
SDL (and all its little brothers like SDL_Image etc).

Once you go Dev-C++, you never go back.

Marco


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Alan Wolfe wrote:

you cant do ./configure in dev-C++ or ./make or anything
like that like you would in a bash terminal.

if you want a way in windows to program so that you can easily port to
unixes and possibly mac (havent tried it there), mingw/msys is the way to
go, its virtualy the same

Alan: yes, you have a good point here

using mingw/mysys makes portable not only the project itself -code and
data-, but also the packaging. ((As for me, I anyway make my packaging
by hand in a system dependent way: for windows I use Inno to make a nice
installer, end-users find it easier, while for linux I make the usual
tarball - starting from the makefile that Dev-C++ generates, and hoping
that it will work on a Mac as well))

Still, Dev-c++ is a lot more user friendly, as the problems Billy’s
experiecnting go to show.

They are both very valid alternatives, for different reasons. At the
point - and on the platform - Billy is, I would still suggest switching
to dev-c++ (and not only for how easy it makes library install, is it
that it is really a nice env).

Marco