[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] Problem compiling PyQt5
From: Tomas Sobota <tom () sobota ! net>
Date: 2014-03-27 23:03:00
Message-ID: CAE-9mpTy9bRH2rLh=D_+TXRifGu8+NWbm4LShxp3mQDwjsrCZA () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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@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@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
[Attachment #5 (text/html)]
<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Phil. Yes, I did \
that, but it was not very helpful.<br></div><div class="gmail_default" \
style="font-size:small">What seems to happen in the configure.py file is this:<br> \
<br></div><div class="gmail_default" style="font-size:small">1. in function \
generate_makefiles there is this code snippet:<br><b> if mname == \
'QtCore':<br> qpy_sources.insert(0, \
'qpycore_post_init.cpp')<br> generate_sip_module_code(target_config, \
verbose, no_timestamp, parts,<br> tracing, mname, sip_flags, \
qpy_sources, qpy_headers)<br> subdirs.append(mname)<br><br> # Embed the sip \
flags.<br> if 'QtCore' in target_config.pyqt_modules:<br> \
inform("Embedding sip flags...")<br></b><br></div><div \
class="gmail_extra"><div class="gmail_default" style="font-size:small">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.<br> \
<br></div><div class="gmail_default" style="font-size:small">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.<br> <br></div><div \
class="gmail_default" style="font-size:small">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 :-)<br> \
<br></div><div class="gmail_default" \
style="font-size:small">Tom<br></div><br><br><div class="gmail_quote">On Thu, Mar 27, \
2014 at 11:19 PM, 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 27-03-2014 7:11 pm, Tomas Sobota wrote:<br> \
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"> Hi,<div class=""><br>
<br>
Im trying to compile the current snapshot of PyQt5<br>
(PyQt-gpl-5.2.2-snapshot-<u></u>d8a05545da5d) on Windows 8. My version of<br>
python is 3.4 32 bits.<br>
<br>
The configuration goes well until it stops complaining that "qmake<br></div>
failed to create a makefile from QtCoreQtCore.pro.<div class=""><br>
<br>
Going into the QtCore folder and running qmake on QtCore,pro fails<br>
because it cannot find the file qpycore_post_init.cpp. Looking at the<br>
configuration file configure.py I notice that qpycore_post_init.cpp<br></div>
should be created from <a href="http://qpyQtCoreqpycore_post_init.cpp.in" \
target="_blank">qpyQtCoreqpycore_post_init.<u></u>cpp.in</a> [1], but<br> somehow it \
isnt.<br> <br>
Any clue about this?<br>
</blockquote>
<br>
Run it with the --verbose flag.<span class=""><font color="#888888"><br>
<br>
Phil</font></span><div class=""><div class="h5"><br>
______________________________<u></u>_________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" \
target="_blank">PyQt@riverbankcomputing.com</a><br> <a \
href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" \
target="_blank">http://www.riverbankcomputing.<u></u>com/mailman/listinfo/pyqt</a><br>
</div></div></blockquote></div><br></div></div>
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic