[GRASS-dev] GRASS 7 not compiling on Mac OSX 10.6

I just updated from the CVS and tried to compile. I got errors at the end. I’m pretty sure that the …/gui/wxpython error is just a problem with the make file. But the …/lib/python error is something else. Here is the result.

Errors in:
/Users/cmbarton/grass_dev/grass70_dev/lib/python
/Users/cmbarton/grass_dev/grass70_dev/gui/wxpython

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: Mon May 17 11:30:51 MST 2010
make: *** [default] Error 1
cmb-mbp:grass70_dev cmbarton$ cd /Users/cmbarton/grass_dev/grass70_dev/lib/python
cmb-mbp:python cmbarton$ make
make -C ctypes
make /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib
make[2]: `/Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib’ is up to date.
make date.py grass.py raster.py gmath.py proj.py imagery.py vector.py display.py stats.py dbmi.py g3d.py arraystats.py cluster.py trans.py vedit.py /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/date.py /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/grass.py /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/raster.py /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/gmath.py /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/proj.py /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/imagery.py /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/vector.py /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/display.py /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/stats.py /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/dbmi.py /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/g3d.py /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/arraystats.py /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/cluster.py /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/trans.py /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/vedit.py /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/init.py /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/date.pyc /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/grass.pyc /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/raster.pyc /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/gmath.pyc /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/proj.pyc /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/imagery.pyc /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/vector.pyc /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/display.pyc /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/stats.pyc /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/dbmi.pyc /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/g3d.pyc /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/arraystats.pyc /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/cluster.pyc /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/trans.pyc /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/vedit.pyc /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/init.pyc
ctypesgen.py -I/Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/include -I/Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/include -L/Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/lib -L/Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/lib -lgrass_datetime /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/include/grass/datetime.h /Users/cmbarton/grass_dev/grass70_dev/dist.i386-apple-darwin10.3.1/include/grass/P_datetime.h -o date.py
make[2]: ctypesgen.py: No such file or directory
make[2]: *** [date.py] Error 1
make[1]: *** [default] Error 2
make: *** [default] Error 2
cmb-mbp:python cmbarton$


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

voice: 480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: www.public.asu.edu/~cmbarton, http://csdc.asu.edu

Michael Barton wrote:

I just updated from the CVS and tried to compile. I got errors at
the end. I'm pretty sure that the ../gui/wxpython error is just a
problem with the make file. But the ../lib/python error is something
else. Here is the result.

Errors in:
/Users/cmbarton/grass_dev/grass70_dev/lib/python
/Users/cmbarton/grass_dev/grass70_dev/gui/wxpython

cmb-mbp:grass70_dev cmbarton$ cd /Users/cmbarton/grass_dev/grass70_dev/lib/python
cmb-mbp:python cmbarton$ make
make -C ctypes

make[2]: ctypesgen.py: No such file or directory

This should now be ignored.

7.0 now uses ctypesgen to generate Python wrappers for the libraries,
rather than SWIG; you only need it if you want the wrappers (they are
needed for the wxGUI NVIZ module, though; there probably needs to be a
conditional import somewhere).

For more information, see:

From: Glynn Clements <glynn@gclements.plus.com>
Subject: Re: [GRASS-dev] RE: [GRASS-user] Question with Python-SWIG example
  [SEC=UNCLASSIFIED]
Date: Mon, 17 May 2010 17:01:23 +0100
Message-ID: <19441.26707.489147.570557@cerise.gclements.plus.com>

--
Glynn Clements <glynn@gclements.plus.com>

Thanks Glynn,

I installed ctypesgen.py quite easily. Compiling with the most recent SVN version worked fine.

Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

voice: 480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On May 17, 2010, at 4:35 PM, Glynn Clements wrote:

Michael Barton wrote:

I just updated from the CVS and tried to compile. I got errors at
the end. I'm pretty sure that the ../gui/wxpython error is just a
problem with the make file. But the ../lib/python error is something
else. Here is the result.

Errors in:
/Users/cmbarton/grass_dev/grass70_dev/lib/python
/Users/cmbarton/grass_dev/grass70_dev/gui/wxpython

cmb-mbp:grass70_dev cmbarton$ cd /Users/cmbarton/grass_dev/grass70_dev/lib/python
cmb-mbp:python cmbarton$ make
make -C ctypes

make[2]: ctypesgen.py: No such file or directory

This should now be ignored.

7.0 now uses ctypesgen to generate Python wrappers for the libraries,
rather than SWIG; you only need it if you want the wrappers (they are
needed for the wxGUI NVIZ module, though; there probably needs to be a
conditional import somewhere).

For more information, see:

From: Glynn Clements <glynn@gclements.plus.com>
Subject: Re: [GRASS-dev] RE: [GRASS-user] Question with Python-SWIG example
  [SEC=UNCLASSIFIED]
Date: Mon, 17 May 2010 17:01:23 +0100
Message-ID: <19441.26707.489147.570557@cerise.gclements.plus.com>

--
Glynn Clements <glynn@gclements.plus.com>