Closed kdar closed 7 years ago
No, standard Qt installation (with dynamic libraries) is assumed. The output binary depends on Qt DLLs (and apparently zlib too). Unfortunately Windows doesn't provide a meaningful error message when running an exe file from terminal, but it would give the proper message when running it from Explorer.
Usually during development you should just add Qt binary directories to PATH
environment variable instead of copying DLL files. And when packaging the application, you need to supply all required DLLs. If you don't have errors about missing Qt DLLs, I guess they are already in PATH
on your system, but zlib DLL is in another directory for some reason.
Ah, you're right about using explorer. The zlib problem is weird because that is in the same directory as the Qt DLLs in my PATH. I'm just going to close this as an oversight on my part though, thanks.
This is what happens initially:
It runs successfully when I put zlib1.dll in the project root:
I'm assuming that because it's not failing for not having the Qt*.dll files in the project root is that this compiles the Qt libs statically?
I don't know if this is an issue to fix on your end. Just a pain point I noticed compiling the example widget app.