Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Support Mac OS X 10.5 - 10.7. #3

Open
fdb opened this issue Jul 29, 2011 · 6 comments
Open

Support Mac OS X 10.5 - 10.7. #3

fdb opened this issue Jul 29, 2011 · 6 comments
Assignees

Comments

@fdb
Copy link
Member

fdb commented Jul 29, 2011

We would like to support all versions from 10.5 - 10.7.

To make NodeBox work on 10.7 we compiled it on 10.7. So that's good.

However, now it fails on 10.5, with:

Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.7/Python
Referenced from: /Users/nodebox/Downloads/NodeBox/NodeBox.app/Contents/MacOS/NodeBox
Reason: image not found
@fdb
Copy link
Member Author

fdb commented Jul 29, 2011

By linking to python2.5.dylib instead of the Mac Python framework, we can make the Python code work on 10.5. (Commit 4468871)

However, native extensions are still borked, erring out with "unknown required load command 0x80000022". This is not a big problem for cGeo and cPathmatics, which are just faster versions of built-in functions, but cPolymagic doesn't have a Python implementation.

I've currently made cPolymagic optional for loading NodeBox, but code that uses boolean math ops such as difference() will fail.

@fdb
Copy link
Member Author

fdb commented Jul 29, 2011

I've tried defining the deployment target in the extensions' setup.py like so:

os.environ['MACOSX_DEPLOYMENT_TARGET']='10.5'.
CFLAGS=["-mmacosx-version-min=10.5"]

When compiling the extension, I now get

distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.5" but "10.7" during configure

@ghost ghost assigned fdb Aug 1, 2011
@fdb
Copy link
Member Author

fdb commented Aug 5, 2011

I'm trying turning polymagic into a dynamic library and access it with ctypes.

This already works for functions that return simple values, such as integers.

@ttback
Copy link

ttback commented Mar 16, 2012

Not too sure about your commit "NodeBox runs on 10.5-10.7 using Python 2.5."

So if I have python 2.5 on my system, it would work?

@fdb
Copy link
Member Author

fdb commented Mar 16, 2012

What version of OS X are you running? Version 1.9.7rc1 works on OS X Lion.

@ttback
Copy link

ttback commented Mar 17, 2012

Never mind. It was really late night and I downloaded version 1.9.5.
I realize there is also NodeBox2 beta as well, using it now.

Thanks. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants