[QGIS-trac] Re: [Quantum GIS] #1518: python binding does not link
with libpython
Quantum GIS
qgis at qgis.org
Wed Aug 5 17:51:35 EDT 2009
#1518: python binding does not link with libpython
-------------------------------------+--------------------------------------
Reporter: fundawang | Owner: nobody
Type: patch | Status: closed
Priority: minor: annoyance | Milestone: Version 1.0.3
Component: Build/Install | Version: 1.0.0
Resolution: fixed | Keywords:
Platform_version: | Platform: All
Must_fix: No | Status_info: 0
-------------------------------------+--------------------------------------
Changes (by jef):
* status: new => closed
* resolution: => fixed
Comment:
Replying to [comment:18 jrm]:
> + echo 'Patch #2 (qgis_1.0.0-linkage.patch):'[[BR]]
> Patch #2 (qgis_1.0.0-linkage.patch):[[BR]]
> + /usr/bin/patch -U -s -p0 -b --suffix .link --fuzz=0 -i
/home/jrm/rpm/SOURCES[[BR]]/qgis_1.0.0-linkage.patch[[BR]]
> 1 out of 2 hunks FAILED -- saving rejects to file
python/configure.py.in.rej
sorry, I meant the link problems you were experiencing before. That error
message just tells us that the patch doesn't apply cleanly to trunk
anymore because {{{configure.py.in}}} was changed in the meantime.
Looking for a portable way to find the name of the python library I came
across following comment in {{{sipconfig}}}:
{{{
# This made an appearence in Qt v4.4rc1 and breaks extension modules so
# remove it. It was removed at my request but some stupid distros may
# have kept it.
self.LFLAGS.remove('-Wl,--no-undefined')
}}}
Seems like {{{sipconfig}}} which is used to create the Makefiles for the
python bindings tries to explictly filter out the link option that causes
the link errors. It probably just fails to because extra_lflags are not
split in the patch and therefore there is no such element.
r11279 now passes on the linker flags in splitted form and there are no
linker errors.
--
Ticket URL: <http://trac.osgeo.org/qgis/ticket/1518#comment:19>
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