Pre-built SDL 2.0 for MinGW?

Normally I’d just build SDL from source, but the problem is that I’m
in a hurry (I need this for tomorrow, no exception - it’s for an
expo) and I’m having issues. I have managed to get SDL building on
MinGW but since I don’t have the DirectX API installed I had to
disable all DirectX support… and now I’m getting 500ms latency in
sound, which is definitely not acceptable. Getting the DirectX API
installed has been a pain every single time I tried (not to mention
finding the adequate archive with the versions I need), and I don’t
have enough time to attempt it again.

So I was wondering: does anybody out there have a pre-built SDL 2.0
for use with MinGW that makes use of DirectX? (or anything with a
decent amount of latency, for that matter) I’d need the .a file and
the DLL. Not really caring about the source code for this.

Thanks in advance :stuck_out_tongue:

2012/11/1 Sik the hedgehog <sik.the.hedgehog at gmail.com>

Normally I’d just build SDL from source, but the problem is that I’m
in a hurry (I need this for tomorrow, no exception - it’s for an
expo) and I’m having issues. I have managed to get SDL building on
MinGW but since I don’t have the DirectX API installed I had to
disable all DirectX support… and now I’m getting 500ms latency in
sound, which is definitely not acceptable. Getting the DirectX API
installed has been a pain every single time I tried (not to mention
finding the adequate archive with the versions I need), and I don’t
have enough time to attempt it again.

So I was wondering: does anybody out there have a pre-built SDL 2.0
for use with MinGW that makes use of DirectX? (or anything with a
decent amount of latency, for that matter) I’d need the .a file and
the DLL. Not really caring about the source code for this.

I usually cross compile SDL2 and family (Mixer, Image, TTF) using Ubuntu
12.04 Mingw64-* and I haven’t installed any DirectX headers that I know of,
everything that’s required ships in the packages, and it works like a charm.–
Gabriel.

Does the temporary build work for you? Sam occasionally puts one here:
http://www.libsdl.org/tmp/SDL-2.0.zip

Jonny DOn Thu, Nov 1, 2012 at 12:12 PM, Gabriel Jacobo wrote:

2012/11/1 Sik the hedgehog <sik.the.hedgehog at gmail.com>

Normally I’d just build SDL from source, but the problem is that I’m
in a hurry (I need this for tomorrow, no exception - it’s for an
expo) and I’m having issues. I have managed to get SDL building on
MinGW but since I don’t have the DirectX API installed I had to
disable all DirectX support… and now I’m getting 500ms latency in
sound, which is definitely not acceptable. Getting the DirectX API
installed has been a pain every single time I tried (not to mention
finding the adequate archive with the versions I need), and I don’t
have enough time to attempt it again.

So I was wondering: does anybody out there have a pre-built SDL 2.0
for use with MinGW that makes use of DirectX? (or anything with a
decent amount of latency, for that matter) I’d need the .a file and
the DLL. Not really caring about the source code for this.

I usually cross compile SDL2 and family (Mixer, Image, TTF) using Ubuntu
12.04 Mingw64-* and I haven’t installed any DirectX headers that I know of,
everything that’s required ships in the packages, and it works like a charm.


Gabriel.


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

2012/11/1 Gabriel Jacobo :

I usually cross compile SDL2 and family (Mixer, Image, TTF) using Ubuntu
12.04 Mingw64-* and I haven’t installed any DirectX headers that I know of,
everything that’s required ships in the packages, and it works like a charm.

Whatever Code::Blocks is using doesn’t have it x_x And no, I don’t
have my cross-compilers set up here yet (downloaded them but I still
have no idea how to use them), I’m building this on the other computer
in my house which has Windows.

The problem strikes in that the only audio driver available to me
seems to be the multimedia API, and that thing has a horrible amount
of latency :confused:

2012/11/1 Jonathan Dearborn :

Does the temporary build work for you? Sam occasionally puts one here:
http://www.libsdl.org/tmp/SDL-2.0.zip

That’s a source-only distribution, pretty much the one I was using :confused:

Ah, that’s too bad. Is there any way to grab the resulting binaries from
the Buildbot? That would be nice.
http://buildbot.libsdl.org/

Jonny DOn Thu, Nov 1, 2012 at 12:23 PM, Sik the hedgehog < sik.the.hedgehog at gmail.com> wrote:

2012/11/1 Gabriel Jacobo :

I usually cross compile SDL2 and family (Mixer, Image, TTF) using Ubuntu
12.04 Mingw64-* and I haven’t installed any DirectX headers that I know
of,
everything that’s required ships in the packages, and it works like a
charm.

Whatever Code::Blocks is using doesn’t have it x_x And no, I don’t
have my cross-compilers set up here yet (downloaded them but I still
have no idea how to use them), I’m building this on the other computer
in my house which has Windows.

The problem strikes in that the only audio driver available to me
seems to be the multimedia API, and that thing has a horrible amount
of latency :confused:

2012/11/1 Jonathan Dearborn <@Jonathan_Dearborn>:

Does the temporary build work for you? Sam occasionally puts one here:
http://www.libsdl.org/tmp/SDL-2.0.zip

That’s a source-only distribution, pretty much the one I was using :confused:


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

I was looking at it. It seems like it’d have been perfect, except
because I can’t seem to find any download links, just logs (not
surprising, I suppose this is just to ensure the library remains
buildable) :confused: Unless I missed something?

2012/11/1 Jonathan Dearborn :> Ah, that’s too bad. Is there any way to grab the resulting binaries from

the Buildbot? That would be nice.
http://buildbot.libsdl.org/

Jonny D

On Thu, Nov 1, 2012 at 12:23 PM, Sik the hedgehog <@Sik_the_hedgehog> wrote:

2012/11/1 Gabriel Jacobo :

I usually cross compile SDL2 and family (Mixer, Image, TTF) using Ubuntu
12.04 Mingw64-* and I haven’t installed any DirectX headers that I know
of,
everything that’s required ships in the packages, and it works like a
charm.

Whatever Code::Blocks is using doesn’t have it x_x And no, I don’t
have my cross-compilers set up here yet (downloaded them but I still
have no idea how to use them), I’m building this on the other computer
in my house which has Windows.

The problem strikes in that the only audio driver available to me
seems to be the multimedia API, and that thing has a horrible amount
of latency :confused:

2012/11/1 Jonathan Dearborn :

Does the temporary build work for you? Sam occasionally puts one here:
http://www.libsdl.org/tmp/SDL-2.0.zip

That’s a source-only distribution, pretty much the one I was using :confused:


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


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

Here you go, I built this yesterday. No warrantees! :slight_smile:
http://www.libsdl.org/tmp/SDL-2.0-mingw32.zipOn Thu, Nov 1, 2012 at 5:52 PM, Sik the hedgehog <sik.the.hedgehog at gmail.com wrote:

I was looking at it. It seems like it’d have been perfect, except
because I can’t seem to find any download links, just logs (not
surprising, I suppose this is just to ensure the library remains
buildable) :confused: Unless I missed something?

2012/11/1 Jonathan Dearborn :

Ah, that’s too bad. Is there any way to grab the resulting binaries from
the Buildbot? That would be nice.
http://buildbot.libsdl.org/

Jonny D

On Thu, Nov 1, 2012 at 12:23 PM, Sik the hedgehog <sik.the.hedgehog at gmail.com> wrote:

2012/11/1 Gabriel Jacobo :

I usually cross compile SDL2 and family (Mixer, Image, TTF) using
Ubuntu

12.04 Mingw64-* and I haven’t installed any DirectX headers that I
know

of,
everything that’s required ships in the packages, and it works like a
charm.

Whatever Code::Blocks is using doesn’t have it x_x And no, I don’t
have my cross-compilers set up here yet (downloaded them but I still
have no idea how to use them), I’m building this on the other computer
in my house which has Windows.

The problem strikes in that the only audio driver available to me
seems to be the multimedia API, and that thing has a horrible amount
of latency :confused:

2012/11/1 Jonathan Dearborn :

Does the temporary build work for you? Sam occasionally puts one
here:

http://www.libsdl.org/tmp/SDL-2.0.zip

That’s a source-only distribution, pretty much the one I was using :confused:


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


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


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

OK, going to take a bath now (timing!) but will tell you later how it
works. Thanks :stuck_out_tongue:

I’d say I’d add you to the “thanks” list in the credits of the game if
it wasn’t because I was going to do it anyway because of SDL itself
and all the changes I’ve been pushing for in the mailing list so far
XD (and the fullscreen shenanigans - uuuuugh)

2012/11/2 Sam Lantinga :> Here you go, I built this yesterday. No warrantees! :slight_smile:

http://www.libsdl.org/tmp/SDL-2.0-mingw32.zip

On Thu, Nov 1, 2012 at 5:52 PM, Sik the hedgehog <@Sik_the_hedgehog> wrote:

I was looking at it. It seems like it’d have been perfect, except
because I can’t seem to find any download links, just logs (not
surprising, I suppose this is just to ensure the library remains
buildable) :confused: Unless I missed something?

2012/11/1 Jonathan Dearborn :

Ah, that’s too bad. Is there any way to grab the resulting binaries
from
the Buildbot? That would be nice.
http://buildbot.libsdl.org/

Jonny D

On Thu, Nov 1, 2012 at 12:23 PM, Sik the hedgehog <@Sik_the_hedgehog> wrote:

2012/11/1 Gabriel Jacobo :

I usually cross compile SDL2 and family (Mixer, Image, TTF) using
Ubuntu
12.04 Mingw64-* and I haven’t installed any DirectX headers that I
know
of,
everything that’s required ships in the packages, and it works like a
charm.

Whatever Code::Blocks is using doesn’t have it x_x And no, I don’t
have my cross-compilers set up here yet (downloaded them but I still
have no idea how to use them), I’m building this on the other computer
in my house which has Windows.

The problem strikes in that the only audio driver available to me
seems to be the multimedia API, and that thing has a horrible amount
of latency :confused:

2012/11/1 Jonathan Dearborn :

Does the temporary build work for you? Sam occasionally puts one
here:
http://www.libsdl.org/tmp/SDL-2.0.zip

That’s a source-only distribution, pretty much the one I was using :confused:


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


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


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


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

Screw that, tried that now. Works fine, thanks :smiley: Nitpicks:

  • SDL_main was missing (just undef’d main, MinGW doesn’t need WinMain)
  • Alt+F4 is not handled o_O;
  • WTF DirectX support takes up that much? My DLL was under 300KB, this
    DLL is almost 4MB

Anyway, thanks, you saved my day XD

2012/11/2 Sik the hedgehog <@Sik_the_hedgehog>:> OK, going to take a bath now (timing!) but will tell you later how it

works. Thanks :stuck_out_tongue:

I’d say I’d add you to the “thanks” list in the credits of the game if
it wasn’t because I was going to do it anyway because of SDL itself
and all the changes I’ve been pushing for in the mailing list so far
XD (and the fullscreen shenanigans - uuuuugh)

2012/11/2 Sam Lantinga :

Here you go, I built this yesterday. No warrantees! :slight_smile:
http://www.libsdl.org/tmp/SDL-2.0-mingw32.zip

On Thu, Nov 1, 2012 at 5:52 PM, Sik the hedgehog <@Sik_the_hedgehog> wrote:

I was looking at it. It seems like it’d have been perfect, except
because I can’t seem to find any download links, just logs (not
surprising, I suppose this is just to ensure the library remains
buildable) :confused: Unless I missed something?

2012/11/1 Jonathan Dearborn :

Ah, that’s too bad. Is there any way to grab the resulting binaries
from
the Buildbot? That would be nice.
http://buildbot.libsdl.org/

Jonny D

On Thu, Nov 1, 2012 at 12:23 PM, Sik the hedgehog <@Sik_the_hedgehog> wrote:

2012/11/1 Gabriel Jacobo :

I usually cross compile SDL2 and family (Mixer, Image, TTF) using
Ubuntu
12.04 Mingw64-* and I haven’t installed any DirectX headers that I
know
of,
everything that’s required ships in the packages, and it works like a
charm.

Whatever Code::Blocks is using doesn’t have it x_x And no, I don’t
have my cross-compilers set up here yet (downloaded them but I still
have no idea how to use them), I’m building this on the other computer
in my house which has Windows.

The problem strikes in that the only audio driver available to me
seems to be the multimedia API, and that thing has a horrible amount
of latency :confused:

2012/11/1 Jonathan Dearborn :

Does the temporary build work for you? Sam occasionally puts one
here:
http://www.libsdl.org/tmp/SDL-2.0.zip

That’s a source-only distribution, pretty much the one I was using :confused:


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


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


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


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

  1. I forgot to include libSDLmain.a which has the WinMain entry point
  2. I don’t remember where this discussion ended. I think the consensus was
    to allow keyboard shortcuts to do their expected behavior on all platforms.
  3. It’s not DirectX, it’s mingw32 debug symbols. I strip those out before
    a real release.

You’re welcome! :)On Thu, Nov 1, 2012 at 8:27 PM, Sik the hedgehog <sik.the.hedgehog at gmail.com wrote:

Screw that, tried that now. Works fine, thanks :smiley: Nitpicks:

  • SDL_main was missing (just undef’d main, MinGW doesn’t need WinMain)
  • Alt+F4 is not handled o_O;
  • WTF DirectX support takes up that much? My DLL was under 300KB, this
    DLL is almost 4MB

Anyway, thanks, you saved my day XD

2012/11/2 Sik the hedgehog <sik.the.hedgehog at gmail.com>:

OK, going to take a bath now (timing!) but will tell you later how it
works. Thanks :stuck_out_tongue:

I’d say I’d add you to the “thanks” list in the credits of the game if
it wasn’t because I was going to do it anyway because of SDL itself
and all the changes I’ve been pushing for in the mailing list so far
XD (and the fullscreen shenanigans - uuuuugh)

2012/11/2 Sam Lantinga <@slouken>:

Here you go, I built this yesterday. No warrantees! :slight_smile:
http://www.libsdl.org/tmp/SDL-2.0-mingw32.zip

On Thu, Nov 1, 2012 at 5:52 PM, Sik the hedgehog <sik.the.hedgehog at gmail.com> wrote:

I was looking at it. It seems like it’d have been perfect, except
because I can’t seem to find any download links, just logs (not
surprising, I suppose this is just to ensure the library remains
buildable) :confused: Unless I missed something?

2012/11/1 Jonathan Dearborn :

Ah, that’s too bad. Is there any way to grab the resulting binaries
from
the Buildbot? That would be nice.
http://buildbot.libsdl.org/

Jonny D

On Thu, Nov 1, 2012 at 12:23 PM, Sik the hedgehog <sik.the.hedgehog at gmail.com> wrote:

2012/11/1 Gabriel Jacobo :

I usually cross compile SDL2 and family (Mixer, Image, TTF) using
Ubuntu
12.04 Mingw64-* and I haven’t installed any DirectX headers that I
know
of,
everything that’s required ships in the packages, and it works
like a

charm.

Whatever Code::Blocks is using doesn’t have it x_x And no, I don’t
have my cross-compilers set up here yet (downloaded them but I still
have no idea how to use them), I’m building this on the other
computer

in my house which has Windows.

The problem strikes in that the only audio driver available to me
seems to be the multimedia API, and that thing has a horrible amount
of latency :confused:

2012/11/1 Jonathan Dearborn :

Does the temporary build work for you? Sam occasionally puts one
here:
http://www.libsdl.org/tmp/SDL-2.0.zip

That’s a source-only distribution, pretty much the one I was using
:confused:


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


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


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


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


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

Whoops at #3, nevermind XD Oh well, still works.

Can somebody else verify the Alt+F4 issue? Alt+F4 works Ubuntu so my
game definitely is processing the quit event properly, unless there’s
some really weird quirk I’m missing out (doubt so, I just set a flag
when I get the event and let the main loop do the rest). If the bug is
real I’ll open a bug report if needed.

Also I’d like to remark I got this in windowed mode, making the
Alt+F4 issue even weirder.

2012/11/2 Sam Lantinga :> 1) I forgot to include libSDLmain.a which has the WinMain entry point

  1. I don’t remember where this discussion ended. I think the consensus was
    to allow keyboard shortcuts to do their expected behavior on all platforms.
  2. It’s not DirectX, it’s mingw32 debug symbols. I strip those out before a
    real release.

You’re welcome! :slight_smile:

On Thu, Nov 1, 2012 at 8:27 PM, Sik the hedgehog <@Sik_the_hedgehog> wrote:

Screw that, tried that now. Works fine, thanks :smiley: Nitpicks:

  • SDL_main was missing (just undef’d main, MinGW doesn’t need WinMain)
  • Alt+F4 is not handled o_O;
  • WTF DirectX support takes up that much? My DLL was under 300KB, this
    DLL is almost 4MB

Anyway, thanks, you saved my day XD

2012/11/2 Sik the hedgehog <@Sik_the_hedgehog>:

OK, going to take a bath now (timing!) but will tell you later how it
works. Thanks :stuck_out_tongue:

I’d say I’d add you to the “thanks” list in the credits of the game if
it wasn’t because I was going to do it anyway because of SDL itself
and all the changes I’ve been pushing for in the mailing list so far
XD (and the fullscreen shenanigans - uuuuugh)

2012/11/2 Sam Lantinga :

Here you go, I built this yesterday. No warrantees! :slight_smile:
http://www.libsdl.org/tmp/SDL-2.0-mingw32.zip

On Thu, Nov 1, 2012 at 5:52 PM, Sik the hedgehog <@Sik_the_hedgehog> wrote:

I was looking at it. It seems like it’d have been perfect, except
because I can’t seem to find any download links, just logs (not
surprising, I suppose this is just to ensure the library remains
buildable) :confused: Unless I missed something?

2012/11/1 Jonathan Dearborn :

Ah, that’s too bad. Is there any way to grab the resulting binaries
from
the Buildbot? That would be nice.
http://buildbot.libsdl.org/

Jonny D

On Thu, Nov 1, 2012 at 12:23 PM, Sik the hedgehog <@Sik_the_hedgehog> wrote:

2012/11/1 Gabriel Jacobo :

I usually cross compile SDL2 and family (Mixer, Image, TTF) using
Ubuntu
12.04 Mingw64-* and I haven’t installed any DirectX headers that
I
know
of,
everything that’s required ships in the packages, and it works
like a
charm.

Whatever Code::Blocks is using doesn’t have it x_x And no, I don’t
have my cross-compilers set up here yet (downloaded them but I
still
have no idea how to use them), I’m building this on the other
computer
in my house which has Windows.

The problem strikes in that the only audio driver available to me
seems to be the multimedia API, and that thing has a horrible
amount
of latency :confused:

2012/11/1 Jonathan Dearborn :

Does the temporary build work for you? Sam occasionally puts one
here:
http://www.libsdl.org/tmp/SDL-2.0.zip

That’s a source-only distribution, pretty much the one I was using
:confused:


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


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


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


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


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


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

