SDL Image

Could someone explain how you compile the sdl_image.dll for
Windows using mingw32 as a cross-compiler under linux ?

Imran

Imran Ghory wrote:

Could someone explain how you compile the sdl_image.dll for
Windows using mingw32 as a cross-compiler under linux ?

Imran

Get the “cross-configure.sh” and “cross-make.sh” scripts from
http://www.libsdl.org/Xmingw32 then build and install SDL first:

cd SDL
cross-configure.sh
cross-make.sh
cross-make.sh install

The install will make the headers and import libraries available for
cross compiling.

Get and install the various image format libraries. The site has jpeg,
libpng, and zlib as binaries, I believe. Put them in the cross compiler
directories.

Then you can do the same cross configure/make process for SDL_image.

It also works for SDL_mixer and SDL_ttf (if you get the freetype lib).

-Ray

Hi all,

I’m new to this mailing list, but have followed SDL development for
one year now. So, forgive me if I’m talking here about something
already known.

I’ve just converted a glut application I did a long time ago to SDL,
and it works pretty well, except one thing: it crashes when exiting.
For now, I’ve only tested it under Windows with VC++ 6.0, using SDL
1.1.7 (I have a Matrox G400 card with latest certified drivers). I
used (as a base) the sample code from “OpenGL Intro” page on SDL web
site (lesson02.c).

I noted that the problem appears also with most (but not all) of the
example on that page. More strange: I’ve also tested my application
with sgi software OpenGL driver and the problem doesn’t occur.
The question is: is it a known bug if 1.1.7 or of the sample code?
(it shouldn’t be a problem of my Matrox GL drivers as my glut
application and all other GL application run without problem).

If you need more information, let me know.

Now, another question:
What is the state of the IRIX version of SDL (as it’s not very clear
on SDL main page) ? Next month I’ll start a new OpenGL project (for
my end of study thesis) which needs to run (at least) under
Linux/Windows (on sgi Workstation) and IRIX (on an sgi O2), and I’ll
have to choose a good library for doing that. It’s clear SDL is a lot
better than glut for what I need, but I’d like to know if the IRIX
version of SDL works as well as the Linux one (escpecially since I
won’t have access to that O2 when I’ll start the project, so I won’t
be able to do some tests before choosing the right library).

Regards,

Thierry-----
Doom Legacy OpenGL coder.
http://legacy.newdoom.com

Hi again,

Oh sorry, I put the flag SDL_FULLSCREEN when setting the video mode
and it doesn’t crash with that at exit. A problem linked to windowed
mode then?

Thierry> Hi all,

I’m new to this mailing list, but have followed SDL development for
one year now. So, forgive me if I’m talking here about something
already known.

I’ve just converted a glut application I did a long time ago to SDL,
and it works pretty well, except one thing: it crashes when exiting.
For now, I’ve only tested it under Windows with VC++ 6.0, using SDL
1.1.7 (I have a Matrox G400 card with latest certified drivers). I
used (as a base) the sample code from “OpenGL Intro” page on SDL web
site (lesson02.c).

I noted that the problem appears also with most (but not all) of the
example on that page. More strange: I’ve also tested my application
with sgi software OpenGL driver and the problem doesn’t occur.
The question is: is it a known bug if 1.1.7 or of the sample code?
(it shouldn’t be a problem of my Matrox GL drivers as my glut
application and all other GL application run without problem).

If you need more information, let me know.

Now, another question:
What is the state of the IRIX version of SDL (as it’s not very clear
on SDL main page) ? Next month I’ll start a new OpenGL project (for
my end of study thesis) which needs to run (at least) under
Linux/Windows (on sgi Workstation) and IRIX (on an sgi O2), and I’ll
have to choose a good library for doing that. It’s clear SDL is a lot
better than glut for what I need, but I’d like to know if the IRIX
version of SDL works as well as the Linux one (escpecially since I
won’t have access to that O2 when I’ll start the project, so I won’t
be able to do some tests before choosing the right library).

Regards,

Thierry


Doom Legacy OpenGL coder.
http://legacy.newdoom.com


Doom Legacy OpenGL coder.
http://legacy.newdoom.com

Hi Ray,

Get the “cross-configure.sh” and “cross-make.sh” scripts from
http://www.libsdl.org/Xmingw32 then build and install SDL first:
[…]
Then you can do the same cross configure/make process for SDL_image.
It also works for SDL_mixer and SDL_ttf (if you get the freetype lib).

I never had any problems with cross-compiling the various SDL
extra libraries, but since SDL_mixer-1.1.0, I get a SDL_mixer.dll
which does not work with Windows (doesn’t start; error 0xc0000005).

No errors when cross-compiling, only when starting the program under
Windows. The bug must be in compiling the DLL, because when I replace
it with a prebuilt version by Pete Shinners, it works.

It works fine with the previous version SDL_mixer-1.0.6, with the
difference that it does not produce a DLL, but a static library.

Any idea what might have gone wrong?

Kind regards,
Holger–
holger.schemel at mediaways.net … ++49 +5241 80 1438

Mon, 15 Jan 2001 Thierry Van Elsuwe wrote:

Hi again,

Oh sorry, I put the flag SDL_FULLSCREEN when setting the video mode
and it doesn’t crash with that at exit. A problem linked to windowed
mode then?

Hmm… On Linux/X, that doesn’t make a difference.

Either SDL is doing some things differently in windowed and fullscreen on
Windows, while it doesn’t make much difference under X - or we’re looking at
two separate problems, after all.

//David

…- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------> http://www.linuxaudiodev.com/maia -' ..- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |--------------------------------------> david at linuxdj.com -’

Sun, 14 Jan 2001 Thierry Van Elsuwe wrote:

Hi all,

I’m new to this mailing list, but have followed SDL development for
one year now. So, forgive me if I’m talking here about something
already known.

I’ve just converted a glut application I did a long time ago to SDL,
and it works pretty well, except one thing: it crashes when exiting.

I get this as well. System:

SDL 1.1.5+ (including the first pre-1.1.8 snapshot)
Intel P-III 933
Matrox G400 DH MAX 32MB
Linux 2.4.0-test10/lowlatency
XFree86 3.3.6
Utah-GLX 0.10 pre1

It doesn’t happen on the machine I’m at now, which is a P-II 400 with a Mach64
Rage Pro card, and the same X server and GLX driver versions.

Also, it never happens on the 933/G400 with code that doesn’t use SDL to set up
OpenGL. For example, Quake III Arena gets away with using X and GLX directly,
and hasn’t generated a single crash, freeze, coredump or any other problem on
my machine, ever.

(Q3A does seem to magically reduce the time available for hacking, though! Is
that a known bug or something?)

For now, I’ve only tested it under Windows with VC++ 6.0, using SDL
1.1.7 (I have a Matrox G400 card with latest certified drivers). I
used (as a base) the sample code from “OpenGL Intro” page on SDL web
site (lesson02.c).

Windows!? Uh oh… (Haven’t gotten around to do a cross compile yet. Would
be interesting to see if I get the same problem there.)

I noted that the problem appears also with most (but not all) of the
example on that page.

Anything that uses OpenGL initialized by SDL, to be more accurate. That’s what
I get, at least.

More strange: I’ve also tested my application
with sgi software OpenGL driver and the problem doesn’t occur.

Probably the same reason why it works with the Rage Pro on this machine -
something that only some drivers do causes trouble somewhere on the way
between, or inside OpenGL and/or SDL.

The question is: is it a known bug if 1.1.7 or of the sample code?

Doesn’t seem to be just 1.1.7 in my experience. I’ve had it since 1.1.5 or
something.

(it shouldn’t be a problem of my Matrox GL drivers as my glut
application and all other GL application run without problem).

Well, it could theoretically be a driver problem that is only exposed by
SDL. That is, it doesn’t have to be an SDL problem that’s exposed only by
certain OpenGL drivers.

If you need more information, let me know.

Well, it seems that I can repeat the problem on my machine at home. (Or rather,
I can’t avoid doing just that! heh) I’ve given the debugger a quick try,
but I didn’t get anything useful. (IIRC, the stack trace wasn’t too enlighting;
the problem might be somewhere else, screwing up some data somewhere which in
turn causes the actual crash…)

Will try again, perhaps tonight.

Now, another question:
What is the state of the IRIX version of SDL (as it’s not very clear
on SDL main page) ?

Don’t know much about that platform, sorry.

//David

…- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------> http://www.linuxaudiodev.com/maia -' ..- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |--------------------------------------> david at linuxdj.com -’

Holger Schemel wrote:

I never had any problems with cross-compiling the various SDL
extra libraries, but since SDL_mixer-1.1.0, I get a SDL_mixer.dll
which does not work with Windows (doesn’t start; error 0xc0000005).

No errors when cross-compiling, only when starting the program under
Windows. The bug must be in compiling the DLL, because when I replace
it with a prebuilt version by Pete Shinners, it works.

It works fine with the previous version SDL_mixer-1.0.6, with the
difference that it does not produce a DLL, but a static library.

my first guess is that it might be a bug in SDL_mixer, in the form
of a race condition with the thread that mixer starts.

I won’t have a chance to try it myself until this weekend. Maybe Sam
will fix it before then :slight_smile:

If not I’ll take a look.

-Ray

I think this came up before. The dll gets stripped
even though it shouldn’t.

Check the “SDL_mixer IS being stripped” thread
about a month ago.

Cheers,
Frank.

Holger Schemel wrote:

…>

I never had any problems with cross-compiling the various SDL
extra libraries, but since SDL_mixer-1.1.0, I get a SDL_mixer.dll
which does not work with Windows (doesn’t start; error 0xc0000005).

No errors when cross-compiling, only when starting the program under
Windows. The bug must be in compiling the DLL, because when I replace
it with a prebuilt version by Pete Shinners, it works.

It works fine with the previous version SDL_mixer-1.0.6, with the
difference that it does not produce a DLL, but a static library.

Any idea what might have gone wrong?

Kind regards,
Holger

holger.schemel at mediaways.net … ++49 +5241 80 1438

I think this came up before. The dll gets stripped
even though it shouldn’t.

This should be fixed in SDL_mixer CVS.

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Hi again,

Oh sorry, I put the flag SDL_FULLSCREEN when setting the video mode
and it doesn’t crash with that at exit. A problem linked to windowed
mode then?

Very possibly. A binary and test code would help.

Thanks!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

I’ve just converted a glut application I did a long time ago to SDL,
and it works pretty well, except one thing: it crashes when exiting.
For now, I’ve only tested it under Windows with VC++ 6.0, using SDL
1.1.7 (I have a Matrox G400 card with latest certified drivers). I
used (as a base) the sample code from “OpenGL Intro” page on SDL web
site (lesson02.c).

Can you send me a binary to test on my Matrox system? @slouken

What is the state of the IRIX version of SDL (as it’s not very clear
on SDL main page) ?

It should be very good, as of SDL 1.1.7

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

[Win32 cross-compiled SDL_mixer.dll 1.1.0 not working]

Sam Lantinga wrote:

I think this came up before. The dll gets stripped
even though it shouldn’t.

This should be fixed in SDL_mixer CVS.

Yep! Just checked out the current SDL_mixer from CVS,
cross-compiled it and it works fine now under Windows!

Thanks!
Holger–
holger.schemel at mediaways.net

This should be fixed in SDL_mixer CVS.

Yep! Just checked out the current SDL_mixer from CVS,
cross-compiled it and it works fine now under Windows!

Great!

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software