c++ - How to install FreeGlut(3.0.0 or 2.8.0)on OS X Yosemite -


smooth_opengl3.c:123:1: error: unknown type name 'pfnglgenbuffersproc' pfnglgenbuffersproc gl_genbuffers; ^ smooth_opengl3.c:124:1: error: unknown type name 'pfnglbindbufferproc' pfnglbindbufferproc gl_bindbuffer; ^ smooth_opengl3.c:125:1: error: unknown type name 'pfnglbufferdataproc' pfnglbufferdataproc gl_bufferdata; ^ smooth_opengl3.c:126:1: error: unknown type name 'pfnglcreateshaderproc' pfnglcreateshaderproc gl_createshader; ^ smooth_opengl3.c:127:1: error: unknown type name 'pfnglshadersourceproc' pfnglshadersourceproc gl_shadersource; ^ smooth_opengl3.c:128:1: error: unknown type name 'pfnglcompileshaderproc' pfnglcompileshaderproc gl_compileshader; ^ smooth_opengl3.c:129:1: error: unknown type name 'pfnglcreateprogramproc' pfnglcreateprogramproc gl_createprogram; ^ smooth_opengl3.c:130:1: error: unknown type name 'pfnglattachshaderproc' pfnglattachshaderproc gl_attachshader; ^ smooth_opengl3.c:131:1: error: unknown type name 'pfngllinkprogramproc' pfngllinkprogramproc gl_linkprogram; ^ smooth_opengl3.c:132:1: error: unknown type name 'pfngluseprogramproc' pfngluseprogramproc gl_useprogram; ^ smooth_opengl3.c:133:1: error: unknown type name 'pfnglgetshaderivproc' pfnglgetshaderivproc gl_getshaderiv; ^ smooth_opengl3.c:134:1: error: unknown type name 'pfnglgetshaderinfologproc' pfnglgetshaderinfologproc gl_getshaderinfolog; ^ smooth_opengl3.c:135:1: error: unknown type name 'pfnglgetprogramivproc' pfnglgetprogramivproc gl_getprogramiv; ^ smooth_opengl3.c:136:1: error: unknown type name 'pfnglgetprograminfologproc' pfnglgetprograminfologproc gl_getprograminfolog; ^ smooth_opengl3.c:137:1: error: unknown type name 'pfnglgetattriblocationproc' pfnglgetattriblocationproc gl_getattriblocation; ^ smooth_opengl3.c:138:1: error: unknown type name 'pfnglvertexattribpointerproc' pfnglvertexattribpointerproc gl_vertexattribpointer; ^ smooth_opengl3.c:139:1: error: unknown type name       'pfnglenablevertexattribarrayproc' pfnglenablevertexattribarrayproc gl_enablevertexattribarray; ^ smooth_opengl3.c:140:1: error: unknown type name 'pfnglgetuniformlocationproc' pfnglgetuniformlocationproc gl_getuniformlocation; ^ smooth_opengl3.c:141:1: error: unknown type name 'pfngluniformmatrix4fvproc' pfngluniformmatrix4fvproc gl_uniformmatrix4fv; ^ fatal error: many errors emitted, stopping [-ferror-limit=] 20 errors generated. make[4]: *** [smooth_opengl3-smooth_opengl3.o] error 1 make[3]: *** [all-recursive] error 1 make[2]: *** [all-recursive] error 1 make[1]: *** [all-recursive] error 1 make: *** [all] error 2 

in freeglut 3.0.0 there no configure file. received error when compiled free glut (2.8.0) using (env cppflags="-i/opt/x11/include" ldflags="-l/opt/x11/lib" ./configure) guide

a question related not helping is possible build freeglut on mac os x?

you open progs/demos/smooth_opengl3/smooth_opengl3.c , search pfnglgenbuffersproc

now comment out #ifndef gl_version_1_5 , #ifndef gl_version_2_0 clauses. rebuild , errors should gone.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -