[fltkmaxgui] won't build...

Miscellaneous Forums/Linux Discussion/[fltkmaxgui] won't build...

When I try to build the fltkmaxgui I get this:

punksmurfje@main:~/Applications/BlitzMax/bin$ ./bmk makemods -a brl.fltkmaxgui
Compiling:fltkglue.cpp
In file included from /home/punksmurfje/Applications/BlitzMax/mod/brl.mod/fltkmaxgui.mod/fltkglue.cpp:6:
/home/punksmurfje/Applications/BlitzMax/mod/brl.mod/fltkmaxgui.mod/FL/gl.h:53:23: GL/gl.h: No such file or directory
In file included from /home/punksmurfje/Applications/BlitzMax/mod/brl.mod/fltkmaxgui.mod/fltkglue.cpp:6:
/home/punksmurfje/Applications/BlitzMax/mod/brl.mod/fltkmaxgui.mod/FL/gl.h: In
   function `void gl_rectf(int, int, int, int)':
/home/punksmurfje/Applications/BlitzMax/mod/brl.mod/fltkmaxgui.mod/FL/gl.h:63: error: `
   glRecti' undeclared (first use this function)
/home/punksmurfje/Applications/BlitzMax/mod/brl.mod/fltkmaxgui.mod/FL/gl.h:63: error: (Each
   undeclared identifier is reported only once for each function it appears
   in.)
In file included from /home/punksmurfje/Applications/BlitzMax/mod/brl.mod/fltkmaxgui.mod/fltkglue.cpp:28:
/usr/include/GL/glx.h:45:19: GL/gl.h: No such file or directory
In file included from /home/punksmurfje/Applications/BlitzMax/mod/brl.mod/fltkmaxgui.mod/fltkglue.cpp:28:
/usr/include/GL/glx.h: At global scope:
/usr/include/GL/glx.h:295: error: syntax error before `*' token
In file included from /usr/include/GL/glx.h:300,
                 from /home/punksmurfje/Applications/BlitzMax/mod/brl.mod/fltkmaxgui.mod/fltkglue.cpp:28:
/usr/include/GL/glxext.h:413: error: syntax error before `*' token
/usr/include/GL/glxext.h:555: error: type specifier omitted for parameter `
   GLenum'
/usr/include/GL/glxext.h:555: error: syntax error before `)' token
In file included from /home/punksmurfje/Applications/BlitzMax/mod/brl.mod/fltkmaxgui.mod/fltkglue.cpp:28:
/usr/include/GL/glx.h:464: error: `GLsizei' was not declared in this scope
/usr/include/GL/glx.h:464: error: syntax error before `,' token
/usr/include/GL/glx.h:465: error: `GLvoid' was not declared in this scope
/usr/include/GL/glx.h:465: error: `pointer' was not declared in this scope
/usr/include/GL/glx.h:465: error: variable or field `glXFreeMemoryNV' declared
   void
/usr/include/GL/glx.h:466: error: `GLsizei' was not declared in this scope
/usr/include/GL/glx.h:466: error: syntax error before `,' token
/usr/include/GL/glx.h:467: error: `GLvoid' was not declared in this scope
/usr/include/GL/glx.h:467: error: `pointer' was not declared in this scope
/usr/include/GL/glx.h:467: error: typedef `PFNGLXFREEMEMORYNVPROC' is
   initialized (use __typeof__ instead)
/usr/include/GL/glx.h:493: error: syntax error before `(' token
/usr/include/GL/glx.h:496: error: `PFNGLXGETMEMORYOFFSETMESAPROC' was not
   declared in this scope
/usr/include/GL/glx.h:496: error: typedef `GLuint' is initialized (use
   __typeof__ instead)
Build Error: failed to compile /home/punksmurfje/Applications/BlitzMax/mod/brl.mod/fltkmaxgui.mod/fltkglue.cpppunksmurfje


...and my app won't work:

appstub.linux signal handler 11


Which comes from line 645 in maxgui.bmx

Function CreateWindow:TGadget(name$,x,y,w,h,group:TGadget=Null,style=15)
	Return maxgui_driver.CreateGadget(GADGET_WINDOW,name,x,y,w,h,group,style) 'this line 
End Function


Hi, this is not a bug with blitzmax. You need to install developer packages for OpenGL development (dependent on your version of linux and graphics card) if you want to rebuild modules.