openglsuperbible / sb7code

Source code and supporting material for the 7th Edition of OpenGL SuperBible
727 stars 251 forks source link

How to build on VS2017 #34

Open ElemarJR opened 6 years ago

ElemarJR commented 6 years ago

I am trying to build the system following the instructions, but it is failing.

I am using Windows 10 and Visual Studio 2017. Are there some up-to-date instructions?

alevonian commented 6 years ago

Hi Elemar,

I was able to just run the latest Cmake GUI and choose the VS2017 build tools. With a little trickery you can even make the 64 bit chain. For that you have to supply some arguments to cmake (also on the GUI command line) something like "host=x64" after having chosen the VS2017.

Good luck.

PhilParisot commented 6 years ago

I would also like a build guide for Windows 10 and VS 2017 please :)

PhilParisot commented 6 years ago

@alevonian can you give more detail on how you used the CMake GUI? Like what to put in for source code? and where the build the binaries etc? Thanks!

PhilParisot commented 6 years ago

@grahamsellers I would really like your input on this. If I figure out how to do this with CMake and VS 2017 I will create a pull request to update HOWTOBUILD.txt

flykule commented 5 years ago

Hello, I have made it work.First, cd to "yourPath\extern\glfw-3.0.4", remove CMakeCache and CMakeFiles. Open powershell and switch to here, type "cmake -G 'Visual Studio 15'".Done and you can keep along with HOWTOBUILD.