[GRASS-dev] errors compiling nviz in GRASS 7
Michael Barton
michael.barton at asu.edu
Sun Jul 6 16:16:09 EDT 2008
First, Markus' fix made GRASS 7 configure properly too.
But when I went to compile it, I hit errors with nviz. Some of these
are the new code, but ./lib/niviz won't compile either. I don't know
if this is a minor compilation glitch or a bug. I've included the
output below.
For the record, I'm on a Mac OS X 10.5. If this is bug-worthy, I'll go
ahead and put it in Trac too.
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>
================================
Started compilation: Sun Jul 6 12:59:02 MST 2008
--
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
--
In case of errors please change into the directory with error and run
'make'.
If you get multiple errors, you need to deal with them in the order they
appear in the error log. If you get an error building a library, you
will
also get errors from anything which uses the library.
--
Finished compilation: Sun Jul 6 13:06:30 MST 2008
make: *** [default] Error 1
=========================
cmb-MBP-2:grass7_src cmbarton$ cd /Users/cmbarton/grass_dev/grass7_src/
lib/nviz
cmb-MBP-2:nviz cmbarton$
cmb-MBP-2:nviz cmbarton$ make
gcc -I/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/
include -arch i386 -Os -fno-common -DPACKAGE=\""grasslibs"\" -I/
Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/
include -I/Library/Frameworks/UnixImageIO.framework/unix/include -I/
Library/Frameworks/GDAL.framework/Versions/1.5/Headers -DPACKAGE=
\""grasslibs"\" -I/Users/cmbarton/grass_dev/grass7_src/dist.i386-
apple-darwin9.4.0/include -o OBJ.i386-apple-darwin9.4.0/change_view.o -
c change_view.c
In file included from /Users/cmbarton/grass_dev/grass7_src/dist.i386-
apple-darwin9.4.0/include/grass/nviz.h:5,
from change_view.c:20:
/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
In file included from /Users/cmbarton/grass_dev/grass7_src/dist.i386-
apple-darwin9.4.0/include/grass/gstypes.h:336,
from /Users/cmbarton/grass_dev/grass7_src/dist.i386-
apple-darwin9.4.0/include/grass/nviz.h:5,
from change_view.c:20:
/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/
include/grass/ogsf_proto.h:198: warning: parameter names (without
types) in function declaration
/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/
include/grass/ogsf_proto.h:199: error: syntax error before ‘GLuint’
/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/
include/grass/ogsf_proto.h:455: error: syntax error before
‘gsd_set_font’
/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/
include/grass/ogsf_proto.h:455: warning: data definition has no type
or storage class
/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/
include/grass/ogsf_proto.h:458: error: syntax error before ‘float’
/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/
include/grass/ogsf_proto.h:472: error: syntax error before ‘GLuint’
/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/
include/grass/ogsf_proto.h:492: error: syntax error before ‘GLuint’
/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/
include/grass/ogsf_proto.h:496: error: syntax error before ‘GLuint’
/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/
include/grass/ogsf_proto.h:554: error: syntax error before ‘int’
/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/
include/grass/ogsf_proto.h:746: error: syntax error before
‘gsd_put_legend’
/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/
include/grass/ogsf_proto.h:746: error: syntax error before ‘GLuint’
/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/
include/grass/ogsf_proto.h:746: warning: data definition has no type
or storage class
/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/
include/grass/ogsf_proto.h:747: warning: parameter names (without
types) in function declaration
In file included from change_view.c:20:
/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/
include/grass/nviz.h:24:22: error: GL/glx.h: No such file or directory
In file included from change_view.c:20:
/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/
include/grass/nviz.h:113: error: syntax error before ‘GLXContext’
/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/
include/grass/nviz.h:113: warning: no semicolon at end of struct or
union
/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/
include/grass/nviz.h:115: error: syntax error before ‘windowId’
/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/
include/grass/nviz.h:115: warning: data definition has no type or
storage class
make: *** [OBJ.i386-apple-darwin9.4.0/change_view.o] Error 1
cmb-MBP-2:nviz cmbarton$
===================================
cmb-MBP-2:cmd cmbarton$ cd /Users/cmbarton/grass_dev/grass7_src/gui/
wxpython/nviz
cmb-MBP-2:nviz cmbarton$ make
c++ -I/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/
include -arch i386 -Os -fno-common -I/Library/Frameworks/
GDAL.framework/Versions/1.5/Headers -I/Library/Frameworks/
Python.framework/Versions/2.5/include/python2.5 -I/Library/Frameworks/
Python.framework/Versions/2.5/include/python2.5 -arch ppc -arch i386 -
isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-
long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -
DNDEBUG -g -O3 -I/usr/local/lib/wxPython-unicode-2.8.8.0/lib/wx/
include/mac-unicode-debug-2.8 -I/usr/local/lib/wxPython-
unicode-2.8.8.0/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -
D__WXDEBUG__ -D__WXMAC__ -I/usr/X11/include -DPACKAGE=
\""grasslibs"\" -I/Users/cmbarton/grass_dev/grass7_src/dist.i386-
apple-darwin9.4.0/include -o OBJ.i386-apple-darwin9.4.0/change_view.o -
c change_view.cpp
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
CoreServices.framework/Frameworks/CarbonCore.framework/Headers/
MachineExceptions.h:245: error: declaration does not declare anything
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
ApplicationServices.framework/Frameworks/ColorSync.framework/Headers/
CMICCProfile.h:389: error: expected unqualified-id before numeric
constant
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
ApplicationServices.framework/Frameworks/ColorSync.framework/Headers/
CMICCProfile.h:390: error: expected unqualified-id before numeric
constant
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
ApplicationServices.framework/Frameworks/ColorSync.framework/Headers/
CMICCProfile.h:391: error: expected unqualified-id before numeric
constant
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
ApplicationServices.framework/Frameworks/ColorSync.framework/Headers/
CMICCProfile.h:397: error: expected unqualified-id before numeric
constant
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
ApplicationServices.framework/Frameworks/ColorSync.framework/Headers/
CMICCProfile.h:398: error: expected unqualified-id before numeric
constant
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
ApplicationServices.framework/Frameworks/ColorSync.framework/Headers/
CMICCProfile.h:399: error: expected unqualified-id before numeric
constant
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
ApplicationServices.framework/Frameworks/QD.framework/Headers/
Quickdraw.h:273: error: using typedef-name ‘Cursor’ after ‘struct’
/usr/X11/include/X11/X.h:108: error: ‘Cursor’ has a previous
declaration here
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
ApplicationServices.framework/Frameworks/QD.framework/Headers/
Quickdraw.h:278: error: using typedef-name ‘Cursor’ after ‘struct’
/usr/X11/include/X11/X.h:108: error: ‘Cursor’ has a previous
declaration here
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
ApplicationServices.framework/Frameworks/QD.framework/Headers/
Quickdraw.h:278: error: invalid type in declaration before ‘;’ token
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
ApplicationServices.framework/Frameworks/QD.framework/Headers/
Quickdraw.h:278: error: conflicting declaration ‘typedef int Cursor’
/usr/X11/include/X11/X.h:108: error: ‘Cursor’ has a previous
declaration as ‘typedef XID Cursor’
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
ApplicationServices.framework/Frameworks/ColorSync.framework/Headers/
CMICCProfile.h:389: error: expected unqualified-id before numeric
constant
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
ApplicationServices.framework/Frameworks/ColorSync.framework/Headers/
CMICCProfile.h:390: error: expected unqualified-id before numeric
constant
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
ApplicationServices.framework/Frameworks/ColorSync.framework/Headers/
CMICCProfile.h:391: error: expected unqualified-id before numeric
constant
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
ApplicationServices.framework/Frameworks/ColorSync.framework/Headers/
CMICCProfile.h:397: error: expected unqualified-id before numeric
constant
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
ApplicationServices.framework/Frameworks/ColorSync.framework/Headers/
CMICCProfile.h:398: error: expected unqualified-id before numeric
constant
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
ApplicationServices.framework/Frameworks/ColorSync.framework/Headers/
CMICCProfile.h:399: error: expected unqualified-id before numeric
constant
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
ApplicationServices.framework/Frameworks/QD.framework/Headers/
Quickdraw.h:273: error: using typedef-name ‘Cursor’ after ‘struct’
/usr/X11/include/X11/X.h:108: error: ‘Cursor’ has a previous
declaration here
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
ApplicationServices.framework/Frameworks/QD.framework/Headers/
Quickdraw.h:278: error: using typedef-name ‘Cursor’ after ‘struct’
/usr/X11/include/X11/X.h:108: error: ‘Cursor’ has a previous
declaration here
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
ApplicationServices.framework/Frameworks/QD.framework/Headers/
Quickdraw.h:278: error: invalid type in declaration before ‘;’ token
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
ApplicationServices.framework/Frameworks/QD.framework/Headers/
Quickdraw.h:278: 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
==================================
cd /Users/cmbarton/grass_dev/grass7_src/visualization/nviz2/cmd
cmb-MBP-2:cmd cmbarton$ make
make: *** No rule to make target `/Users/cmbarton/grass_dev/grass7_src/
dist.i386-apple-darwin9.4.0/lib/libgrass_nviz.dylib', needed by `/
Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.4.0/bin/
nviz_cmd'. Stop.
cmb-MBP-2:cmd cmbarton$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20080706/18ec3e12/attachment-0001.html
More information about the grass-dev
mailing list