Re: [GRASS-dev] Re: errors compiling nviz in GRASS 7

2008-07-09 Thread Martin Landa
Hi, 2008/7/9 Glynn Clements <[EMAIL PROTECTED]>: >> I am not sure about Xlib-based functions (XFreePixmap, XOpenDisplay, >> XCreatePixmap)... > > For a GUI application, you wouldn't normally be calling these; you > would let the toolkit handle it. In particular, you would need to use > the same Di

Re: [GRASS-dev] Re: errors compiling nviz in GRASS 7

2008-07-08 Thread Glynn Clements
Martin Landa wrote: > I am not sure about Xlib-based functions (XFreePixmap, XOpenDisplay, > XCreatePixmap)... For a GUI application, you wouldn't normally be calling these; you would let the toolkit handle it. In particular, you would need to use the same Display* used by the GUI; getting a new

Re: [GRASS-dev] Re: errors compiling nviz in GRASS 7

2008-07-08 Thread Martin Landa
Hi, 2008/7/8 Martin Landa <[EMAIL PROTECTED]>: > thanks for notes, I have updated render.c [1], nothing for wgl since > include/Make/Platform.make doesn't seems to have OPENGL_WGL (todo). sorry, there is OPENGL_WINDOWS, my mistake. Martin -- Martin Landa * http://gama.fsv.cvut.cz/~landa * ___

Re: [GRASS-dev] Re: errors compiling nviz in GRASS 7

2008-07-08 Thread Martin Landa
Hi, 2008/7/7 Glynn Clements <[EMAIL PROTECTED]>: > Note that lib/nviz/render.c contains unconditional references to glX > functions, so it won't compile with non-X11 versions of OpenGL. > > To make it work on all platforms, each section of code which uses glX > functions will need equivalent agl a

Re: [GRASS-dev] Re: errors compiling nviz in GRASS 7

2008-07-07 Thread Michael Barton
Thanks for these important points Glynn. Michael __ Michael Barton, Professor Professor of Anthropology Director of Graduate Studies School of Human Diversity & Social Change Center for Social Dynamics & Complexity Arizona State University Tempe, AZ 85287-2402 USA vo

Re: [GRASS-dev] Re: errors compiling nviz in GRASS 7

2008-07-07 Thread Glynn Clements
Martin Landa wrote: > I have updated Makefile in lib/nviz based on lib/ogsf/Makefile, maybe > it can help, I can compile on my Linux box without problems. Note that lib/nviz/render.c contains unconditional references to glX functions, so it won't compile with non-X11 versions of OpenGL. To make

[GRASS-dev] Re: errors compiling nviz in GRASS 7

2008-07-06 Thread Martin Landa
Hi, 2008/7/6 Michael Barton <[EMAIL PROTECTED]>: > First, Markus' fix made GRASS 7 configure properly too. that's Glynn's fix:-) [...] > Errors in: > /Users/cmbarton/grass_dev/grass7_src/lib/nviz [...] > /Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/include/grass/gstypes.h: