I've been tied up with ABM classes and with a dissertation defense Monday. But I'm trying to keep tabs on this and will try to compile again soon. Sounds like there are still problems, but getting closer.
Michael
On Jun 5, 2010, at 6:00 PM, grass-dev-request@lists.osgeo.org wrote:
Date: Sat, 5 Jun 2010 10:02:22 -0500
From: William Kyngesburye <woklist@kyngchaos.com>
Subject: Re: [GRASS-dev] grass7 on mac OSX
To: Glynn Clements <glynn@gclements.plus.com>
Cc: "grass-dev@lists.osgeo.org list" <grass-dev@lists.osgeo.org>
Message-ID: <FBDFC367-9F25-4FBC-8650-A825BF3BE707@kyngchaos.com>
Content-Type: text/plain; charset=us-asciiOn Jun 5, 2010, at 1:15 AM, Glynn Clements wrote:
With, though I get that unknown architecture
error in nviz.py. The ctypesgen authors seem to be aware of and patch
OSX issues, but maybe they never tried it with system framework headers.But does this prevent the generation of the wrapper?
...
There are more similar CF_INLINE definitions earlier, but they are
inside a #ifdef CF_INLINE.But do these prevent the wrapper from being generated, or result in it
missing necessary definitions?ctypesgen ignores errors from the preprocessor (it doesn't capture
stderr and doesn't care about the exit code). Errors only matter
insofar as they cause significant declarations to be omitted or
malformed.The ValueError is different as that's an exception being raised within
ctypesgen itself; r42484 should deal with that.Ah, it's generated.
Next error, after that finishes:
sed \
-e '/^# End loader$/a\
from ctypes_preamble import *\
from ctypes_preamble import _variadic_function\
from ctypes_loader import *' \
-e '/^# Begin preamble$/,/^# End preamble$/d' \
-e '/^# Begin loader$/,/^# End loader$/d' \
date.py > /Users/Shared/src/GRASS/svn/trunk/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/date.py
sed: 1: "/^# End loader$/afrom c ...": command a expects \ followed by text
make[2]: *** [/Users/Shared/src/GRASS/svn/trunk/dist.i386-apple-darwin10.3.1/etc/python/grass/lib/date.py] Error 1There is only 1 file after this in dist/etc/python/grass/lib: an empty date.py.
I never had any luck on OSX with newlines in sed replacement strings in makefiles. It'll work in shell scripts but not makefiles.