OpenGLInsights / OpenGLInsightsCode

Source code for OpenGL Insights
653 stars 229 forks source link

building for Windows 7, Chapter 11 Antialiased Volumetric Lines #5

Open bsabiston opened 11 years ago

bsabiston commented 11 years ago

Hello, I tried to compile the code project for Chapter 11, using Visual Studio Express 2012 on a machine running Windows 7.

I am not super-familiar with openGL on the desktop, nor with Visual Studio -- in fact I just downloaded VS to try to compile this book's project.

I'm getting an error when I try to run it.
Status: Using GLEW 1.7.0 Error, Shader compilation failed for vertex_program :'1':

Vertex shader failed to compile with the following errors: ERROR: 0:1: error<#106> Version number not supported by GL2 ERROR: 0:1 error<#308> Profile is invalid before glsl1.5. ERROR 0:9: error<#279> Invalid layout qualifier 'location' ERROR: 0:10 error<#279> Invalid layout qualifier 'location' WARNING: 0:12: warning<#312> interface block with instance is supported in GLSL 1.5 ERROR: error<#273> 4 compilation errors. No code generated

GPUProgram fullscreen not built! Press any key to continue . . .

I hope someone knows the answer because that sure was a pain to type in by hand. Does Visual Studio let you copy and paste text from the program output, because I could not do it! :)

Thanks Bob