I tried to compile the default Irrlicht project from Code::Blocks but got the " undefined reference to `glXGetProcAddress' " error. After searching the forum I modified COpenGLDriver.cpp as described in http://irrlicht.sourceforge.net/phpBB2/ ... hp?p=66461.
In the cpp file I replaced :
Code: Select all
#ifdef GLX_VERSION_1_4
#define IRR_OGL_LOAD_EXTENSION glXGetProcAddress
#else
#define IRR_OGL_LOAD_EXTENSION glXGetProcAddressARB
#endif
Code: Select all
#ifndef GLX_ARB_get_proc_address
#define IRR_OGL_LOAD_EXTENSION glXGetProcAddress
#else
#define IRR_OGL_LOAD_EXTENSION glXGetProcAddressARB
#endif
After typing make in the terminal i got the following error :
"COpenGLDriver.cpp:422: error: ‘glXGetProcAddressARB’ was not declared in this scope"
This is line 422 : IRR_OGL_LOAD_EXTENSION(reinterpret_cast<const GLubyte*>("glActiveTextureARB"));
Could someone please help me?
Thanks in advance,
Robert