Skip to content

Instantly share code, notes, and snippets.

@Velro
Last active August 29, 2015 14:21
Show Gist options
  • Save Velro/83e51f9f312c0588445b to your computer and use it in GitHub Desktop.
Save Velro/83e51f9f312c0588445b to your computer and use it in GitHub Desktop.
Compiling OBBG on Windows Visual Studio Community
tips for compiling OBBG on Visual Studio 2013
Prereq setup
install DirectX SDK https://www.microsoft.com/en-us/download/details.aspx?id=6812
I had to uninstall 2010 redistributables for the SDK install to succeed, sounds like you can reinstall latest version after its done
download SDL source
place is in a folder by your project, I put mine in under the solution folder, alongside the OBBG project, as if it was another project
build SDL and SDL main
follow instructions on Visual Studio building on the SDL webpage http://www.libsdl.org/tmp/SDL/VisualC.html
copy SDL2.dll, SDL2.lib, and SDL2main.lib into project folder of OBBG
Visual Studio setup
I couldn't open the .dsw or .dsp, so I had to start an empty project and add the files
properties->c++->general set SDL checks to no
add 32 and its subfolder 3rd
only need to include stb folder, no tests or caveview
include SDL2 dependencies "include" folder, as per their instructions
c++->linker->input additional dependencies add ;SDL2.lib;SDL2main.lib;opengl32lib;glu32.lib
c++->preprocessor->preprocesssor definitations add ;_CRT_SECURE_NO_WARNINGS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment