Well, both ways are ugly, if I may say so.
The first disables OpenGL extensions. Not good. Use it only as a last resort...
The second requires a lot of search & replace from the user. Not good either.
In these situations, it is more comfortable to use a quick'n'dirty hack to get the job done.
Here it goes:
1) Edit source/Irrlicht/Makefile
2) Find the line that starts with CXXINCS:
Code: Select all
CXXINCS = -I"include/" -I"zlib/"
Code: Select all
CXXINCS = -DglXGetProcAddress=glXGetProcAddressARB -I"include/" -I"zlib/"
Basically, all we do is we 're using the preprocessor to our advantage. We 're asking it to replace for us all occurrences of glXGetProcAddress with glXGetProcAddressARB.
One small note about glXGetProcAddress:
The NVidia drivers export glXGetProcAddressARB (hence this fix). It might be possible though, that some other drivers export glXGetProcAddressEXT. So if you still get linker errors, try substituting glXGetProcAddressARB with glXGetProcAddressEXT and retry. You might get lucky
HTH someone,
Yiannis.