<div dir="ltr">Hi Phil,<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 12, 2013 at 4:28 AM, Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, 11 Apr 2013 17:21:37 -0600, Larry Shaffer <<a href="mailto:larrys@dakotacarto.com">larrys@dakotacarto.com</a>><br>

wrote:<br>
> Hi,<br>
><br>
> Trying to get the latest PyQt4 4.10 to build but running into this error<br>
> [0].<br>
><br>
> Using sip 4.14.5, Qt 4.8.4 on Mac 10.7.5 with XCode 4.5.1's default<br>
> compiler (from command line).<br>
><br>
> [0] <a href="http://pastebin.com/as5SkZMP" target="_blank">http://pastebin.com/as5SkZMP</a><br>
<br>
You probably have a mismatch between the sip executable being used to<br>
generate the code and the sip.h that the generated code #includes.<br></blockquote><div><br></div><div>Finally got back to this. Indeed the issue was a different header being included. I had (evidently) accidentally installed sip 4.14.0 in the Mac System path before (I usually prefix to /usr/local).<br>
<br></div><div>However, I did notice an issue when configuring/installing PyQt4, where it did not seems to honor the configured .sip dest dir.<br><br></div><div>sip build configure:<br>python2.7 configure.py -d /Library/Python/2.7/site-packages \<br>
  -b /usr/local/bin -e /usr/local/include -v /usr/local/share/sip<br></div><div><br></div><div>PyQt4 build configure:<br>python2.7 configure.py -d /Library/Python/2.7/site-packages \<br>  -b /usr/local/bin -n /usr/local/Qt4.8/qsci<br>
</div><div><br></div><div>The .sip files for PyQt4 were placed in:<br>/System/Library/Frameworks/Python.framework/Versions/2.7/share/sip/PyQt4<br></div><div>not:<br>/usr/local/share/sip/PyQt4<br></div><div><br></div><div>
specifically adding the following to the PyQt4 build configure line worked:<br></div><div>-v /usr/local/share/sip/PyQt4</div><div><br></div><div>This was with both configure.py and configure-ng.py. Shouldn't the .sip dest dir be picked up from sip as a default for building PyQt4?<br>
</div><div><br><br></div><div>Regards,<br><br>Larry Shaffer<br>Dakota Cartography<br>Black Hills, South Dakota<br></div><div><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<span class=""><font color="#888888"><br>
Phil<br>
</font></span></blockquote></div><br></div></div></div>