The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Howto: build SDL on WinXP
Stefan Monov
Guest

I had some trouble with that so here are my experiences.

* Create a file named SDL_revision.h with content #define SDL_REVISION 0
* Install the DirectX SDK
* add the DirectX-SDK dir in Project->Properties->Configuration
Properties->C/C++->General->Additional Include Directories
* for the new project:
- add the SDL/include dir in the same place
- in Project->Properties->Configuration
Properties->C/C++->Linker->Input->Additional dependencies add:
yourSDLdir\VisualC\SDL\Debug\SDL.lib
yourSDLdir\VisualC\SDLmain\Debug\SDLmain.lib
- remove any old SDL dlls from c:\windows\system32
- add yourSDLdir\VisualC\SDL\Debug\ and
yourSDL_ttfdir\VisualC\Debug\ to the PATH env var
- make sure you #include "stdafx.h"
- make sure main() takes both its arguments, and explicitly
returns 0. (because SDL fakes main() with a macro)
- compile latest freetype, dont use the outdated GnuWin32 binaries.

Maybe this helps someone "Smile
Howto: build SDL on WinXP
Paulo Pinto
Guest

Hi Stefan,

thanks for your contribution.

Maybe you could check if the "Compiling for Windows" section misses some of
your steps and update it
accordingly?

http://www.libsdl.org/cgi/docwiki.cgi/FAQ_Frequently_Asked_Questions

--
Paulo

On Wed, May 13, 2009 at 9:56 AM, Stefan Monov <logixoul at gmail.com> wrote:

Quote:
I had some trouble with that so here are my experiences.

* Create a file named SDL_revision.h with content #define SDL_REVISION 0
* Install the DirectX SDK
* add the DirectX-SDK dir in Project->Properties->Configuration
Properties->C/C++->General->Additional Include Directories
* for the new project:
- add the SDL/include dir in the same place
- in Project->Properties->Configuration
Properties->C/C++->Linker->Input->Additional dependencies add:
yourSDLdir\VisualC\SDL\Debug\SDL.lib
yourSDLdir\VisualC\SDLmain\Debug\SDLmain.lib
- remove any old SDL dlls from c:\windows\system32
- add yourSDLdir\VisualC\SDL\Debug\ and
yourSDL_ttfdir\VisualC\Debug\ to the PATH env var
- make sure you #include "stdafx.h"
- make sure main() takes both its arguments, and explicitly
returns 0. (because SDL fakes main() with a macro)
- compile latest freetype, dont use the outdated GnuWin32
binaries.

Maybe this helps someone "Smile
_______________________________________________
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20090513/7829ff7b/attachment.htm>