[Qgis-developer] QGIS Python support in a library
William Kyngesburye
woklist at kyngchaos.com
Mon Jun 2 09:54:13 EDT 2008
With everything changed over to @loader_path where appropriate,
basically all libraries and loadables use @loader_path, and only
executables (qgis, qgis_help) use @executable_path. This limits it to
a minimum of OSX 10.4 Tiger. I get something like this (simplified):
bin
qgis_help.app
Contents
MacOS
qgis_help
Qt* -> @x/../../../../lib/Qt*
qgis_core -> @x/../../../../lib/qgis_core
lib
libqgis*
qgis_core, qgis_gui -> @l/qgis_*
Qt* -> @l/Qt*
qgis [plugins]
all
qgis_core, qgis_gui -> @l/../qgis_*
Qt* -> @l/../Qt*
Qt*.framework
Qt* -> @l/../../../Qt*
qgis [app]
qgis_core, qgis_gui -> @x/lib/qgis_*
Qt* -> @x/lib/Qt*
share
qgis
python
PyQt4
Qt*.so
Qt*.framework -> @l/../../../../lib/Qt*
qgis
core, gui
qgis_core, qgis_gui -> @l/../../../../lib/qgis_*
Qt*.framework -> @l/../../../../lib/Qt*
and similarly for any extra bundled libraries.
On Jun 2, 2008, at 1:37 AM, Tim Sutton wrote:
> Hi
>
> Ok with Toms change, it tries to load python but fails with lib path
> issues. Could you give me otool -L dumps for the three python libs
> once you have them working so I can update my post install scripts? I
> tried a few permutations of @add_library path but Im not sure if I
> should be universally swtiching @executable_path.
>
> Regards
>
> Tim
>
> 2008/6/1 William Kyngesburye <woklist at kyngchaos.com>:
>> OK, finally got a package built properly. Python support IS
>> starting.
>> Maybe something changed in SVN since I last tried it Saturday? Or
>> maybe my
>> @loader_path change was the key?
>>
>> Qgis SVN r8575
>> OSX 10.5.3, Xcode 3.1 beta
>> System Python 2.5
>> Qt 4.3.5/PyQt 4.3.3/SIP 4.7.4
>>
>> This is with my usual changing things to @loader_path where
>> appropriate, so
>> the python .so's in Qgis relatively refer to the Qgis libs and
>> bundled Qt
>> (instead of the default @executable_path, which is unclear what the
>> executable is).
>>
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
"Those people who most want to rule people are, ipso-facto, those
least suited to do it."
- A rule of the universe, from the HitchHiker's Guide to the Galaxy
More information about the Qgis-developer
mailing list