On Mon, 13 Jun 2011 13:32:19 +0100, Ian Ozsvald <[email protected]> wrote:
> Fixed.
> 
> My siteconf.py was as above but with minor changes:
> # if on Snow Leopard, include these lines:
> #CXXFLAGS = ["-arch", "x86_64", "-arch", "i386"]
> #LDFLAGS = ["-arch", "x86_64", "-arch", "i386"]
> CXXFLAGS = ["-arch", "i386", "-mmacosx-version-min=10.6"]
> LDFLAGS = ["-arch", "i386", "-mmacosx-version-min=10.6"]
> CXXFLAGS.extend(['-isysroot', '/Developer/SDKs/MacOSX10.6.sdk'])
> LDFLAGS.extend(['-isysroot', '/Developer/SDKs/MacOSX10.6.sdk'])
> 
> i.e. I removed x86_64 (I only want a 32bit build) and forced
> -mmacosx-version-min to be 10.6 (this seems to double for
> MACOSX_DEPLOYMENT_TARGET but this change actually made it work...).
> Possibly Python's default build rule was ignoring the shell's
> MACOSX_DEPLOYMENT_TARGET? Anyhow, forcing the above cleans up all the
> build warnings about 10.4 that I was seeing (these only disappeared
> after adding -mmacosx-version-min) and it all built cleanly. 'python
> demo.py' now works.

Nice job figuring this out.  Rather than edit the wiki, I'd prefer if we
could make this automatic as much as possible. I.e. I'd prefer updates
to setup.py over wiki updates.

Andreas

Attachment: pgpwKN0CUMpjW.pgp
Description: PGP signature

_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to