I've made a VS2013EE template for 32-bit SDL2 applications

Hi,

I’ve made a VS2013EE template for 32-bit SDL2 applications, which I’d like to contribute.

How to use:

  1. Create a system environment variable called SDL2_HOME pointing to the folder where you installed SDL2.
  2. Copy the attached ZIP file to Documents\Visual Studio 2013\Templates\ProjectTemplates under your home folder.
  3. Open Visual Studio and click FILE, New Project… The “SDL2 Application” Visual C++ template is now available. Create your project.
  4. The project is all set up, and the small bundled sample program is ready to compile.

The template was made with Visual Studio 2013 Express Edition Update 1 running on Windows 8.1 Pro x64. Since VS2013EE only ships with a x86 SDK, I couldn’t try and make the template x64-compatible.

Regards,

Georger
-------------- next part --------------
A non-text attachment was scrubbed…
Name: SDL2 Application.zip
Type: application/zip
Size: 18586 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20140128/aa74de0d/attachment-0001.zip

Just noticed that people who don’t have the SDL2 DLLs in their PATH environment variable nor in their output folders won’t be able to run the program they just built with the template… So I’ve updated the template to include a Post-Build Event that copies the DLLs from $SDL2_HOME\lib\x86 to the output folder in case they’re not there already.

Changelog:

  • Added a Post-Build Event to the template that copies the DLLs from $SDL2_HOME\lib\x86 to the output folder in case they’re not there already.

Georger
-------------- next part --------------
A non-text attachment was scrubbed…
Name: SDL2 Application.zip
Type: application/zip
Size: 18656 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20140128/2296f531/attachment.zip

Forum readers: should you want to download the template, the ZIP file is available at the mailing list archives [1]. It looks like the forum only mirrors the text from emails sent to the mailing list, but not their attachments.

[1] http://lists.libsdl.org/pipermail/sdl-libsdl.org/2014-January/092926.html

Georger