<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 <<a href="mailto:me@the-compiler.org">me@the-compiler.org</a>> 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>
> Do you think that building as a shared library would solve the<br>
> problem?<br>
<br>
I have no clue - but if you don't have a reason you need a static build,<br>
I probably wouldn't do one ;-) They tend to be more painful than shared<br>
libraries in general from what I'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>