Compiling SDL-1.3 on Windows

Hi All,

I’m going to give SDL-1.3 a try on Windows. What should I compile?

Under /src, I think I have to compile all .c files. In the
subdirectories of /src, I also think I have to compile all .c files
plus the .c in the win32 subdirectory.

After that I can just link all object files together to make the .dll.
Is that right?

I’m using MinGW.

Thanks,

Andre

2009/9/24 Andre de Leiradella :

Hi All,

I’m going to give SDL-1.3 a try on Windows. What should I compile?

I have a code::blocks project you can use for this.
See attached.

All the source files you need are listed in there. At the moment
though, it’s configured for VC 8/9, so you’ll need to switch compilers
and adjust the flags.
-------------- next part --------------
A non-text attachment was scrubbed…
Name: SDL.cbp
Type: application/octet-stream
Size: 16675 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20090924/50a1b107/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed…
Name: SDLmain.cbp
Type: application/octet-stream
Size: 1285 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20090924/50a1b107/attachment-0001.obj

Thanks a bunch!

I’m getting the same error I got when trying to compile my own project:

include\SDL_version.h|33|SDL_revision.h: No such file or directory

which causes SDL_REVISION to be undeclared. I guess I’ve grabbed the
files from svn at the wrong time :stuck_out_tongue:

Cheers,

Andre

Kenneth Bull wrote:> 2009/9/24 Andre de Leiradella :

Hi All,

I’m going to give SDL-1.3 a try on Windows. What should I compile?

I have a code::blocks project you can use for this.
See attached.

All the source files you need are listed in there. At the moment
though, it’s configured for VC 8/9, so you’ll need to switch compilers
and adjust the flags.



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

Thanks a bunch!

I’m getting the same error I got when trying to compile my own project:

include\SDL_version.h|33|SDL_revision.h: No such file or directory

which causes SDL_REVISION to be undeclared. I guess I’ve grabbed the
files from svn at the wrong time :stuck_out_tongue:

Cheers,

Andre

Kenneth Bull wrote:

2009/9/24 Andre de Leiradella :

Hi All,

I’m going to give SDL-1.3 a try on Windows. What should I compile?

I have a code::blocks project you can use for this.
See attached.

All the source files you need are listed in there. At the moment
though, it’s configured for VC 8/9, so you’ll need to switch compilers
and adjust the flags.



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

On a second thought, this file is probably automatically generated and SDL_REVISION is defined to be the svn revision number… I’ve created the file with a dummy SDL_REVISION and got a bit further. But now it’s complaining about ddraw.h. I’m not going to download DirectX files to compile SDL. Does anyone have a .dll to share? :slight_smile: Thanks, Andre Andre de Leiradella wrote:

2009/9/24 Andre de Leiradella :

On a second thought, this file is probably automatically generated and
SDL_REVISION is defined to be the svn revision number…

I’ve created the file with a dummy SDL_REVISION and got a bit further. But
now it’s complaining about ddraw.h.

I’m not going to download DirectX files to compile SDL. Does anyone have a
.dll to share? :slight_smile:

Actually, the headers that come with the latest DirectX SDK don’t work
with MinGW (Microsoft did some stupid stuff in there, mainly defining
the same thing two or three times over, which they can get away with
when using their own compiler). There are modified headers available
though for earlier versions of DirectX which will work with MinGW.

Your best bet is to get Visual C++ Express and the Windows 7 and
DirectX SDKs and compile with those (or use linux).

Nah, too much work. I’ll wait for the SDL-1.3 release to get some binaries.

Thanks,

Andre

Kenneth Bull wrote:> 2009/9/24 Andre de Leiradella :

On a second thought, this file is probably automatically generated and
SDL_REVISION is defined to be the svn revision number…

I’ve created the file with a dummy SDL_REVISION and got a bit further. But
now it’s complaining about ddraw.h.

I’m not going to download DirectX files to compile SDL. Does anyone have a
.dll to share? :slight_smile:

Actually, the headers that come with the latest DirectX SDK don’t work
with MinGW (Microsoft did some stupid stuff in there, mainly defining
the same thing two or three times over, which they can get away with
when using their own compiler). There are modified headers available
though for earlier versions of DirectX which will work with MinGW.

Your best bet is to get Visual C++ Express and the Windows 7 and
DirectX SDKs and compile with those (or use linux).


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

Hello !

Actually, the headers that come with the latest DirectX SDK don’t work
with MinGW (Microsoft did some stupid stuff in there, mainly defining
the same thing two or three times over, which they can get away with
when using their own compiler). There are modified headers available
though for earlier versions of DirectX which will work with MinGW.

What version of the SDK does not work with MinGW ?

I am using the DirectX 9.0c SDK together with MinGW for
compiling SDL and it works without problems, but i don’t
actually remember from what date it was ?

CU

2009/9/24 Torsten Giebl :

What version of the SDK does not work with MinGW ?

I am using the DirectX 9.0c SDK together with MinGW for
compiling SDL and it works without problems, but i don’t
actually remember from what date it was ?

I’m using March 2009 I think.