Re: [Gtk-osx-users] Library dependencies of PyGTK on Mac OS X



On Dec 18, 2009, at 11:12 PM, John Pye wrote:

> John Pye wrote:
>> tool -L /Users/john/gtk-temp/inst/lib/libgtk-quartz-2.0.0.dylib
>> /Users/john/gtk-temp/inst/lib/libgtk-quartz-2.0.0.dylib:
>>    /Users/john/gtk/inst/lib/libgtk-quartz-2.0.0.dylib (compatibility 
>> version 1601.0.0, current version 1601.2.0)
>>    /Users/john/gtk/inst/lib/libgdk_pixbuf-2.0.0.dylib (compatibility 
>> version 1601.0.0, current version 1601.2.0)
>>    /Users/john/gtk/inst/lib/libgdk-quartz-2.0.0.dylib (compatibility 
>> version 1601.0.0, current version 1601.2.0)
>> [...and many more...]
>> 
>> So basically, I need a way for this linking to be done without absolute 
>> pathnames, somehow (as it is in Linux, in general).
>> 
> 
> Looks like the solution to this problem involves hacking with the shared 
> libraries as described here:
> 
> http://blogs.sun.com/dipol/entry/dynamic_libraries_rpath_and_mac
> 
> I'll see how that goes.
> 

There's already a python program, ige-mac-bundler, which is part of Gtk-OSX and takes care of packaging the files, including adjusting the installed names. There's a sample bundle file for bundling PyGtk Demo in the examples directory -- but not in the released version on sourceforge, so get it from git://github.com/jralls/ige-mac-bundler.git. More information at http://sourceforge.net/apps/trac/gtk-osx/wiki/Bundle

Do note, however, that different versions of OSX come with different versions of Python, and that can cause trouble when you distribute a Python-based bundle. I recommend building Python with jhbuild (set  _gtk_osx_use_jhbuild_python = True in your .jhbuildrc-custom) and including that Python in your bundle.

Regards,
John Ralls



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]