Re: [Pyobjc-dev] How to build pyobjc for 10.6 & 10.7+ (on 10.7)?
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2012-11-05 16:41:22
|
On 5 Nov, 2012, at 17:33, Michael McCracken <mic...@gm...> wrote: > A pyobjc built on 10.7 fails to load libobjc.dylib on 10.6, because 10.6 libobjc is missing some symbols - _objc_allocateProtocol is the first one it complains about. > > So, to ship an app with pyobjc that will run on 10.6 and 10.7, what's the best route? > > I guess building pyobjc on 10.6 should work, but ideally it'd be possible to build this pyobjc on 10.7. > > I recently tried building pyobjc with MACOSX_DEPLOYMENT_TARGET=10.6, and found a mismatch. It seems like the correct way is to also build python with that variable set. > > Is that everything, or are there any gotcha's I'm missing? That looks correct. You need to build with the right deployment target to get code that can run on 10.6. Both for PyObjC and Python itself I consider it a bug when you cannot build on a later system that you want to deploy on, as long as you set MACOSX_DEPLOYMENT_TARGET to an appopriate value. For PyObjC you actually need to build on a late version of the SDK when you want to have a full featured build (one example of this is blocks, you need to build with a compiler and SDK that support blocks if you want to optionally use blocks on recent enough OSX releases) Ronald > > Thanks, > -mike > ------------------------------------------------------------------------------ > LogMeIn Central: Instant, anywhere, Remote PC access and management. > Stay in control, update software, and manage PCs from one command center > Diagnose problems and improve visibility into emerging IT issues > Automate, monitor and manage. Do more in less time with Central > http://p.sf.net/sfu/logmein12331_d2d_______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |