<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Phil,<div class=""><br class=""></div><div class="">I have already built qt-everywhere with pyqtdeploy-sysroot and I can see those .lib files in my sysroot-win-32/qt/lib. Is that not enough or I have to build something else?</div><div class=""><br class=""></div><div class=""><img apple-inline="yes" id="AEB98760-4FF6-4406-971C-D016976B67ED" src="cid:C30B231C-A007-4AF5-96C7-BE4E99DC4987@windows.ebi.ac.uk" class=""></div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 22 Aug 2019, at 10:28, Phil Thompson <<a href="mailto:phil@riverbankcomputing.com" class="">phil@riverbankcomputing.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">On 22/08/2019 10:04, Mạnh Tú Vũ wrote:</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">Hello,<br class="">I'm trying to build my PyQt application on Windows and I'm not sure that I<br class="">understand the way it works. I have built my application into a .exe binary<br class="">file but when I was trying to run, it threw an exception of:<br class="">C:\boatswain\boatswain\build-win-32>release\Boatswain.exe<br class=""><blockquote type="cite" class="">Log file:<br class=""><blockquote type="cite" class="">C:\Users\manhtu\AppData\Local\theboatswain\boatswain\Logs\boatswain.log<br class=""></blockquote>Traceback (most recent call last):<br class="">File "bootstrap.py", line 983, in _find_and_load<br class="">File "bootstrap.py", line 967, in _find_and_load_unlocked<br class="">File "bootstrap.py", line 668, in _load_unlocked<br class="">File "bootstrap.py", line 638, in _load_backward_compatible<br class="">File ":/boatswain/__init__.py", line 1, in <module><br class="">File "bootstrap.py", line 983, in _find_and_load<br class="">File "bootstrap.py", line 967, in _find_and_load_unlocked<br class="">File "bootstrap.py", line 668, in _load_unlocked<br class="">File "bootstrap.py", line 638, in _load_backward_compatible<br class="">File ":/boatswain/main.py", line 22, in <module><br class="">File "bootstrap.py", line 983, in _find_and_load<br class="">File "bootstrap.py", line 953, in _find_and_load_unlocked<br class="">File "bootstrap.py", line 219, in _call_with_frames_removed<br class="">File "bootstrap.py", line 983, in _find_and_load<br class="">File "bootstrap.py", line 967, in _find_and_load_unlocked<br class="">File "bootstrap.py", line 668, in _load_unlocked<br class="">File "bootstrap.py", line 638, in _load_backward_compatible<br class="">File ":/PyQt5/__init__.py", line 41, in <module><br class="">File ":/PyQt5/__init__.py", line 33, in find_qt<br class="">ImportError:<br class="">unable to find Qt5Core.dll on PATH<br class=""></blockquote>I suspect, the Qt application was trying to find Qt5Core.dll library,<br class="">however, I see in the Makefile.Release, we had already<br class="">included sysroot-win-32\qt\lib\Qt5Core.lib into the application. So, why<br class="">do we need the .dll library again?<br class=""><blockquote type="cite" class="">LIBS = /LIBPATH:C:\boatswain\boatswain\sysroot-win-32\lib<br class="">/LIBPATH:C:\boatswain\boatswain\sysroot-win-32\l... C:\boatswain\boatswain\sysroot-win-32\qt\lib\Qt5Core.lib<br class="">...<br class=""></blockquote>I have tried to run the app using Qt command line and see it worked.<br class="">Because the required libraries are already included in the PATH env. So,<br class="">does it mean that I have to distribute the .dll libraries with my<br class="">application as well?<br class=""></blockquote><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">If you haven't built a static version of the Qt libraries then yes.</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Phil</span></div></blockquote></div><br class=""></div></body></html>