opentk / rift

Cross-platform Oculus Rift bindings for .Net and Mono
26 stars 9 forks source link

Cannot open include file: 'GL/glext.h': No such file or directory (....OpenTK.Rift\LibOVR\Src\CAPI\GL\CAPI_GL_Util.cpp) (C1083) (OpenTK.Rift) #7

Open Airstriker opened 10 years ago

Airstriker commented 10 years ago

Can I compile rift (0.3.x) using Visual Studio Express 2013 or do I need Proffesional edition ? Also can I compile using Xamarin Studio in Windows ? Anyway, on both of these I'm getting the errors with not found include files #include GL/glext.h etc.

By the way, can I change EOL format to Windows and commit the changes ? It's quite annoying to change them all the time. Will other systems handle Windows EOL format ?

Airstriker commented 10 years ago

Ok, I've tried also the ultimate version of Visual Studio 2013 and still the same errors appear.

Airstriker commented 10 years ago

The solution I've found is the following:

  1. Download glext.h, glcorearb.h, glxext.h, and wglext.h from http://www.opengl.org/registry/
  2. Put the downloaded files to c:\Program Files (x86)\Windows Kits\8.1\Include\um\gl\

Don't know if it's the right solution but at least the compiler doesn't complain anymore. Please confirm.

thefiddler commented 10 years ago

We should probably add all glext headers to the source tree and instruct CMake to use them.

Placing them in the Windows SDK is a valid system-specific workaround.