SDL 1.3 development libraries for MinGW

Seriously guys, what do I need to do to get a working devel. library for MinGW?
Please, someone either tell me exactly how to build that stuff on Windows, or just upload the library somewhere.
It seems the hardest thing in the world, I’m almost going to shoot myself. [Crying or Very sad]

Uh… the download page??
http://www.libsdl.org/download-1.2.php
I see a dev package for mingw32 right there.On Mon, Sep 28, 2009 at 10:51, MindFlyer wrote:

Seriously guys, what do I need to do to get a working devel. library for MinGW?
Please, someone either tell me exactly how to build that stuff on Windows, or just upload the library somewhere.
It seems the hardest thing in the world, I’m almost going to shoot myself.

Hello !

Uh… the download page??
http://www.libsdl.org/download-1.2.php
I see a dev package for mingw32 right there.

Please have a look at the subject, he is looking
for SDL 1.3 development libs, not 1.2.

CU

2009/9/28 MindFlyer

Seriously guys, what do I need to do to get a working devel. library for
MinGW?
Please, someone either tell me exactly how to build that stuff on Windows,
or just upload the library somewhere.
It seems the hardest thing in the world, I’m almost going to shoot myself. [image:
Crying or Very sad]

see here for mingw compatible directx sdk:
http://alleg.sourceforge.net/wip.html

If you can’t figure it out from there, give up.

2009/9/28 Kenneth Bull <@Kenneth_Bull>

2009/9/28 MindFlyer

Seriously guys, what do I need to do to get a working devel. library for
MinGW?
Please, someone either tell me exactly how to build that stuff on Windows,
or just upload the library somewhere.
It seems the hardest thing in the world, I’m almost going to shoot myself.
[image: Crying or Very sad]

see here for mingw compatible directx sdk:
http://alleg.sourceforge.net/wip.html

If you can’t figure it out from there, give up.

also here:

Yes ok, thanks. But that doesn’t look like the devel. library for SDL 1.3.
How is that going to help me?

2009/9/28 MindFlyer :

Yes ok, thanks. But that doesn’t look like the devel. library for SDL 1.3.
How is that going to help me?

mingwdx has makefiles and a build tool. You build the library first.
For the other one, dx80_mgw.zip contains the include files and static
libraries needed.

2009/9/28 Kenneth Bull <@Kenneth_Bull>:

2009/9/28 MindFlyer :

Yes ok, thanks. But that doesn’t look like the devel. library for SDL 1.3.
How is that going to help me?

mingwdx has makefiles and a build tool. ?You build the library first.
For the other one, dx80_mgw.zip contains the include files and static
libraries needed.

use them to build SDL yourself. Any DLL you get from someone else
right now will be out of date within a few hours, so don’t bother.

Crap, yeah, didn’t see that, nevermind.On Mon, Sep 28, 2009 at 11:43, Torsten Giebl wrote:

Hello !

Uh… the download page??
http://www.libsdl.org/download-1.2.php
I see a dev package for mingw32 right there.

Please have a look at the subject, he is looking
for SDL 1.3 development libs, not 1.2.

Ok, so let’s put it this way: I can’t possibly compile SDL and all that stuff on Windows, because I’m too dumb to get makefiles to work, and there’s no possible way for me to deal with them. But I’m perfectly fine with SDL and programming in general, as long as I have the precompiled library. So I won’t give up, if the problem is only getting a bloody library file…

Also, I don’t care if my SDL is outdated, because I just need a version without the nasty mouse bug that 1.2.13 has.

So, let’s modify my initial question: could someone provide the MinGW devel. libraries for SDL 1.2.14?
The source is here: http://www.libsdl.org/tmp/SDL-1.2.zip

Thanks in advance.

It seems that function is not exported by default. I had to take away the comment on line 82 of SDL_config_win32.h


Keep in mind that it’s a development build, so it should have some big bugs.

Ok, so let’s put it this way: I can’t possibly compile SDL and all
that stuff on Windows, because I’m too dumb to get makefiles to
work, and there’s no possible way for me to deal with them. But I’m
perfectly fine with SDL and programming in general, as long as I
have the precompiled library. So I won’t give up, if the problem is
only getting a bloody library file…

Funny thing that I am able to compile SDL 1.3 on Mac with win32 MinGW
cross-compiler without any hassle. So I bet if you have proper MinGW
+MSYS setup on window that shouldn’t be a problem for you either. Just
get to MSYS’s shell (bash) run “./configure –
prefix=where_to_put_the_compiled_SDL” and then “make” and finally
"make install" to install binary build to
where_to_put_the_compiled_SDL (probably you shall point there your
MinGW folder where you got “include” and “lib”.

Unfortunately no clue how to build with Visual Studio (even I got the
license :>)

Regards,–
Adam Strzelecki | nanoant.com

You know, Eclipse has a pretty decent C/C++ development environment; I
bet it wouldn’t be hard to get it set up building Windows binaries for
SDL apps. Dunno about Mac OS X cross-compiling, I don’t remember it
supporting Objective-C at all…On 09-10-02 7:04 AM, Adam Strzelecki wrote:

Funny thing that I am able to compile SDL 1.3 on Mac with win32 MinGW
cross-compiler without any hassle. So I bet if you have proper
MinGW+MSYS setup on window that shouldn’t be a problem for you either.
Just get to MSYS’s shell (bash) run “./configure
–prefix=where_to_put_the_compiled_SDL” and then “make” and finally
"make install" to install binary build to
where_to_put_the_compiled_SDL (probably you shall point there your
MinGW folder where you got “include” and “lib”.

Unfortunately no clue how to build with Visual Studio (even I got the
license :>)

Chris Herborth (@Chris_Herborth) – http://www.pobox.com/~chrish/
Marooned, the survival game! – http://marooned-game.livejournal.com/
Never send a monster to do the work of an evil scientist.

-------------- next part --------------
A non-text attachment was scrubbed…
Name: chrish.vcf
Type: text/x-vcard
Size: 386 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20091002/f3c7a0ff/attachment.vcf

I don’t remember it supporting Objective-C at all…

I meant opposite direction :slight_smile: My target platform was win32 and I did
the compilation on Mac with MinGW win32 cross compiler for Mac. So Obj-
C wasn’t an issue.
So SDL-1.3 should compile as well natively with MinGW running on
Windows as I compile it with cross compiler on Mac.

Cheers,–
Adam Strzelecki | nanoant.com

Ironically it actually builds faster when cross-compiling from the
Mac, because the UNIX build tools are faster running on the Mach
kernel than the NT kernel. :)On Fri, Oct 2, 2009 at 5:34 AM, Adam Strzelecki wrote:

I don’t remember it supporting Objective-C at all…

I meant opposite direction :slight_smile: My target platform was win32 and I did the
compilation on Mac with MinGW win32 cross compiler for Mac. So Obj-C wasn’t
an issue.
So SDL-1.3 should compile as well natively with MinGW running on Windows as
I compile it with cross compiler on Mac.

Cheers,

Adam Strzelecki | nanoant.com


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

I put together a snapshot of SDL, SDL_image, SDL_mixer, and SDL_ttf all
built for SDL 1.3 with support DLLs and some test programs, along with the
relevant mingw32 headers and libraries:
http://www.libsdl.org/tmp/SDL-1.3-mingw32.zip

These were all built cross-compiled from Mac OS X, and tested with Windows
7.

See ya!On Mon, Sep 28, 2009 at 7:51 AM, MindFlyer wrote:

Seriously guys, what do I need to do to get a working devel. library for
MinGW?
Please, someone either tell me exactly how to build that stuff on Windows,
or just upload the library somewhere.
It seems the hardest thing in the world, I’m almost going to shoot myself. [image:
Crying or Very sad]


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

OMG, Sam Lantinga!! You’re the best, really. Thanks a lot for your kindness!!! :o

Sam Lantinga wrote:

I put together a snapshot of SDL, SDL_image, SDL_mixer, and SDL_ttf all built for SDL 1.3 with support DLLs and some test programs, along with the relevant mingw32 headers and libraries:
http://www.libsdl.org/tmp/SDL-1.3-mingw32.zip (http://www.libsdl.org/tmp/SDL-1.3-mingw32.zip)

Ok, wait a second.

Among the lib files I see these:
libSDL.a,
libSDL.dll.a,
libSDLmain.a,
libSDL.la.

What do I need to do, link the first 3 files to my project? And in which order?
Because with SDL 1.2 I had only 2, namely libSDL.dll.a and libSDLmain.a.
And what about libSDL.la, what’s its purpose? Do I need to link that one, too?

Hello !

Among the lib files I see these:
libSDL.a,

libSDL.a is when you want to link with SDL statically,
so you don’t need an external SDL.dll then.

libSDL.dll.a,

libSDL.dll.a is when you want to link with SDL dynamically,
so you need the external SDL.dll then.

libSDLmain.a,

libSDLmain.a is the static lib, that contains the clever or nasty
main macro trick.

libSDL.la.

Is a textfile that contains information about what the name
of the static and dynamic lib is and the paths where libtool has to search
for them.

What do I need to do, link the first 3 files to my project? And in
which order?
Because with SDL 1.2 I had only 2, namely libSDL.dll.a and libSDLmain.a.
And what about libSDL.la, what’s its purpose? Do I need to link that
one, too?

No.

You need to the same things that sdl-config --libs would link to
and in the same way :

First libSDLmain.a and then libSDL.dll.a

I am curious why there is still a libSDLmain.a there,
was not written everywhere that libSDLmain.a would be absolete
with SDL 1.3 ?

CU

Those are a side effect of the mingw32 libtool build process.

Here’s the output of sdl-config --libs:
-lmingw32 -lSDLmain -lSDL -mwindows

… which will link with libSDL.a (which I’ve modified to link to the DLL
instead of statically) and libSDLmain.a

See ya!On Sun, Oct 4, 2009 at 8:10 AM, MindFlyer wrote:

Sam Lantinga wrote:

I put together a snapshot of SDL, SDL_image, SDL_mixer, and SDL_ttf all
built for SDL 1.3 with support DLLs and some test programs, along with the
relevant mingw32 headers and libraries:
http://www.libsdl.org/tmp/SDL-1.3-mingw32.zip

Ok, wait a second.

Among the lib files I see these:
libSDL.a,
libSDL.dll.a,
libSDLmain.a,
libSDL.la.

What do I need to do, link the first 3 files to my project? And in which
order?
Because with SDL 1.2 I had only 2, namely libSDL.dll.a and libSDLmain.a.
And what about libSDL.la, what’s its purpose? Do I need to link that one,
too?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC