Re: [GRASS-dev] errors compiling nviz in GRASS 7
Which I would have found if I had updated my SVN today... Sorry, I wasn't paying attention, and it moved too fast ;) On Jul 9, 2008, at 9:39 PM, William Kyngesburye wrote: It appears X, Y and Z (all caps, that is) are defined in gstypes.h in GRASS. I was able to fix the problem by moving the lines in nviz.h: #include grass/gsurf.h #include grass/gstypes.h to *after* the GL includes. - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ [Trillian] What are you supposed to do WITH a maniacally depressed robot? [Marvin] You think you have problems? What are you supposed to do if you ARE a maniacally depressed robot? No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer... - HitchHiker's Guide to the Galaxy ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] errors compiling nviz in GRASS 7
On Jul 9, 2008, at 9:44 PM, William Kyngesburye wrote: Which I would have found if I had updated my SVN today... Sorry, I wasn't paying attention, and it moved too fast ;) On Jul 9, 2008, at 9:39 PM, William Kyngesburye wrote: It appears X, Y and Z (all caps, that is) are defined in gstypes.h in GRASS. I was able to fix the problem by moving the lines in nviz.h: #include grass/gsurf.h #include grass/gstypes.h to *after* the GL includes. But, there is this in gui/wxpython/nviz/nviz.h: #include grass/gis.h #include grass/gsurf.h #include grass/gstypes.h #include grass/nviz.h Since grass/nviz.h already includes gsurf.h and gstypes.h, perhaps those should be removed to let grass/nviz.h handle the proper include order? - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ Oh, look, I seem to have fallen down a deep, dark hole. Now what does that remind me of? Ah, yes - life. - Marvin ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] errors compiling nviz in GRASS 7
William Kyngesburye wrote: It appears X, Y and Z (all caps, that is) are defined in gstypes.h in GRASS. That really needs to change. It's one thing to define single-letter macros for internal use, but something else to define them in a public header. -- Glynn Clements [EMAIL PROTECTED] ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] errors compiling nviz in GRASS 7
On Jul 9, 2008, at 11:23 PM, Glynn Clements wrote: William Kyngesburye wrote: But, there is this in gui/wxpython/nviz/nviz.h: #include grass/gis.h #include grass/gsurf.h #include grass/gstypes.h #include grass/nviz.h Since grass/nviz.h already includes gsurf.h and gstypes.h, perhaps those should be removed to let grass/nviz.h handle the proper include order? Any source or header file which uses types or macros from a header file should explicitly include that header file. Header files should guard against repeated inclusion; AFAICT, all of the headers mentioned here do so. OK. Haven't got that far anyways - stuck on my struct render_window error in the nviz lib. - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ All generalizations are dangerous, even this one. ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] errors compiling nviz in GRASS 7
Michael Barton wrote: I found it and this may be the issue. This refers back to an issue that William raised with Martin over compiling for Mac. The OpenGL that GRASS uses is located in /usr/X11/include/GL/gl.h. That is, it uses the X11 version of GL for NVIZ. If the new lib is building for wxPython, then it needs an Aqua version of GL. I think that this exists, but still don't know where it is. Once we find it, however, we somehow need to have GRASS compile the old NVIZ (i.e., in TclTk) with the X11 GL and the new wxPython NVIZ to use the native Aqua version. This may make compiling on Mac somewhat more complicated. Both depend upon lib/ogsf, which (I suspect) can only be compiled for one particular version of OpenGL. If you want to continue using NVIZ on the Mac, I strongly suggest that you figure out how to get NVIZ working with the native OpenGL and Tcl/Tk. -- Glynn Clements [EMAIL PROTECTED] ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] errors compiling nviz in GRASS 7
On Jul 6, 2008, at 3:23 PM, Markus Neteler wrote: Errors in: /Users/cmbarton/grass_dev/grass7_src/lib/nviz /Users/cmbarton/grass_dev/grass7_src/gui/wxpython/vdigit /Users/cmbarton/grass_dev/grass7_src/gui/wxpython/nviz /Users/cmbarton/grass_dev/grass7_src/visualization/nviz2/cmd -- ... cmb-MBP-2:grass7_src cmbarton$ cd /Users/cmbarton/grass_dev/ grass7_src/lib/nviz ... Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/ include/grass/gstypes.h:13:19: error: GL/gl.h: No such file or directory Do you lack some devel package? On My Mandriva box, it is in rpm -qf /usr/include/GL/gl.h lib64mesagl1-devel-7.0.1-10mdv2008.0 OR the GL include path is missing? error: conflicting declaration 'typedef int Cursor' /usr/X11/include/X11/X.h:108: error: 'Cursor' has a previous declaration as 'typedef XID Cursor' lipo: can't figure out the architecture type of: /var/folders/AK/AKpYwDw1EoWI+fFF02nvRk+++TI/-Tmp-//cc8d1b5h.out make: *** [OBJ.i386-apple-darwin9.4.0/change_view.o] Error 1 Looks like a Mac specific error to me. Yeah, I vaguely recall seeing a workaround for errors like this - something to do with Cursor being used in Carbon I think. Maybe the workaround is in TclTk? I haven't attempted trunk yet. I'll give it a spin today and see if I think of anything. - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ Theory of the Universe There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened. -Hitchhiker's Guide to the Galaxy 2nd season intro ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] errors compiling nviz in GRASS 7
Hi, 2008/7/6 William Kyngesburye [EMAIL PROTECTED]: [...] Just noticing that nviz gets its own library now, probably so that there can be a tcltk nviz and wxpython nviz without duplicating the core nviz features. Now here's something that gets tricky with OSX. experimental nvizlib is used by new nviz_cmd (visualization/nviz2/cmd) module and wxGUI Nviz extension (gui/wxpython/nviz), no relation to TCL/TK Nviz. Martin -- Martin Landa landa.martin gmail.com * http://gama.fsv.cvut.cz/~landa * ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] errors compiling nviz in GRASS 7
I'm sure that OpenGL is on my machine somewhere, but can't find it at the moment. Once I do, I can check for gl.h and report it's path back to you all. Michael C. Michael Barton, Professor of Anthropology Director of Graduate Studies School of Human Evolution Social Change Center for Social Dynamics Complexity Arizona State University Phone: 480-965-6262 Fax: 480-965-7671 www: www.public.asu.edu/~cmbarton On Jul 6, 2008, at 1:36 PM, William Kyngesburye wrote: On Jul 6, 2008, at 3:23 PM, Markus Neteler wrote: Errors in: /Users/cmbarton/grass_dev/grass7_src/lib/nviz /Users/cmbarton/grass_dev/grass7_src/gui/wxpython/vdigit /Users/cmbarton/grass_dev/grass7_src/gui/wxpython/nviz /Users/cmbarton/grass_dev/grass7_src/visualization/nviz2/cmd -- ... cmb-MBP-2:grass7_src cmbarton$ cd /Users/cmbarton/grass_dev/ grass7_src/lib/nviz ... Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/ include/grass/gstypes.h:13:19: error: GL/gl.h: No such file or directory Do you lack some devel package? On My Mandriva box, it is in rpm -qf /usr/include/GL/gl.h lib64mesagl1-devel-7.0.1-10mdv2008.0 OR the GL include path is missing? error: conflicting declaration 'typedef int Cursor' /usr/X11/include/X11/X.h:108: error: 'Cursor' has a previous declaration as 'typedef XID Cursor' lipo: can't figure out the architecture type of: /var/folders/AK/AKpYwDw1EoWI+fFF02nvRk+++TI/-Tmp-//cc8d1b5h.out make: *** [OBJ.i386-apple-darwin9.4.0/change_view.o] Error 1 Looks like a Mac specific error to me. Yeah, I vaguely recall seeing a workaround for errors like this - something to do with Cursor being used in Carbon I think. Maybe the workaround is in TclTk? I haven't attempted trunk yet. I'll give it a spin today and see if I think of anything. - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ Theory of the Universe There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened. -Hitchhiker's Guide to the Galaxy 2nd season intro ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] errors compiling nviz in GRASS 7
I found it and this may be the issue. This refers back to an issue that William raised with Martin over compiling for Mac. The OpenGL that GRASS uses is located in /usr/X11/include/GL/gl.h. That is, it uses the X11 version of GL for NVIZ. If the new lib is building for wxPython, then it needs an Aqua version of GL. I think that this exists, but still don't know where it is. Once we find it, however, we somehow need to have GRASS compile the old NVIZ (i.e., in TclTk) with the X11 GL and the new wxPython NVIZ to use the native Aqua version. This may make compiling on Mac somewhat more complicated. Michael C. Michael Barton, Professor of Anthropology Director of Graduate Studies School of Human Evolution Social Change Center for Social Dynamics Complexity Arizona State University Phone: 480-965-6262 Fax: 480-965-7671 www: www.public.asu.edu/~cmbarton On Jul 6, 2008, at 1:36 PM, William Kyngesburye wrote: On Jul 6, 2008, at 3:23 PM, Markus Neteler wrote: Errors in: /Users/cmbarton/grass_dev/grass7_src/lib/nviz /Users/cmbarton/grass_dev/grass7_src/gui/wxpython/vdigit /Users/cmbarton/grass_dev/grass7_src/gui/wxpython/nviz /Users/cmbarton/grass_dev/grass7_src/visualization/nviz2/cmd -- ... cmb-MBP-2:grass7_src cmbarton$ cd /Users/cmbarton/grass_dev/ grass7_src/lib/nviz ... Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/ include/grass/gstypes.h:13:19: error: GL/gl.h: No such file or directory Do you lack some devel package? On My Mandriva box, it is in rpm -qf /usr/include/GL/gl.h lib64mesagl1-devel-7.0.1-10mdv2008.0 OR the GL include path is missing? error: conflicting declaration 'typedef int Cursor' /usr/X11/include/X11/X.h:108: error: 'Cursor' has a previous declaration as 'typedef XID Cursor' lipo: can't figure out the architecture type of: /var/folders/AK/AKpYwDw1EoWI+fFF02nvRk+++TI/-Tmp-//cc8d1b5h.out make: *** [OBJ.i386-apple-darwin9.4.0/change_view.o] Error 1 Looks like a Mac specific error to me. Yeah, I vaguely recall seeing a workaround for errors like this - something to do with Cursor being used in Carbon I think. Maybe the workaround is in TclTk? I haven't attempted trunk yet. I'll give it a spin today and see if I think of anything. - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ Theory of the Universe There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened. -Hitchhiker's Guide to the Galaxy 2nd season intro ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] errors compiling nviz in GRASS 7
Here is the location of the native OGL (called AGL on Mac). /System/Library/Frameworks/AGL.framework/Versions/A/Headers/gl.h Michael C. Michael Barton, Professor of Anthropology Director of Graduate Studies School of Human Evolution Social Change Center for Social Dynamics Complexity Arizona State University Phone: 480-965-6262 Fax: 480-965-7671 www: www.public.asu.edu/~cmbarton On Jul 6, 2008, at 1:36 PM, William Kyngesburye wrote: On Jul 6, 2008, at 3:23 PM, Markus Neteler wrote: Errors in: /Users/cmbarton/grass_dev/grass7_src/lib/nviz /Users/cmbarton/grass_dev/grass7_src/gui/wxpython/vdigit /Users/cmbarton/grass_dev/grass7_src/gui/wxpython/nviz /Users/cmbarton/grass_dev/grass7_src/visualization/nviz2/cmd -- ... cmb-MBP-2:grass7_src cmbarton$ cd /Users/cmbarton/grass_dev/ grass7_src/lib/nviz ... Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/ include/grass/gstypes.h:13:19: error: GL/gl.h: No such file or directory Do you lack some devel package? On My Mandriva box, it is in rpm -qf /usr/include/GL/gl.h lib64mesagl1-devel-7.0.1-10mdv2008.0 OR the GL include path is missing? error: conflicting declaration 'typedef int Cursor' /usr/X11/include/X11/X.h:108: error: 'Cursor' has a previous declaration as 'typedef XID Cursor' lipo: can't figure out the architecture type of: /var/folders/AK/AKpYwDw1EoWI+fFF02nvRk+++TI/-Tmp-//cc8d1b5h.out make: *** [OBJ.i386-apple-darwin9.4.0/change_view.o] Error 1 Looks like a Mac specific error to me. Yeah, I vaguely recall seeing a workaround for errors like this - something to do with Cursor being used in Carbon I think. Maybe the workaround is in TclTk? I haven't attempted trunk yet. I'll give it a spin today and see if I think of anything. - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ Theory of the Universe There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened. -Hitchhiker's Guide to the Galaxy 2nd season intro ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] errors compiling nviz in GRASS 7
On Jul 6, 2008, at 6:58 PM, Michael Barton wrote: Here is the location of the native OGL (called AGL on Mac). /System/Library/Frameworks/AGL.framework/Versions/A/Headers/gl.h Which is a symlink to /System/Library/Frameworks/OpenGL.frameworks/ Headers/gl.h. Which is what you get when you configure with --with- opengl=aqua. Which spits out a bunch cpp errors in the Carbon includes, from the AGL include. More than I can wrap my brain around at the moment, but it looks like we need to work on this. - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ Theory of the Universe There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened. -Hitchhiker's Guide to the Galaxy 2nd season intro ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev