[wxMax] X-plat BMK wxGLCanvas OpenGL/GLX error

BlitzMax Forums/Brucey's Modules/[wxMax] X-plat BMK wxGLCanvas OpenGL/GLX error

plash(Posted 2009) [#1]
Linux cross-compiling bmk_ng again. Compiling wxMax has been going swell until it hit wxGLCanvas.
I haven't found any apt-get lists for installing wxMax (yet), so I assumed and got the glew-dev and glitz-glx-dev packages..

No luck:
$ ./bmk makemods -l linux
Compiling:glue.cpp
/media/system/blitzmax/mod/wx.mod/wxglcanvas.mod/glue.cpp: In member function ‘void MaxGLCanvas::SetSwapInterval(int)’:
/media/system/blitzmax/mod/wx.mod/wxglcanvas.mod/glue.cpp:74: error: ‘glXSwapIntervalEXT’ was not declared in this scope
Build Error: failed to compile /media/system/blitzmax/mod/wx.mod/wxglcanvas.mod/glue.cpp



Brucey(Posted 2009) [#2]
-l win32

Is the only valid option at the moment. Using anything else may result in undefined behaviour.

Of course, that doesn't mean there isn't an issue with wxglcanvas!


plash(Posted 2009) [#3]
Wait.. so to compile for Linux you just don't include the -l parameter?

EDIT: Using that exact command has been mostly working fine. I just tried './bmk makemods' and it gave the same error (so it must be in wxGLCanvas).


Brucey(Posted 2009) [#4]
Wait.. so to compile for Linux you just don't include the -l parameter?

Yes, the -l option is only really for enabling cross-compiling at the moment.

I suppose there's a chance it will work if you use the name for the platform you are building on, but that was never fully tested.


I've now fixed the compile issue on Linux. (There's always something to do!)


plash(Posted 2009) [#5]
Yay. It compiled this time, and all the others are going good so far.