https://issues.qgis.org/https://issues.qgis.org/favicon.ico2009-10-04T10:34:48ZQGIS Issue TrackingQGIS Application - Bug report #1959: Trunk build fails with sip-4.9 and PyQt-4.6https://issues.qgis.org/issues/1959?journal_id=200952009-10-04T10:34:48ZJohn Tull
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>fixed</i></li></ul><p>With qt-4.5.3, this appears to be fixed.</p> QGIS Application - Bug report #1959: Trunk build fails with sip-4.9 and PyQt-4.6https://issues.qgis.org/issues/1959?journal_id=200962009-10-04T12:52:32ZJohn Tull
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Feedback</i></li><li><strong>Resolution</strong> deleted (<del><i>fixed</i></del>)</li></ul><p>Replying to [comment:1 jctull]:</p>
<blockquote>
<p>With qt-4.5.3, this appears to be fixed.</p>
</blockquote>
<p>I jumped the gun. Still unable to build with sip-4.9 and pyqt4.6.</p> QGIS Application - Bug report #1959: Trunk build fails with sip-4.9 and PyQt-4.6https://issues.qgis.org/issues/1959?journal_id=200972009-10-05T19:08:46Zvince -vince@macports.org
<ul></ul><p>Try this on the python/core directory:<br /><pre>
sed -E "s|sipClass(_\\[^,\\]+)|(sipWrapperType *) sipTypeAsPyTypeObject (sipType\\\\1)|" conversions.sip > tmp.sip
rm conversions.sip
mv tmp.sip conversions.sip
</pre></p>
<p>It should work.</p> QGIS Application - Bug report #1959: Trunk build fails with sip-4.9 and PyQt-4.6https://issues.qgis.org/issues/1959?journal_id=200982009-10-06T09:40:04ZJohn Tull
<ul></ul><p>I tried the above suggestion, but got an error with the sed command. My sed knowledge is not enough to sort out the issue.</p>
<p>sed -E "s|sipClass(_\\[^,\\]+)|(sipWrapperType *) sipTypeAsPyTypeObject</p>
<blockquote>
<p>(sipType\\\\1)|" conversions.sip > tmp.sip</p>
</blockquote>
<p>sed: 1: "s|sipClass(_\\[^,\\]+)|(s ...": unescaped newline inside substitute pattern</p> QGIS Application - Bug report #1959: Trunk build fails with sip-4.9 and PyQt-4.6https://issues.qgis.org/issues/1959?journal_id=200992009-10-06T21:21:51Zvince -vince@macports.org
<ul></ul><p>Ah, apologies, I just cut/pasted out of a tcl script (Macports), where some characters must be escaped. The right command is:</p>
<pre>
sed -E "s|sipClass(_[^,]+)|(sipWrapperType *) sipTypeAsPyTypeObject (sipType\\1)|" conversions.sip > tmp.sip
rm conversions.sip
</pre>
<p>Sorry for that.</p> QGIS Application - Bug report #1959: Trunk build fails with sip-4.9 and PyQt-4.6https://issues.qgis.org/issues/1959?journal_id=201002009-10-07T19:02:15ZJohn Tull
<ul></ul><p>Replying to [comment:5 vince]:</p>
<blockquote>
<p>Ah, apologies, I just cut/pasted out of a tcl script (Macports), where some characters must be escaped. The right command is:</p>
</blockquote>
<pre>
> sed -E "s|sipClass(_[^,]+)|(sipWrapperType *) sipTypeAsPyTypeObject (sipType\\1)|" conversions.sip > tmp.sip
> rm conversions.sip
</pre>
<blockquote>
<p>Sorry for that.</p>
</blockquote>
<p>The sed command and appropriate replacement of the conversions.php file worked on the current trunk. Is this something that can be worked into the source code with an OS and lib check?</p> QGIS Application - Bug report #1959: Trunk build fails with sip-4.9 and PyQt-4.6https://issues.qgis.org/issues/1959?journal_id=201012009-10-07T20:10:20Zvince -vince@macports.org
<ul></ul><p>This is not OS dependent, it is caused by a change of API between SIP 4.8 and 4.9. The version of SIP should be tested.</p> QGIS Application - Bug report #1959: Trunk build fails with sip-4.9 and PyQt-4.6https://issues.qgis.org/issues/1959?journal_id=201022009-10-08T07:11:29ZJürgen Fischerjef@norbit.de
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>fixed</i></li></ul><p>Replying to [comment:7 vince]:</p>
<blockquote>
<p>This is not OS dependent, it is caused by a change of API between SIP 4.8 and 4.9. The version of SIP should be tested.</p>
</blockquote>
<pre></pre> QGIS Application - Bug report #1959: Trunk build fails with sip-4.9 and PyQt-4.6https://issues.qgis.org/issues/1959?journal_id=201032009-10-08T14:02:30ZJürgen Fischerjef@norbit.de
<ul></ul><p>Replying to [comment:8 jef]:</p>
<blockquote>
<p>Replying to [comment:7 vince]:</p>
<blockquote>
<p>This is not OS dependent, it is caused by a change of API between SIP 4.8 and 4.9. The version of SIP should be tested.</p>
</blockquote>
</blockquote>
<pre>
but not with 4.7. commit:94ab29b1 (SVN r11781) hopefully works with all of them.</pre> QGIS Application - Bug report #1959: Trunk build fails with sip-4.9 and PyQt-4.6https://issues.qgis.org/issues/1959?journal_id=201042010-01-08T10:17:51ZMicha Silvermicha@arava.co.il
<ul></ul><p>Compiling <strong>qgis 1.3</strong> on Fedora 12, I came across the same bug. The version of sip supplied on Fedora 12 is 4.9.3 .<br />Changing the conversions.sip file as suggested above solved the problem, and 'make' completed successfully.</p>