Last active
August 29, 2015 14:21
-
-
Save Velro/83e51f9f312c0588445b to your computer and use it in GitHub Desktop.
Compiling OBBG on Windows Visual Studio Community
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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