Are you grabbing input? At least on X11 that still grabs all keyboard input.

I don’t think any explicit handling of shortcuts has been written yet,
so this could be a side effect of that.

Cheers,
– DavidOn 02/11/12 12:19, Sik the hedgehog wrote:

Whoops at #3, nevermind XD Oh well, still works.

Can somebody else verify the Alt+F4 issue? Alt+F4 works Ubuntu so my
game definitely is processing the quit event properly, unless there’s
some really weird quirk I’m missing out (doubt so, I just set a flag
when I get the event and let the main loop do the rest). If the bug is
real I’ll open a bug report if needed.

Also I’d like to remark I got this in windowed mode, making the
Alt+F4 issue even weirder.

2012/11/2 Sam Lantinga :

  1. I forgot to include libSDLmain.a which has the WinMain entry point
  2. I don’t remember where this discussion ended. I think the consensus was
    to allow keyboard shortcuts to do their expected behavior on all platforms.
  3. It’s not DirectX, it’s mingw32 debug symbols. I strip those out before a
    real release.

You’re welcome! :slight_smile:

On Thu, Nov 1, 2012 at 8:27 PM, Sik the hedgehog <sik.the.hedgehog at gmail.com> wrote:

Screw that, tried that now. Works fine, thanks :smiley: Nitpicks:

  • SDL_main was missing (just undef’d main, MinGW doesn’t need WinMain)
  • Alt+F4 is not handled o_O;
  • WTF DirectX support takes up that much? My DLL was under 300KB, this
    DLL is almost 4MB

Anyway, thanks, you saved my day XD

2012/11/2 Sik the hedgehog <sik.the.hedgehog at gmail.com>:

OK, going to take a bath now (timing!) but will tell you later how it
works. Thanks :stuck_out_tongue:

I’d say I’d add you to the “thanks” list in the credits of the game if
it wasn’t because I was going to do it anyway because of SDL itself
and all the changes I’ve been pushing for in the mailing list so far
XD (and the fullscreen shenanigans - uuuuugh)

2012/11/2 Sam Lantinga :

Here you go, I built this yesterday. No warrantees! :slight_smile:
http://www.libsdl.org/tmp/SDL-2.0-mingw32.zip

On Thu, Nov 1, 2012 at 5:52 PM, Sik the hedgehog <sik.the.hedgehog at gmail.com> wrote:

I was looking at it. It seems like it’d have been perfect, except
because I can’t seem to find any download links, just logs (not
surprising, I suppose this is just to ensure the library remains
buildable) :confused: Unless I missed something?

2012/11/1 Jonathan Dearborn :

Ah, that’s too bad. Is there any way to grab the resulting binaries
from
the Buildbot? That would be nice.
http://buildbot.libsdl.org/

Jonny D

On Thu, Nov 1, 2012 at 12:23 PM, Sik the hedgehog <sik.the.hedgehog at gmail.com> wrote:

2012/11/1 Gabriel Jacobo :

I usually cross compile SDL2 and family (Mixer, Image, TTF) using
Ubuntu
12.04 Mingw64-* and I haven’t installed any DirectX headers that
I
know
of,
everything that’s required ships in the packages, and it works
like a
charm.

Whatever Code::Blocks is using doesn’t have it x_x And no, I don’t
have my cross-compilers set up here yet (downloaded them but I
still
have no idea how to use them), I’m building this on the other
computer
in my house which has Windows.

The problem strikes in that the only audio driver available to me
seems to be the multimedia API, and that thing has a horrible
amount
of latency :confused:

2012/11/1 Jonathan Dearborn :

Does the temporary build work for you? Sam occasionally puts one
here:
http://www.libsdl.org/tmp/SDL-2.0.zip

That’s a source-only distribution, pretty much the one I was using
:confused:


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


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


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


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


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


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


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

