[wxMax] X-plat BMK wxGLCanvas OpenGL/GLX errorBlitzMax Modules Forums/Brucey's Modules/[wxMax] X-plat BMK wxGLCanvas OpenGL/GLX error
| 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..
$ ./bmk makemods -l linux
/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
| -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!
| 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).
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!)
| Yay. It compiled this time, and all the others are going good so far. |