<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br><br><div><hr id="stopSpelling">From: emayssat@epicsqt.org<br>To: pyqt@riverbankcomputing.com<br>CC: emayssat@epicsqt.org<br>Subject: SIP building of QtCoremod.sip<br>Date: Thu, 24 Jul 2014 23:25:37 -0700<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr">To be better acquainted with SIP on large software project, I am trying to build the PyQt bindings that are already on my system.<br><br>$ pwd<br>/usr/share/sip/PyQt4/QtCore<br>$ ls<br>configure.py                  qfileinfo.sip              qpair.sip                      qstringmatcher.sip<br>qabstractanimation.sip        qfile.sip                  qparallelanimationgroup.sip    qstring.sip<br>qabstracteventdispatcher.sip  qfilesystemwatcher.sip     qpauseanimation.sip            qsystemsemaphore.sip<br>qabstractfileengine.sip       qfinalstate.sip            qpluginloader.sip              QtCoremod.sbf<br>qabstractitemmodel.sip        qfsfileengine.sip          qpoint.sip                     QtCoremod.sip<br>[...]<br><br><br>Now I am trying to build a configure.py file, with the following code<br><br>$ more configure.py <br>import os<br>import sipconfig<br><br># The name of the SIP build file generated by SIP and used by the build<br># system.<br>build_file = "./sip.d/QtCoremod.sbf"<br><br>build_dir = "./sip.d"<br>specification_sip = "QtCoremod.sip"<br>platform = "WS_X11"<br><br># Get the SIP configuration information.<br>config = sipconfig.Configuration()<br><br># Run SIP to generate the code.<br>os.system("rm -rf ./sip.d")<br>os.mkdir("./sip.d")<br>os.system(" ".join([config.sip_bin, "-c", build_dir, "-b", build_file, "-t", platform, specification_sip ]))<br><br># Create the Makefile.<br>makefile = sipconfig.SIPModuleMakefile(config, build_file)<br><br># Add the library we are wrapping.  The name doesn't include any platform<br># specific prefixes or extensions (e.g. the "lib" prefix on UNIX, or the<br># ".dll" extension on Windows).<br>makefile.extra_libs = ["QtCore"]<br><br>#look in the currents directory too for libraries<br>makefile.extra_lib_dirs = ["."]<br><br># Generate the Makefile itself.<br>os.chdir(build_dir)<br>makefile.generate()<br><br><br>When I 'sudo python configure'.py'. there is no output (meaning probably it is successful since sip files are generated.<br>Nevertheless, when I run make -C ./sip.d, I get <br><br>$ sudo make<br>g++ -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o sipQtCorecmodule.o sipQtCorecmodule.cpp<br>In file included from sipQtCorecmodule.cpp:29:0:<br>sipAPIQtCore.h:35:21: fatal error: QMetaType: No such file or directory<br>compilation terminated.<br>make: *** [sipQtCorecmodule.o] Error 1<br><br><br>!?!?!?<br>Is my configuration file ok?<br>Regards,<br>--<br>E<br>                                          </div></div>                                        </div></body>
</html>