MinGW with SDL

Am trying to using MinGW with SDL.

Does anyone know any good sites or instructions or guides on getting this
working?

Hi Andrew,

What exactly do you mean by “using MinGW with SDL”? I assume that your
MinGW cross-compiler is set up already? If so, just go ahead and compile
SDL as usual (run configure providing --host and --build).

Cheers,
Oliver

Andrew Wan wrote:> Am trying to using MinGW with SDL.

Does anyone know any good sites or instructions or guides on getting this
working?


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

Am trying to using MinGW with SDL.

Does anyone know any good sites or instructions or guides
on getting this
working?

First things first, are you using any particular IDE and if so which version? There’s a minor issue with Code::Blocks 8.02 but I can’t say if this has been fixed in the daily releases (probably).— On Fri, 10/17/08, Andrew Wan <andrew_wan1980 at hotmail.com> wrote:

From: Andrew Wan <andrew_wan1980 at hotmail.com>
Subject: [SDL] MinGW with SDL
To: sdl at libsdl.org
Date: Friday, October 17, 2008, 12:25 PM


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Hello,

What operating system? I use MinGW on Linux:

  1. Install MinGW:
    aptitude install mingw32

  2. Download SDL libs, copy includes to:
    /usr/i586-mingw32msvc/include/SDL/
    copy dlls to your program directory

  3. Write Makefile with flags:
    CC=i586-mingw32msvc-g++
    CFLAGS= -D_REENTRANT -Dmain=SDL_main
    LIBS= -L/home/dedek/projekty/krosy/sdl1.2.13/libs -lmingw32 -lSDLmain -lSDL -lSDL_mixer -lSDL_image -lSDL_ttf -mwindows
    #LIBS= -L/home/dedek/projekty/krosy/sdl1.2.13/libs -lmingw32 -lSDLmain -lSDL -lSDL_mixer -lSDL_image -lSDL_ttf -mwindows -mconsole

I don’t know if _REENTRANT is needed, probably not for Windows. Hashed LIBS is
for debug version (with console).

Friday 17 of October 2008 12:25:29 Andrew Wan napisa?(a):> Am trying to using MinGW with SDL.

Does anyone know any good sites or instructions or guides on getting this
working?


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


Pozdrawiam,
Dominik Dagiel
@Dominik_Dagiel
tel. 695-534-932
www.dagiel.pl

Aren’t most MinGW users on Windows? Anyhow, here’s an article I wrote about MinGW on Windows and GCC on Debian GNU/Linux:
http://pubpages.unh.edu/~jmb97/tutorials/installSDL.html

I hope it helps,
Jonny D----------------------------------------

To: sdl at libsdl.org
From: andrew_wan1980 at hotmail.com
Date: Fri, 17 Oct 2008 12:25:29 +0000
Subject: [SDL] MinGW with SDL

Am trying to using MinGW with SDL.

Does anyone know any good sites or instructions or guides on getting this
working?


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


Store, manage and share up to 5GB with Windows Live SkyDrive.
http://skydrive.live.com/welcome.aspx?provision=1?ocid=TXT_TAGLM_WL_skydrive_102008

here is an article i recently wrote about this subject, maybe it could
help you :
http://gosual.com/blog/2008/09/05/makefile-for-cross-platform-sdl-game-using-mingw/

2008/10/17 Jonathan Dearborn :>

Aren’t most MinGW users on Windows? Anyhow, here’s an article I wrote about MinGW on Windows and GCC on Debian GNU/Linux:
http://pubpages.unh.edu/~jmb97/tutorials/installSDL.html

I hope it helps,
Jonny D


To: sdl at libsdl.org
From: andrew_wan1980 at hotmail.com
Date: Fri, 17 Oct 2008 12:25:29 +0000
Subject: [SDL] MinGW with SDL

Am trying to using MinGW with SDL.

Does anyone know any good sites or instructions or guides on getting this
working?


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


Store, manage and share up to 5GB with Windows Live SkyDrive.
http://skydrive.live.com/welcome.aspx?provision=1?ocid=TXT_TAGLM_WL_skydrive_102008


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


Quentin Grimaud