[QGIS-trac] Re: [Quantum GIS] #1950: Python binary choice on OS X
(10.6) / Building bug
Quantum GIS
qgis at qgis.org
Fri Sep 25 13:00:04 EDT 2009
#1950: Python binary choice on OS X (10.6) / Building bug
--------------------------------------------------------------+-------------
Reporter: vince | Owner: nobody
Type: bug | Status: new
Priority: critical: causes crash or data corruption | Milestone:
Component: Build/Install | Version: 1.3.0
Resolution: | Keywords: spatialite.c python
Platform_version: 10.6 (Snow Leopard) | Platform: OS X
Must_fix: No | Status_info: 0
--------------------------------------------------------------+-------------
Comment (by kyngchaos):
> On the other hand, similarly to what I did with Grass, I can use
install_name_tool to change the reference inside the library.
Except that there is no guarantee that the same version of Python will be
found by the default python detection as is installed in MacPorts.
Linking to v2.5 and then telling Qgis to load v2.6 will likely cause
trouble.
> With -framework Python, ld accepts also -F {FRAMEWORK_PATH} that specify
alternate frameworks path searched before the standard path.
The way cmake works with libraries, it probably links the framework binary
directly, so -F will have no effect. ie instead of:
{{{
-F /Library/Frameworks -framework Python
}}}
it will link:
{{{
/Library/Frameworks/Python.framework/Versions/2.5/Python
}}}
This is so that (I'm guessing) cmake can make sure the exact library
binary that you want, or an internal library binary, is linked and -L/-F
paths don't confuse things.
--
Ticket URL: <http://trac.osgeo.org/qgis/ticket/1950#comment:13>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list