Need help with compiling irrlicht-1.8.1: COpenGLDriver fails

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Hales
Posts: 2
Joined: Mon Nov 17, 2014 1:11 am
Location: Sydney, Australia
Contact:

Need help with compiling irrlicht-1.8.1: COpenGLDriver fails

Post by Hales »

Output when I try to make irrlicht-1.8.1:

Code: Select all

g++ -Wall -pipe -fno-exceptions -fno-rtti -fstrict-aliasing -g -D_DEBUG -I../../include -Izlib -Ijpeglib -Ilibpng -I/usr/X11R6/include -DIRRLICHT_EXPORTS=1  -c -o COpenGLDriver.o COpenGLDriver.cpp
In file included from COpenGLDriver.h:25:0,
                 from COpenGLDriver.cpp:5:
COpenGLExtensionHandler.h:1236:3: error: ‘PFNGLBLENDEQUATIONPROC’ does not name a type
   PFNGLBLENDEQUATIONPROC pGlBlendEquation;
   ^
COpenGLExtensionHandler.h: In member function ‘void irr::video::COpenGLExtensionHandler::extGlBlendEquation(GLenum)’:
COpenGLExtensionHandler.h:2566:6: error: ‘pGlBlendEquation’ was not declared in this scope
  if (pGlBlendEquation)
      ^
<builtin>: recipe for target 'COpenGLDriver.o' failed
make: *** [COpenGLDriver.o] Error 1
I presume this means that PFNGLBLENDEQUATIONPROC has not been #defined, but I'm not sure. A little bit of googling reveals that the typedef for this was probably removed from gl.h (in mesa) in October of last year:
mesa: remove PFNGLBLENDCOLORPROC, PFNGLBLENDEQUATIONPROC typedefs in gl.h

Fixes error about duplicated typedefs (also in glext.h) reported on
NetBSD 6.1
( http://web.archiveorange.com/archive/v/ ... B5ptzkv9q0 )

The only other place this typedef exists for me is in glew.h (/usr/include/GL/glew.h):

Code: Select all

 GLEW_FUN_EXPORT PFNGLBLENDEQUATIONPROC __glewBlendEquation; 
I'm not sure how to solve this issue, but I've tried a few things:
  • Adding the #define to COpenGLDriver.cpp as a hack
  • #including "GL/glew.h"
Laugh at my naivety, but my efforts have failed.

Am I interpreting this error message correctly? What path should I take to debug it?

Meanwhile: Irrlicht 1.7.3 works perfectly for me but I've hit some issues with the collada (.dae) geom format that I think were solved in 1.8. I'd love to be able to use .b3d or .irrmesh, but the export plugins only exist for blender 2.4 (latest=2.7). Re other formats: UV mapping seems to not be properly exported from blender for .obj, .stl only supports a single raw mesh and the .md* exporters are crashing on me :D

Arch Linux x86_64, mesa 10.3.3, gcc 4.9.2
Contributer to Unvanquished, a non-Irrlicht team-based FPS + RTS . : . unvanquished.net
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Need help with compiling irrlicht-1.8.1: COpenGLDriver f

Post by CuteAlien »

Copy over the glext.h from here: https://sourceforge.net/p/irrlicht/code ... 8/include/
That will work again in Irrlicht 1.8.2 (or you could also copy the one from svn trunk).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Hales
Posts: 2
Joined: Mon Nov 17, 2014 1:11 am
Location: Sydney, Australia
Contact:

Re: Need help with compiling irrlicht-1.8.1: COpenGLDriver f

Post by Hales »

Thanks cutealien. Shenanigans blew away with the svn co.
Contributer to Unvanquished, a non-Irrlicht team-based FPS + RTS . : . unvanquished.net
Post Reply