<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello,<div><br></div><div>I'm trying to build my PyQt application on Windows and I'm not sure that I understand the way it works. I have built my application into a .exe binary file but when I was trying to run, it threw an exception of:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">C:\boatswain\boatswain\build-win-32>release\Boatswain.exe</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Log file: C:\Users\manhtu\AppData\Local\theboatswain\boatswain\Logs\boatswain.log</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Traceback (most recent call last):</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">File "bootstrap.py", line 983, in _find_and_load</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">File "bootstrap.py", line 967, in _find_and_load_unlocked</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">File "bootstrap.py", line 668, in _load_unlocked</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">File "bootstrap.py", line 638, in _load_backward_compatible</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">File ":/boatswain/__init__.py", line 1, in <module></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">File "bootstrap.py", line 983, in _find_and_load</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">File "bootstrap.py", line 967, in _find_and_load_unlocked</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">File "bootstrap.py", line 668, in _load_unlocked</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">File "bootstrap.py", line 638, in _load_backward_compatible</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">File ":/boatswain/main.py", line 22, in <module></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">File "bootstrap.py", line 983, in _find_and_load</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">File "bootstrap.py", line 953, in _find_and_load_unlocked</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">File "bootstrap.py", line 219, in _call_with_frames_removed</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">File "bootstrap.py", line 983, in _find_and_load</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">File "bootstrap.py", line 967, in _find_and_load_unlocked</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">File "bootstrap.py", line 668, in _load_unlocked</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">File "bootstrap.py", line 638, in _load_backward_compatible</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">File ":/PyQt5/__init__.py", line 41, in <module></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">File ":/PyQt5/__init__.py", line 33, in find_qt</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">ImportError:</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">unable to find Qt5Core.dll on PATH</blockquote></blockquote><div><br></div><div>I suspect, the Qt application was trying to find Qt5Core.dll library, however, I see in the Makefile.Release, we had already included  sysroot-win-32\qt\lib\Qt5Core.lib into the application. So, why do we need the .dll library again?</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">LIBS          = /LIBPATH:C:\boatswain\boatswain\sysroot-win-32\lib /LIBPATH:C:\boatswain\boatswain\sysroot-win-32\l... C:\boatswain\boatswain\sysroot-win-32\qt\lib\Qt5Core.lib ...<br></blockquote><div><br></div><div>I have tried to run the app using Qt command line and see it worked. Because the required libraries are already included in the PATH env. So, does it mean that I have to distribute the .dll libraries with my application as well?</div><div><br></div><div>Thank you,</div><div><br></div><div>Tu </div></div></div></div></div></div>