[PyQt] Problem compiling PyQt5

Tomas Sobota tom at sobota.net
Thu Mar 27 23:03:00 GMT 2014


Hi Phil. Yes, I did that, but it was not very helpful.
What seems to happen in the configure.py file is this:

1. in function generate_makefiles there is this code snippet:









*        if mname == 'QtCore':            qpy_sources.insert(0,
'qpycore_post_init.cpp')        generate_sip_module_code(target_config,
verbose, no_timestamp, parts,                tracing, mname, sip_flags,
qpy_sources, qpy_headers)        subdirs.append(mname)    # Embed the sip
flags.    if 'QtCore' in target_config.pyqt_modules:
inform("Embedding sip flags...")*
which has the effect of generating a file QtCore/qpycore_post_init.cpp
from another file, substituting a few marker strings with compilation
flags. But before this file is created (after the message "Embedding sip
flags"), it is expected by generate_sip_module_code, which is called when
the file doesn't yet exist.

So I put the generation of the file before the call to
generate_sip_module_code, and it works ... for a while, but then the file
gets deleted somewhere else. To find where, I write-protected the file
inmediately after creation.

I'm not familiar with this file, so I'm just dabbling here and there to see
if I can make it finish the configuration. But I'm calling it quits now and
going to sleep :-)

Tom


On Thu, Mar 27, 2014 at 11:19 PM, Phil Thompson <phil at riverbankcomputing.com
> wrote:

> On 27-03-2014 7:11 pm, Tomas Sobota wrote:
>
>> Hi,
>>
>>
>> Im trying to compile the current snapshot of PyQt5
>> (PyQt-gpl-5.2.2-snapshot-d8a05545da5d) on Windows 8. My version of
>> python is 3.4 32 bits.
>>
>> The configuration goes well until it stops complaining that "qmake
>> failed to create a makefile from QtCoreQtCore.pro.
>>
>>
>>  Going into the QtCore folder and running qmake on QtCore,pro fails
>> because it cannot find the file qpycore_post_init.cpp. Looking at the
>> configuration file configure.py I notice that qpycore_post_init.cpp
>> should be created from qpyQtCoreqpycore_post_init.cpp.in [1], but
>> somehow it isnt.
>>
>> Any clue about this?
>>
>
> Run it with the --verbose flag.
>
> Phil
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140328/29d7d8a4/attachment-0001.html>


More information about the PyQt mailing list