[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] ImportError
From:       FiFo <fifothekid () gmail ! com>
Date:       2018-09-19 13:48:32
Message-ID: CAOp7GT63+tkFYdHqK77CJiMRxtyo=wb=UZY_Ay8SmhZxjPp-_w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


so here is what I did to get it to work:
1- I completely deleted my Qt5 build directory, and went to the local
repository and cleaned it with:
nmake clean
nmake distclean
2- Configured with
configure -nomake examples -nomake tests -skip qtwebengine -opensource
-developer-build
Then built with
jom
Without doing nmake install
After that I pointed all the environmental variables to the build directory
3- Removed both of sip and PyQt5 and downloaded the latest snapshots
4- Configured and built SIP with:
python configure.py --sip-module PyQt5.sip
nmake
nmake install
5- Configured and installed PyQt5 with shared libraries using the commands:
python configure.py --qmake D:\opencv\qt5\qtbase\bin\qmake.exe --sip-incdir
..\sip-4.19.13.dev1809181320\siplib --sip
d:\opencv\sip-4.19.13.dev1809181320\sipgen\sip.exe --confirm-license
--disable QtNfc
nmake
nmake install

Note that I followed an advice that I found on many websites recommending
disabling QtNfc. It looks like it is causing compilation errors to
everybody, something about duplicate symbols.

Now that I got everything working I hope that you can find solutions for
two problems:
1- Static building on Windows
2- QtNfc build errors

Thanks a lot!

On Tue, Sep 18, 2018 at 6:21 PM Florian Bruhin <me@the-compiler.org> wrote:

> On Tue, Sep 18, 2018 at 06:19:35PM -0300, FiFo wrote:
> > Do you think that building as a shared library would solve the
> > problem?
>
> I have no clue - but if you don't have a reason you need a static build,
> I probably wouldn't do one ;-) They tend to be more painful than shared
> libraries in general from what I've seen.
>
> Florian
>
> --
> https://www.qutebrowser.org | me@the-compiler.org (Mail/XMPP)
>    GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
>          I love long mails! | https://email.is-not-s.ms/
>

[Attachment #5 (text/html)]

<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">so here is what I did to \
get it to work:<div>1- I completely deleted my Qt5 build directory, and went to the \
local repository and cleaned it with:</div><div>nmake clean</div><div>nmake \
distclean</div><div>2- Configured with</div><div>configure -nomake examples -nomake \
tests -skip qtwebengine -opensource -developer-build<br></div><div>Then built \
with</div><div>jom</div><div>Without doing nmake install</div><div>After that I \
pointed all the environmental variables to the build directory</div><div>3- Removed \
both of sip and PyQt5 and downloaded the latest snapshots</div><div>4- Configured and \
built SIP with:</div><div><div>python configure.py --sip-module \
PyQt5.sip</div><div>nmake</div><div>nmake install</div></div><div>5- Configured and \
installed PyQt5 with shared libraries using the commands:</div><div><div>python \
configure.py --qmake D:\opencv\qt5\qtbase\bin\qmake.exe --sip-incdir \
..\sip-4.19.13.dev1809181320\siplib --sip \
d:\opencv\sip-4.19.13.dev1809181320\sipgen\sip.exe --confirm-license --disable \
QtNfc</div><div>nmake</div><div>nmake install</div></div><div><br></div><div>Note \
that I followed an advice that I found on many websites recommending disabling QtNfc. \
It looks like it is causing compilation errors to everybody, something about \
duplicate symbols.</div><div><br></div><div>Now that I got everything working I hope \
that you can find solutions for two problems:</div><div>1- Static building on \
Windows</div></div></div>2- QtNfc build errors</div><div dir="ltr"><br></div><div \
dir="ltr">Thanks a lot!</div><div dir="ltr"><br><div class="gmail_quote"><div \
dir="ltr">On Tue, Sep 18, 2018 at 6:21 PM Florian Bruhin &lt;<a \
href="mailto:me@the-compiler.org">me@the-compiler.org</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Sep 18, 2018 \
at 06:19:35PM -0300, FiFo wrote:<br> &gt; Do you think that building as a shared \
library would solve the<br> &gt; problem?<br>
<br>
I have no clue - but if you don&#39;t have a reason you need a static build,<br>
I probably wouldn&#39;t do one ;-) They tend to be more painful than shared<br>
libraries in general from what I&#39;ve seen.<br>
<br>
Florian<br>
<br>
-- <br>
<a href="https://www.qutebrowser.org" rel="noreferrer" \
target="_blank">https://www.qutebrowser.org</a> | <a \
href="mailto:me@the-compiler.org" target="_blank">me@the-compiler.org</a> \
                (Mail/XMPP)<br>
     GPG: 916E B0C8 FD55 A072 | <a href="https://the-compiler.org/pubkey.asc" \
                rel="noreferrer" \
                target="_blank">https://the-compiler.org/pubkey.asc</a><br>
              I love long mails! | <a href="https://email.is-not-s.ms/" \
rel="noreferrer" target="_blank">https://email.is-not-s.ms/</a><br> \
</blockquote></div></div></div>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://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