https://issues.qgis.org/https://issues.qgis.org/favicon.ico2010-02-16T01:33:45ZQGIS Issue TrackingQGIS Application - Bug report #2446: Python.cmake is wrong about python-sip versionhttps://issues.qgis.org/issues/2446?journal_id=214542010-02-16T01:33:45Zantimirov -antimirov@foo.bar
<ul></ul><p>I'm sorry. Lexicographically 'a' is higher than "7", but the issue with Cmake's way of detecting python-sip version is still valid.</p> QGIS Application - Bug report #2446: Python.cmake is wrong about python-sip versionhttps://issues.qgis.org/issues/2446?journal_id=214552010-02-16T01:37:26ZBorys Jurgiel
<ul></ul><p>Did you try to remove the build/python directory before recompiling? I have SIP 4.10 and no such error occurs (Ubuntu). However, I can't find the version test you mention anywhere...</p> QGIS Application - Bug report #2446: Python.cmake is wrong about python-sip versionhttps://issues.qgis.org/issues/2446?journal_id=214562010-02-16T01:38:04ZMartin Dobiaswonder.sk@gmail.com
<ul><li><strong>Resolution</strong> set to <i>fixed</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>What QGIS version is that? This is not a problem anymore in SVN trunk (will be released as 1.5).</p>
<p>I think the development releases (v1.1 - v1.4) are affected, but there are no plans for further bugfix releases. So you might fix the problem manually in cmake/Python.cmake file:</p>
<p>Lines (153-155) <br /><pre>
IF (SIP_VERSION EQUAL "${SIP_MIN_VERSION}" OR SIP_VERSION GREATER "${SIP_MIN_VERSION}")
SET (SIP_IS_GOOD TRUE)
ENDIF (SIP_VERSION EQUAL "${SIP_MIN_VERSION}" OR SIP_VERSION GREATER "${SIP_MIN_VERSION}")
</pre><br />change to just<br /><pre>
SET (SIP_IS_GOOD TRUE)
</pre></p> QGIS Application - Bug report #2446: Python.cmake is wrong about python-sip versionhttps://issues.qgis.org/issues/2446?journal_id=214572010-02-16T01:58:02Zantimirov -antimirov@foo.bar
<ul></ul><p>I fixed it with:</p>
<pre>
TRY_RUN_PYTHON (RES "print 40709" SIP_VERSION)
</pre>
<p>40709 is taken from older Ubuntu's python-sip.</p>
<p>2borysiasty:<br />I have QGIS from ubuntugis-unstable PPA, I use it for latest GEOS and Qgis 1.4.</p>
<p>Thanks for the hint about 1.5, I see that SIP detection code was heavily rewritten there.</p>