To clarify, the discussion was that Alt-F4 should to the expected thing,
but that hasn’t been implemented yet. That’s on my TODO list when I revisit
mouse and keyboard grab.On Thu, Nov 1, 2012 at 9:19 PM, Sik the hedgehog <sik.the.hedgehog at gmail.com wrote:

Whoops at #3, nevermind XD Oh well, still works.

Can somebody else verify the Alt+F4 issue? Alt+F4 works Ubuntu so my
game definitely is processing the quit event properly, unless there’s
some really weird quirk I’m missing out (doubt so, I just set a flag
when I get the event and let the main loop do the rest). If the bug is
real I’ll open a bug report if needed.

Also I’d like to remark I got this in windowed mode, making the
Alt+F4 issue even weirder.

2012/11/2 Sam Lantinga <@slouken>:

  1. I forgot to include libSDLmain.a which has the WinMain entry point
  2. I don’t remember where this discussion ended. I think the consensus
    was
    to allow keyboard shortcuts to do their expected behavior on all
    platforms.
  3. It’s not DirectX, it’s mingw32 debug symbols. I strip those out
    before a
    real release.

You’re welcome! :slight_smile:

On Thu, Nov 1, 2012 at 8:27 PM, Sik the hedgehog <sik.the.hedgehog at gmail.com> wrote:

Screw that, tried that now. Works fine, thanks :smiley: Nitpicks:

  • SDL_main was missing (just undef’d main, MinGW doesn’t need WinMain)
  • Alt+F4 is not handled o_O;
  • WTF DirectX support takes up that much? My DLL was under 300KB, this
    DLL is almost 4MB

Anyway, thanks, you saved my day XD

2012/11/2 Sik the hedgehog <sik.the.hedgehog at gmail.com>:

OK, going to take a bath now (timing!) but will tell you later how it
works. Thanks :stuck_out_tongue:

I’d say I’d add you to the “thanks” list in the credits of the game if
it wasn’t because I was going to do it anyway because of SDL itself
and all the changes I’ve been pushing for in the mailing list so far
XD (and the fullscreen shenanigans - uuuuugh)

2012/11/2 Sam Lantinga <@slouken>:

Here you go, I built this yesterday. No warrantees! :slight_smile:
http://www.libsdl.org/tmp/SDL-2.0-mingw32.zip

On Thu, Nov 1, 2012 at 5:52 PM, Sik the hedgehog <sik.the.hedgehog at gmail.com> wrote:

I was looking at it. It seems like it’d have been perfect, except
because I can’t seem to find any download links, just logs (not
surprising, I suppose this is just to ensure the library remains
buildable) :confused: Unless I missed something?

2012/11/1 Jonathan Dearborn :

Ah, that’s too bad. Is there any way to grab the resulting
binaries

from
the Buildbot? That would be nice.
http://buildbot.libsdl.org/

Jonny D

On Thu, Nov 1, 2012 at 12:23 PM, Sik the hedgehog <sik.the.hedgehog at gmail.com> wrote:

2012/11/1 Gabriel Jacobo :

I usually cross compile SDL2 and family (Mixer, Image, TTF)
using

Ubuntu
12.04 Mingw64-* and I haven’t installed any DirectX headers
that

I
know
of,
everything that’s required ships in the packages, and it works
like a
charm.

Whatever Code::Blocks is using doesn’t have it x_x And no, I
don’t

have my cross-compilers set up here yet (downloaded them but I
still
have no idea how to use them), I’m building this on the other
computer
in my house which has Windows.

The problem strikes in that the only audio driver available to me
seems to be the multimedia API, and that thing has a horrible
amount
of latency :confused:

2012/11/1 Jonathan Dearborn :

Does the temporary build work for you? Sam occasionally puts
one

here:
http://www.libsdl.org/tmp/SDL-2.0.zip

That’s a source-only distribution, pretty much the one I was
using

:confused:


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


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


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


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


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


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


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