<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I'm having a problem building PyQt 4.6.2 against local builds of
Qt4.6.0 and SIP 4.9.3. <br>
Basically the includes paths in the calls to g++ point to the wrong
place.<br>
<br>
I have my build of Qt in /home/me/qt4. <br>
<br>
I try to build PyQt, pointing it to my Qt's qmake:<br>
<br>
<blockquote>python configure.py -q /home/me/qt4/bin/qmake<br>
make <br>
</blockquote>
<br>
It eventually fails due to not being able to find headers:<br>
<br>
<blockquote>In file included from sipQtCorecmodule.cpp:34:<br>
sipAPIQtCore.h:40:21: error: QMetaType: No such file or directory<br>
In file included from sip/QtCore/qobject.sip:560,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from sipQtCorecmodule.cpp:34:<br>
/home/me/PyQt-x11-gpl-4.6.2/qpy/QtCore/qpycore_api.h:36:28: error:
QCoreApplication: No such file or directory<br>
/home/me/PyQt-x11-gpl-4.6.2/qpy/QtCore/qpycore_api.h:37:19: error:
QString: No such file or directory<br>
/home/me/PyQt-x11-gpl-4.6.2/qpy/QtCore/qpycore_api.h:38:20: error:
QVariant: No such file or directory<br>
....<br>
....<br>
  <br>
</blockquote>
<br>
I noticed this in the build output:<br>
<br>
<blockquote>Qt v4.6.0 free edition is being used.<br>
SIP 4.9.3 is being used.<br>
The Qt header files are in /usr/include/qt4.<br>
The shared Qt libraries are in /usr/lib.<br>
The Qt binaries are in /usr/bin.<br>
The Qt mkspecs directory is in /usr/share/qt4.<br>
</blockquote>
and ended up with these include paths in the calls to g++: <br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtCore
-I/usr/include/qt4 <br>
<br>
<br>
All the references to /usr/* are incorrect. They should refer to
/home/me/qt4/...<br>
<br>
Anyone know what I'm missing? Is there a straightforward way to get the
include paths to be correct?<br>
I've been stuck on this all day. :( Figured I'd check here before doing
some heinous hacks.<br>
<br>
Thanks!<br>
<br>
Josh<br>
</body>
</html>