Wednesday 15 May 2013

windows - How can I change an OpenGL source code file? -



windows - How can I change an OpenGL source code file? -

i have opengl file called wglew.h downloaded http://glew.sourceforge.net/. using wglew.h downloaded it, receive next error when compiling programme have (i using macosx):

/users/downloads/glew-1.11.0/include/gl/wglew.h:70:10: fatal error:'windows.h' file not found

i trying go source code of file , alter dependency windows.h mac recognize. source code snippet in wglew.h file is:

#if !defined(winapi) # ifndef win32_lean_and_mean # define win32_lean_and_mean 1 # endif #include <windows.h> # undef win32_lean_and_mean #endif

is possible work around windows.h dependency programme not error out @ step? asked similar, not identical question parallel concept at: where can windows.h mac? perhaps instead of looking equivalent windows.h file (if such exists mac), can seek devise more subtle approach of changing source code within wglew.h file programme work , accommodate windows dependency experiencing?

here go again: glew not part of opengl. it's part of opengl. it's 3rd party library.

you don't need glew on macos x !

you're barking wrong tree!

instead of trying prepare glew (which don't have to). prepare programme not utilize glew when beingness compiled macos x.

everywhere in programme find a

#include <glew.h>

or

#include <gl/glew.h>

change it into

#ifndef __apple__ #include <gl/glew.h> #else #include <opengl/gl.h> #endif/*__apple__*/

put occurance glew function called between a

#ifndef __apple__ … #endif/*__apple__*/

block well.

you don't need glew on macos x ! don't utilize there.

windows osx opengl

No comments:

Post a Comment