How do I compile a .exe file which I can run on any windows computer?
-
I've tried to find instructions for doing this, but everything appears to be outdated as it refers to files and folders that do not exist on my system. (I have Qt 5.9.1)
I have a Qt Widgets project which I need to release. I am using MinGW 32 bit which is included with Qt Creator.
-
Hi and welcome to devnet,
This question has already been asked many times already in the last few months, please search the forum a bit and take a look at windeployqt.
-
Did you copy the the SD2.dll file beside your application ?
Check everything with Dependency Walker ?
-
No. I don't want the end user to download anything but the .exe, like QDriverStation does.
I don't know what Dependency Walker is.I've found dependency walker but it produces errors when analyzing the executable.
Error: At least one required implicit or forwarded dependency was not found. Warning: At least one delay-load dependency module was not found. Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
-
What dependency triggers that ?
-
I thought so. The problem is, I cannot find instructions for statically compiling things that are up to date.
I'm not sure which dependency triggers it. There appear to be a very large number of unresolved dependencies.
API-MS-WIN-CORE-APPCOMPAT-L1-1-0.DLL API-MS-WIN-CORE-APPCOMPAT-L1-1-1.DLL API-MS-WIN-CORE-APPINIT-L1-1-0.DLL API-MS-WIN-CORE-ATOMS-L1-1-0.DLL API-MS-WIN-CORE-COM-L1-1-0.DLL API-MS-WIN-CORE-COM-L1-1-2.DLL API-MS-WIN-CORE-COM-MIDLPROXYSTUB-L1-1-0.DLL API-MS-WIN-CORE-COM-PRIVATE-L1-1-0.DLL API-MS-WIN-CORE-COM-PRIVATE-L1-1-1.DLL API-MS-WIN-CORE-COMM-L1-1-0.DLL API-MS-WIN-CORE-CONSOLE-L1-1-0.DLL API-MS-WIN-CORE-CONSOLE-L2-1-0.DLL API-MS-WIN-CORE-CONSOLE-L3-1-0.DLL API-MS-WIN-CORE-CRT-L1-1-0.DLL API-MS-WIN-CORE-CRT-L2-1-0.DLL API-MS-WIN-CORE-DATETIME-L1-1-0.DLL API-MS-WIN-CORE-DATETIME-L1-1-1.DLL API-MS-WIN-CORE-DATETIME-L1-1-2.DLL API-MS-WIN-CORE-DEBUG-L1-1-0.DLL API-MS-WIN-CORE-DEBUG-L1-1-1.DLL API-MS-WIN-CORE-DELAYLOAD-L1-1-0.DLL API-MS-WIN-CORE-DELAYLOAD-L1-1-1.DLL API-MS-WIN-CORE-ERRORHANDLING-L1-1-0.DLL API-MS-WIN-CORE-ERRORHANDLING-L1-1-2.DLL API-MS-WIN-CORE-ERRORHANDLING-L1-1-3.DLL API-MS-WIN-CORE-FIBERS-L1-1-0.DLL API-MS-WIN-CORE-FIBERS-L1-1-1.DLL API-MS-WIN-CORE-FIBERS-L2-1-0.DLL API-MS-WIN-CORE-FIBERS-L2-1-1.DLL API-MS-WIN-CORE-FILE-L1-1-0.DLL API-MS-WIN-CORE-FILE-L1-2-0.DLL API-MS-WIN-CORE-FILE-L1-2-1.DLL API-MS-WIN-CORE-FILE-L1-2-2.DLL API-MS-WIN-CORE-FILE-L2-1-0.DLL API-MS-WIN-CORE-FILE-L2-1-1.DLL API-MS-WIN-CORE-FILE-L2-1-2.DLL API-MS-WIN-CORE-FILE-L2-1-3.DLL API-MS-WIN-CORE-HANDLE-L1-1-0.DLL API-MS-WIN-CORE-HEAP-L1-1-0.DLL API-MS-WIN-CORE-HEAP-L2-1-0.DLL API-MS-WIN-CORE-HEAP-OBSOLETE-L1-1-0.DLL API-MS-WIN-CORE-INTERLOCKED-L1-1-0.DLL API-MS-WIN-CORE-IO-L1-1-0.DLL API-MS-WIN-CORE-IO-L1-1-1.DLL API-MS-WIN-CORE-JOB-L1-1-0.DLL API-MS-WIN-CORE-JOB-L2-1-0.DLL API-MS-WIN-CORE-KERNEL32-LEGACY-L1-1-0.DLL API-MS-WIN-CORE-KERNEL32-LEGACY-L1-1-1.DLL API-MS-WIN-CORE-KERNEL32-LEGACY-L1-1-2.DLL API-MS-WIN-CORE-KERNEL32-PRIVATE-L1-1-0.DLL API-MS-WIN-CORE-KERNEL32-PRIVATE-L1-1-2.DLL API-MS-WIN-CORE-LARGEINTEGER-L1-1-0.DLL API-MS-WIN-CORE-LIBRARYLOADER-L1-2-0.DLL API-MS-WIN-CORE-LIBRARYLOADER-L1-2-1.DLL API-MS-WIN-CORE-LIBRARYLOADER-L1-2-2.DLL API-MS-WIN-CORE-LIBRARYLOADER-L2-1-0.DLL API-MS-WIN-CORE-LOCALIZATION-L1-2-0.DLL API-MS-WIN-CORE-LOCALIZATION-L1-2-2.DLL API-MS-WIN-CORE-LOCALIZATION-L2-1-0.DLL API-MS-WIN-CORE-LOCALIZATION-OBSOLETE-L1-2-0.DLL API-MS-WIN-CORE-LOCALIZATION-PRIVATE-L1-1-0.DLL API-MS-WIN-CORE-MEMORY-L1-1-0.DLL API-MS-WIN-CORE-MEMORY-L1-1-1.DLL API-MS-WIN-CORE-MEMORY-L1-1-2.DLL API-MS-WIN-CORE-MEMORY-L1-1-3.DLL API-MS-WIN-CORE-NAMEDPIPE-L1-1-0.DLL API-MS-WIN-CORE-NAMEDPIPE-L1-2-1.DLL API-MS-WIN-CORE-NAMEDPIPE-L1-2-2.DLL API-MS-WIN-CORE-NAMESPACE-L1-1-0.DLL API-MS-WIN-CORE-NORMALIZATION-L1-1-0.DLL API-MS-WIN-CORE-PATH-L1-1-0.DLL API-MS-WIN-CORE-PERFCOUNTERS-L1-1-0.DLL API-MS-WIN-CORE-PRIVATEPROFILE-L1-1-0.DLL API-MS-WIN-CORE-PROCESSENVIRONMENT-L1-1-0.DLL API-MS-WIN-CORE-PROCESSENVIRONMENT-L1-2-0.DLL API-MS-WIN-CORE-PROCESSSNAPSHOT-L1-1-0.DLL API-MS-WIN-CORE-PROCESSTHREADS-L1-1-0.DLL API-MS-WIN-CORE-PROCESSTHREADS-L1-1-1.DLL API-MS-WIN-CORE-PROCESSTHREADS-L1-1-2.DLL API-MS-WIN-CORE-PROCESSTHREADS-L1-1-3.DLL API-MS-WIN-CORE-PROCESSTOPOLOGY-L1-1-0.DLL API-MS-WIN-CORE-PROFILE-L1-1-0.DLL API-MS-WIN-CORE-PSAPI-ANSI-L1-1-0.DLL API-MS-WIN-CORE-PSAPI-L1-1-0.DLL API-MS-WIN-CORE-PSM-KEY-L1-1-0.DLL API-MS-WIN-CORE-QUIRKS-L1-1-0.DLL API-MS-WIN-CORE-REALTIME-L1-1-0.DLL API-MS-WIN-CORE-REGISTRY-L1-1-0.DLL API-MS-WIN-CORE-REGISTRY-L1-1-1.DLL API-MS-WIN-CORE-REGISTRY-L1-1-2.DLL API-MS-WIN-CORE-REGISTRYUSERSPECIFIC-L1-1-0.DLL API-MS-WIN-CORE-RTLSUPPORT-L1-1-0.DLL API-MS-WIN-CORE-RTLSUPPORT-L1-2-0.DLL API-MS-WIN-CORE-SHLWAPI-LEGACY-L1-1-0.DLL API-MS-WIN-CORE-SHLWAPI-OBSOLETE-L1-1-0.DLL API-MS-WIN-CORE-SIDEBYSIDE-L1-1-0.DLL API-MS-WIN-CORE-STRING-L1-1-0.DLL API-MS-WIN-CORE-STRING-L2-1-0.DLL API-MS-WIN-CORE-STRING-L2-1-1.DLL API-MS-WIN-CORE-STRING-OBSOLETE-L1-1-0.DLL API-MS-WIN-CORE-STRINGANSI-L1-1-0.DLL API-MS-WIN-CORE-SYNCH-L1-1-0.DLL API-MS-WIN-CORE-SYNCH-L1-2-0.DLL API-MS-WIN-CORE-SYNCH-L1-2-1.DLL API-MS-WIN-CORE-SYSINFO-L1-1-0.DLL API-MS-WIN-CORE-SYSINFO-L1-2-0.DLL API-MS-WIN-CORE-SYSINFO-L1-2-1.DLL API-MS-WIN-CORE-SYSINFO-L1-2-3.DLL API-MS-WIN-CORE-SYSTEMTOPOLOGY-L1-1-0.DLL API-MS-WIN-CORE-SYSTEMTOPOLOGY-L1-1-1.DLL API-MS-WIN-CORE-THREADPOOL-L1-2-0.DLL API-MS-WIN-CORE-THREADPOOL-LEGACY-L1-1-0.DLL API-MS-WIN-CORE-THREADPOOL-PRIVATE-L1-1-0.DLL API-MS-WIN-CORE-TIMEZONE-L1-1-0.DLL API-MS-WIN-CORE-URL-L1-1-0.DLL API-MS-WIN-CORE-UTIL-L1-1-0.DLL API-MS-WIN-CORE-VERSION-L1-1-0.DLL API-MS-WIN-CORE-VERSION-L1-1-1.DLL API-MS-WIN-CORE-VERSION-PRIVATE-L1-1-0.DLL API-MS-WIN-CORE-VERSIONANSI-L1-1-0.DLL API-MS-WIN-CORE-VERSIONANSI-L1-1-1.DLL API-MS-WIN-CORE-WINDOWSERRORREPORTING-L1-1-0.DLL API-MS-WIN-CORE-WINDOWSERRORREPORTING-L1-1-1.DLL API-MS-WIN-CORE-WINDOWSERRORREPORTING-L1-1-2.DLL API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL API-MS-WIN-CORE-WOW64-L1-1-0.DLL API-MS-WIN-CORE-WOW64-L1-1-1.DLL API-MS-WIN-CORE-XSTATE-L2-1-0.DLL API-MS-WIN-CRT-PRIVATE-L1-1-0.DLL API-MS-WIN-CRT-RUNTIME-L1-1-0.DLL API-MS-WIN-CRT-STRING-L1-1-0.DLL API-MS-WIN-DEVICES-CONFIG-L1-1-1.DLL API-MS-WIN-EVENTING-CLASSICPROVIDER-L1-1-0.DLL API-MS-WIN-EVENTING-CONSUMER-L1-1-0.DLL API-MS-WIN-EVENTING-CONSUMER-L1-1-1.DLL API-MS-WIN-EVENTING-CONTROLLER-L1-1-0.DLL API-MS-WIN-EVENTING-PROVIDER-L1-1-0.DLL API-MS-WIN-GDI-INTERNAL-UAP-L1-1-0.DLL API-MS-WIN-MM-MISC-L1-1-0.DLL API-MS-WIN-MM-MME-L1-1-0.DLL API-MS-WIN-MM-TIME-L1-1-0.DLL API-MS-WIN-SECURITY-APPCONTAINER-L1-1-0.DLL API-MS-WIN-SECURITY-AUDIT-L1-1-0.DLL API-MS-WIN-SECURITY-AUDIT-L1-1-1.DLL API-MS-WIN-SECURITY-BASE-L1-1-0.DLL API-MS-WIN-SECURITY-BASE-L1-2-0.DLL API-MS-WIN-SECURITY-BASE-PRIVATE-L1-1-0.DLL API-MS-WIN-SECURITY-CAPABILITY-L1-1-0.DLL API-MS-WIN-SECURITY-LSALOOKUP-L1-1-0.DLL API-MS-WIN-SECURITY-LSAPOLICY-L1-1-0.DLL API-MS-WIN-SERVICE-CORE-L1-1-0.DLL API-MS-WIN-SERVICE-CORE-L1-1-1.DLL API-MS-WIN-SERVICE-CORE-L1-1-2.DLL API-MS-WIN-SERVICE-MANAGEMENT-L1-1-0.DLL API-MS-WIN-SERVICE-MANAGEMENT-L2-1-0.DLL API-MS-WIN-SERVICE-PRIVATE-L1-1-0.DLL API-MS-WIN-SERVICE-PRIVATE-L1-1-2.DLL API-MS-WIN-SERVICE-PRIVATE-L1-1-3.DLL API-MS-WIN-SERVICE-PRIVATE-L1-1-4.DLL API-MS-WIN-SERVICE-WINSVC-L1-1-0.DLL API-MS-WIN-SHCORE-PATH-L1-1-0.DLL API-MS-WIN-SHELL-SHELLCOM-L1-1-0.DLL API-MS-WIN-SHELL-SHELLFOLDERS-L1-1-0.DLL API-MS-WIN-STORAGE-EXPORTS-EXTERNAL-L1-1-0.DLL API-MS-WIN-STORAGE-EXPORTS-INTERNAL-L1-1-0.DLL SDL2.DLL API-MS-WIN-APPMODEL-IDENTITY-L1-2-0.DLL API-MS-WIN-APPMODEL-RUNTIME-INTERNAL-L1-1-0.DLL API-MS-WIN-APPMODEL-RUNTIME-INTERNAL-L1-1-1.DLL API-MS-WIN-APPMODEL-RUNTIME-INTERNAL-L1-1-2.DLL API-MS-WIN-APPMODEL-RUNTIME-L1-1-0.DLL API-MS-WIN-APPMODEL-RUNTIME-L1-1-1.DLL API-MS-WIN-APPMODEL-STATE-L1-2-0.DLL API-MS-WIN-APPMODEL-UNLOCK-L1-1-0.DLL API-MS-WIN-BASE-UTIL-L1-1-0.DLL API-MS-WIN-CORE-CALENDAR-L1-1-0.DLL API-MS-WIN-CORE-COM-L1-1-1.DLL API-MS-WIN-CORE-COM-L2-1-1.DLL API-MS-WIN-CORE-DEBUG-MINIDUMP-L1-1-0.DLL API-MS-WIN-CORE-FIRMWARE-L1-1-0.DLL API-MS-WIN-CORE-KERNEL32-PRIVATE-L1-1-1.DLL API-MS-WIN-CORE-LIBRARYLOADER-L1-1-0.DLL API-MS-WIN-CORE-LOCALIZATION-L1-1-0.DLL API-MS-WIN-CORE-LOCALREGISTRY-L1-1-0.DLL API-MS-WIN-CORE-MARSHAL-L1-1-0.DLL API-MS-WIN-CORE-MISC-L1-1-0.DLL API-MS-WIN-CORE-PRIVATEPROFILE-L1-1-1.DLL API-MS-WIN-CORE-PROCESSTOPOLOGY-OBSOLETE-L1-1-0.DLL API-MS-WIN-CORE-PSM-APP-L1-1-0.DLL API-MS-WIN-CORE-PSM-APPNOTIFY-L1-1-0.DLL API-MS-WIN-CORE-REALTIME-L1-1-1.DLL API-MS-WIN-CORE-REGISTRY-L2-1-0.DLL API-MS-WIN-CORE-REGISTRY-PRIVATE-L1-1-0.DLL API-MS-WIN-CORE-SHUTDOWN-L1-1-0.DLL API-MS-WIN-CORE-TOOLHELP-L1-1-0.DLL API-MS-WIN-CORE-WINRT-ERROR-L1-1-1.DLL API-MS-WIN-CORE-WINRT-ERRORPRIVATE-L1-1-0.DLL API-MS-WIN-CORE-WINRT-L1-1-0.DLL API-MS-WIN-CORE-WINRT-PROPERTYSETPRIVATE-L1-1-0.DLL API-MS-WIN-CORE-WINRT-PROPERTYSETPRIVATE-L1-1-1.DLL API-MS-WIN-CORE-WINRT-REGISTRATION-L1-1-0.DLL API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL API-MS-WIN-COREUI-SECRUNTIME-L1-1-0.DLL API-MS-WIN-CRT-HEAP-L1-1-0.DLL API-MS-WIN-CRT-LOCALE-L1-1-0.DLL API-MS-WIN-CRT-MATH-L1-1-0.DLL API-MS-WIN-CRT-PROCESS-L1-1-0.DLL API-MS-WIN-CRT-TIME-L1-1-0.DLL API-MS-WIN-CRT-UTILITY-L1-1-0.DLL API-MS-WIN-DEVICES-QUERY-L1-1-0.DLL API-MS-WIN-DOWNLEVEL-ADVAPI32-L1-1-0.DLL API-MS-WIN-DOWNLEVEL-ADVAPI32-L2-1-0.DLL API-MS-WIN-DOWNLEVEL-KERNEL32-L2-1-0.DLL API-MS-WIN-DOWNLEVEL-NORMALIZ-L1-1-0.DLL API-MS-WIN-DOWNLEVEL-OLE32-L1-1-0.DLL API-MS-WIN-DOWNLEVEL-SHELL32-L1-1-0.DLL API-MS-WIN-DOWNLEVEL-SHLWAPI-L1-1-0.DLL API-MS-WIN-DOWNLEVEL-SHLWAPI-L2-1-0.DLL API-MS-WIN-DOWNLEVEL-USER32-L1-1-0.DLL API-MS-WIN-DOWNLEVEL-VERSION-L1-1-0.DLL API-MS-WIN-DWMAPI-L1-1-0.DLL API-MS-WIN-DX-D3DKMT-L1-1-0.DLL API-MS-WIN-DX-D3DKMT-L1-1-1.DLL API-MS-WIN-DX-D3DKMT-L1-1-2.DLL API-MS-WIN-DX-D3DKMT-L1-1-3.DLL API-MS-WIN-DX-D3DKMT-L1-1-4.DLL API-MS-WIN-EVENTING-LEGACY-L1-1-0.DLL API-MS-WIN-EVENTING-OBSOLETE-L1-1-0.DLL API-MS-WIN-EVENTING-TDH-L1-1-0.DLL API-MS-WIN-EVENTLOG-LEGACY-L1-1-0.DLL API-MS-WIN-GDI-DPIINFO-L1-1-0.DLL API-MS-WIN-HTTP-TIME-L1-1-0.DLL API-MS-WIN-MM-JOYSTICK-L1-1-0.DLL API-MS-WIN-MM-MISC-L2-1-0.DLL API-MS-WIN-NETWORKING-INTERFACECONTEXTS-L1-1-0.DLL API-MS-WIN-NTUSER-RECTANGLE-L1-1-0.DLL API-MS-WIN-NTUSER-SYSPARAMS-L1-1-0.DLL API-MS-WIN-OLE32-IE-L1-1-0.DLL API-MS-WIN-OOBE-NOTIFICATION-L1-1-0.DLL API-MS-WIN-POWER-BASE-L1-1-0.DLL API-MS-WIN-POWER-SETTING-L1-1-0.DLL API-MS-WIN-RTCORE-NTUSER-CLIPBOARD-L1-1-0.DLL API-MS-WIN-RTCORE-NTUSER-PRIVATE-L1-1-0.DLL API-MS-WIN-RTCORE-NTUSER-PRIVATE-L1-1-1.DLL API-MS-WIN-RTCORE-NTUSER-PRIVATE-L1-1-4.DLL API-MS-WIN-RTCORE-NTUSER-SHELL-L1-1-0.DLL API-MS-WIN-RTCORE-NTUSER-SYNCH-L1-1-0.DLL API-MS-WIN-RTCORE-NTUSER-WINDOW-L1-1-0.DLL API-MS-WIN-RTCORE-NTUSER-WINEVENT-L1-1-0.DLL API-MS-WIN-SECURITY-ACCESSHLPR-L1-1-0.DLL API-MS-WIN-SECURITY-ACTIVEDIRECTORYCLIENT-L1-1-0.DLL API-MS-WIN-SECURITY-ACTIVEDIRECTORYCLIENT-L1-1-1.DLL API-MS-WIN-SECURITY-CREDENTIALS-L1-1-0.DLL API-MS-WIN-SECURITY-CREDENTIALS-L2-1-0.DLL API-MS-WIN-SECURITY-CRYPTOAPI-L1-1-0.DLL API-MS-WIN-SECURITY-GROUPPOLICY-L1-1-0.DLL API-MS-WIN-SECURITY-ISOLATEDCONTAINER-L1-1-0.DLL API-MS-WIN-SECURITY-LOGON-L1-1-0.DLL API-MS-WIN-SECURITY-LOGON-L1-1-1.DLL API-MS-WIN-SECURITY-LSALOOKUP-ANSI-L2-1-0.DLL API-MS-WIN-SECURITY-LSALOOKUP-L1-1-1.DLL API-MS-WIN-SECURITY-LSALOOKUP-L1-1-2.DLL API-MS-WIN-SECURITY-LSALOOKUP-L2-1-0.DLL API-MS-WIN-SECURITY-PROVIDER-L1-1-0.DLL API-MS-WIN-SECURITY-SDDL-L1-1-0.DLL API-MS-WIN-SECURITY-SDDLPARSECOND-L1-1-0.DLL API-MS-WIN-SECURITY-SYSTEMFUNCTIONS-L1-1-0.DLL API-MS-WIN-SHCORE-COMHELPERS-L1-1-0.DLL API-MS-WIN-SHCORE-OBSOLETE-L1-1-0.DLL API-MS-WIN-SHCORE-REGISTRY-L1-1-0.DLL API-MS-WIN-SHCORE-REGISTRY-L1-1-1.DLL API-MS-WIN-SHCORE-SCALING-L1-1-0.DLL API-MS-WIN-SHCORE-SCALING-L1-1-1.DLL API-MS-WIN-SHCORE-STREAM-L1-1-0.DLL API-MS-WIN-SHCORE-STREAM-WINRT-L1-1-0.DLL API-MS-WIN-SHCORE-SYSINFO-L1-1-0.DLL API-MS-WIN-SHCORE-THREAD-L1-1-0.DLL API-MS-WIN-SHCORE-UNICODEANSI-L1-1-0.DLL API-MS-WIN-SHELL-CHANGENOTIFY-L1-1-0.DLL API-MS-WIN-SHELL-NAMESPACE-L1-1-0.DLL API-MS-WIN-SHELL-SHDIRECTORY-L1-1-0.DLL API-MS-WIN-SHLWAPI-IE-L1-1-0.DLL API-MS-WIN-SHLWAPI-WINRT-STORAGE-L1-1-1.DLL DEVICELOCKHELPERS.DLL DMENTERPRISEDIAGNOSTICS.DLL EFSCORE.DLL EMCLIENT.DLL EXT-MS-MF-PAL-L2-1-0.DLL EXT-MS-ONECORE-APPCHROMEAPI-L1-1-0.DLL EXT-MS-ONECORE-APPDEFAULTS-L1-1-0.DLL EXT-MS-ONECORE-APPMODEL-EMCLIENT-L1-1-0.DLL EXT-MS-ONECORE-APPMODEL-STATEREPOSITORY-INTERNAL-L1-1-1.DLL EXT-MS-ONECORE-DCOMP-L1-1-0.DLL EXT-MS-ONECORE-HLINK-L1-1-0.DLL EXT-MS-ONECORE-ORIENTATION-L1-1-0.DLL EXT-MS-ONECORE-PHONEINFO-L1-1-0.DLL EXT-MS-ONECORE-SHELLCHROMEAPI-L1-1-0.DLL EXT-MS-ONECORE-SHELLCHROMEAPI-L1-1-1.DLL EXT-MS-WIN-ADVAPI32-LSA-L1-1-0.DLL EXT-MS-WIN-ADVAPI32-MSI-L1-1-0.DLL EXT-MS-WIN-ADVAPI32-NPUSERNAME-L1-1-0.DLL EXT-MS-WIN-ADVAPI32-NTMARTA-L1-1-0.DLL EXT-MS-WIN-ADVAPI32-PSM-APP-L1-1-0.DLL EXT-MS-WIN-ADVAPI32-REGISTRY-L1-1-0.DLL EXT-MS-WIN-ADVAPI32-REGISTRY-L1-1-1.DLL EXT-MS-WIN-ADVAPI32-SAFER-L1-1-0.DLL EXT-MS-WIN-APPCOMPAT-AEPIC-L1-1-0.DLL EXT-MS-WIN-APPCOMPAT-APPHELP-L1-1-0.DLL EXT-MS-WIN-APPMODEL-APPEXECUTIONALIAS-L1-1-0.DLL EXT-MS-WIN-APPMODEL-DAXCORE-L1-1-0.DLL EXT-MS-WIN-APPMODEL-DAXCORE-L1-1-2.DLL EXT-MS-WIN-APPMODEL-DEPLOYMENT-L1-1-0.DLL EXT-MS-WIN-APPMODEL-RESTRICTEDAPPCONTAINER-INTERNAL-L1-1-0.DLL EXT-MS-WIN-APPMODEL-STATE-EXT-L1-2-0.DLL EXT-MS-WIN-APPMODEL-USERCONTEXT-L1-1-0.DLL EXT-MS-WIN-APPMODEL-VIEWSCALEFACTOR-L1-1-0.DLL EXT-MS-WIN-APPXDEPLOYMENTCLIENT-APPXDEPLOY-L1-1-0.DLL EXT-MS-WIN-APPXDEPLOYMENTCLIENT-APPXDEPLOYONECORE-L1-1-0.DLL EXT-MS-WIN-AUDIOCORE-PAL-L1-2-0.DLL EXT-MS-WIN-AUTHZ-CONTEXT-L1-1-0.DLL EXT-MS-WIN-AUTHZ-REMOTE-L1-1-0.DLL EXT-MS-WIN-COM-CLBCATQ-L1-1-0.DLL EXT-MS-WIN-COM-COML2-L1-1-1.DLL EXT-MS-WIN-COM-OLE32-L1-1-0.DLL EXT-MS-WIN-COM-OLE32-L1-1-1.DLL EXT-MS-WIN-COM-OLE32-L1-1-2.DLL EXT-MS-WIN-COM-OLE32-L1-1-3.DLL EXT-MS-WIN-COM-OLE32-L1-1-4.DLL EXT-MS-WIN-COM-OLE32-L1-1-5.DLL EXT-MS-WIN-COM-PSMREGISTER-L1-1-0.DLL EXT-MS-WIN-COM-SUSPENDRESILIENCY-L1-1-0.DLL EXT-MS-WIN-CORE-WINRT-REMOTE-L1-1-0.DLL EXT-MS-WIN-DESKTOPAPPX-L1-1-2.DLL EXT-MS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-MS-WIN-GDI-PATH-L1-1-0.DLL EXT-MS-WIN-GDI-PRINT-L1-1-0.DLL EXT-MS-WIN-GDI-PRIVATE-L1-1-0.DLL EXT-MS-WIN-GDI-RENDER-L1-1-0.DLL EXT-MS-WIN-GDI-WCS-L1-1-0.DLL EXT-MS-WIN-GPAPI-GROUPPOLICY-L1-1-0.DLL EXT-MS-WIN-GUI-DUI70-L1-1-0.DLL EXT-MS-WIN-IMM-L1-1-0.DLL EXT-MS-WIN-KERNEL32-APPCOMPAT-L1-1-0.DLL EXT-MS-WIN-KERNEL32-DATETIME-L1-1-0.DLL EXT-MS-WIN-KERNEL32-ERRORHANDLING-L1-1-0.DLL EXT-MS-WIN-KERNEL32-FILE-L1-1-0.DLL EXT-MS-WIN-KERNEL32-LOCALIZATION-L1-1-0.DLL EXT-MS-WIN-KERNEL32-PACKAGE-CURRENT-L1-1-0.DLL EXT-MS-WIN-KERNEL32-PACKAGE-L1-1-0.DLL EXT-MS-WIN-KERNEL32-PACKAGE-L1-1-2.DLL EXT-MS-WIN-KERNEL32-QUIRKS-L1-1-0.DLL EXT-MS-WIN-KERNEL32-QUIRKS-L1-1-1.DLL EXT-MS-WIN-KERNEL32-REGISTRY-L1-1-0.DLL EXT-MS-WIN-KERNEL32-SIDEBYSIDE-L1-1-0.DLL EXT-MS-WIN-KERNELBASE-PROCESSTHREAD-L1-1-0.DLL EXT-MS-WIN-MININPUT-INPUTHOST-L1-1-0.DLL EXT-MS-WIN-MPR-MULTIPLEPROVIDERROUTER-L1-1-0.DLL EXT-MS-WIN-MRMCORER-ENVIRONMENT-L1-1-0.DLL EXT-MS-WIN-MRMCORER-RESMANAGER-L1-1-0.DLL EXT-MS-WIN-NETWORKING-WCMAPI-L1-1-0.DLL EXT-MS-WIN-NETWORKING-WLANSTORAGE-L1-1-0.DLL EXT-MS-WIN-NTDSAPI-ACTIVEDIRECTORYCLIENT-L1-1-0.DLL EXT-MS-WIN-NTDSAPI-ACTIVEDIRECTORYCLIENT-L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WIN-RTCORE-NTUSER-INTEGRATION-L1-1-0.DLL EXT-MS-WIN-RTCORE-NTUSER-SYNCH-EXT-L1-1-0.DLL EXT-MS-WIN-RTCORE-NTUSER-SYSCOLORS-L1-1-0.DLL EXT-MS-WIN-RTCORE-NTUSER-SYSPARAMS-L1-1-0.DLL EXT-MS-WIN-RTCORE-NTUSER-WINDOW-EXT-L1-1-0.DLL EXT-MS-WIN-SECUR32-TRANSLATENAME-L1-1-0.DLL EXT-MS-WIN-SECURITY-CAPAUTHZ-L1-1-0.DLL EXT-MS-WIN-SECURITY-CAPAUTHZ-L1-1-1.DLL EXT-MS-WIN-SECURITY-CHAMBERS-L1-1-0.DLL EXT-MS-WIN-SECURITY-CREDUI-INTERNAL-L1-1-0.DLL EXT-MS-WIN-SECURITY-CREDUI-L1-1-0.DLL EXT-MS-WIN-SECURITY-CREDUI-L1-1-1.DLL EXT-MS-WIN-SECURITY-CRYPTUI-L1-1-0.DLL EXT-MS-WIN-SECURITY-CRYPTUI-L1-1-1.DLL EXT-MS-WIN-SECURITY-EFS-L1-1-0.DLL EXT-MS-WIN-SECURITY-EFSWRT-L1-1-0.DLL EXT-MS-WIN-SECURITY-EFSWRT-L1-1-1.DLL EXT-MS-WIN-SECURITY-WINSCARD-L1-1-0.DLL EXT-MS-WIN-SECURITY-WINSCARD-L1-1-1.DLL EXT-MS-WIN-SESSION-USERMGR-L1-1-0.DLL EXT-MS-WIN-SESSION-USERTOKEN-L1-1-0.DLL EXT-MS-WIN-SESSION-WINSTA-L1-1-0.DLL EXT-MS-WIN-SESSION-WTSAPI32-L1-1-0.DLL EXT-MS-WIN-SETUPAPI-INF-L1-1-0.DLL EXT-MS-WIN-SETUPAPI-INF-L1-1-1.DLL EXT-MS-WIN-SHELL-DIRECTORY-L1-1-0.DLL EXT-MS-WIN-SHELL-EMBEDDEDMODE-L1-1-0.DLL EXT-MS-WIN-SHELL-SHELL32-L1-2-0.DLL EXT-MS-WIN-SHELL-SHLWAPI-L1-1-0.DLL EXT-MS-WIN-SHELL32-SHELLCOM-L1-1-0.DLL EXT-MS-WIN-SHELL32-SHELLFOLDERS-L1-1-0.DLL EXT-MS-WIN-SMBSHARE-BROWSERCLIENT-L1-1-0.DLL EXT-MS-WIN-STORAGE-SENSE-L1-1-0.DLL EXT-MS-WIN-STORAGE-SENSE-L1-2-0.DLL EXT-MS-WIN-SXS-OLEAUTOMATION-L1-1-0.DLL EXT-MS-WIN-TSF-MSCTF-L1-1-0.DLL EXT-MS-WIN-TSF-MSCTF-L1-1-1.DLL EXT-MS-WIN-UI-VIEWMANAGEMENT-L1-1-0.DLL EXT-MS-WIN-USP10-L1-1-0.DLL EXT-MS-WIN-WER-UI-L1-1-0.DLL EXT-MS-WIN-WER-XBOX-L1-1-0.DLL EXT-MS-WIN-WINRT-DEVICE-ACCESS-L1-1-0.DLL EXT-MS-WIN-WINRT-STORAGE-L1-1-0.DLL EXT-MS-WIN-WLAN-ONEXUI-L1-1-0.DLL EXT-MS-WIN-WLAN-SCARD-L1-1-0.DLL IESHIMS.DLL NGCRECOVERY.DLL WPAXHOLDER.DLL
-
SDL2.DLL
looks like its not in the same folder as your application.The EXT-MS-WIN can be ignored AFAIK.
-
And that's your job to copy it over to the folder of your application.
windeployqt
can't guess where the .dlls are stored. It knows where the Qt dlls are because it's known at installation time, however there's no standard path to look for to get the .dlls. They are not used at all at linking time so it's impossible to know where to look for them. -
@StevenD said in How do I compile a .exe file which I can run on any windows computer?:
I can now launch my
.exe
after runningwindeployqt
and copyingSDL2.dll
to the same directory. However, I would still like to get this down to 1 file.As @SGaist mentioned earlier, the only way to get this down to 1 file is to use static linking. You need to build a statically-linked version of Qt yourself, and then set your project to use the static libraries of Qt and SDL.
-
@StevenD said in How do I compile a .exe file which I can run on any windows computer?:
Right, but how do I build a statically-linked version of Qt?
In summary:
- Obtain the Qt source code
- Add the
-static
option when configuring Qt - Build Qt
Instructions to configure and build are at http://doc.qt.io/qt-5/build-sources.html
An example set of commands is:
> configure.bat -prefix "C:/Qt/MyStaticBuild" -opensource -confirm-license -nomake examples -nomake tests -static
> make
> make install
Remember, using static linking means that your application cannot be closed-source.
I seem to be missing folders or files from the various tutorials I have found.
Which tutorials, and which folders/files?
-
Thanks for the help. I have successfully downloaded the source code, and now have the files that I needed. However, I am having some issues. Mingw is not working.
mingw32-make: *** Error -1 . Stop. mingw32-make: *** Waiting for unfinished jobs....
...and then it hangs forever.
-
@StevenD said in How do I compile a .exe file which I can run on any windows computer?:
mingw32-make: *** Error -1
There should be more info near this line that describes what the problem is. What was it doing just before the error?
Anyway, run
mingw32-make
again and see if it continues from where it last stopped. (It will first scan the files that have already been processed) -
PS C:\Qt-3.0.1\5.9.2\Src> ./configure.bat -opensource -confirm-license -nomake examples -nomake tests -static + cd qtbase + C:\Qt-3.0.1\5.9.2\Src\qtbase\configure.bat -top-level -opensource -confirm-license -nomake examples -nomake tests -static Bootstrapping qmake ... g++ -c -o project.o -DUNICODE -std=c++11 -ffunction-sections -g -IC:/Qt-3.0.1/5.9.2/Src/qtbase/qmake -IC:/Qt-3.0.1/5.9.2/Src/qtbase/qmake/library -IC:/Qt-3.0.1/5.9.2/Src/qtbase/qmake/generators -IC:/Qt-3.0.1/5.9.2/Src/qtbase/qmake/generators/unix -IC:/Qt-3.0.1/5.9.2/Src/qtbase/qmake/generators/win32 -IC:/Qt-3.0.1/5.9.2/Src/qtbase/qmake/generators/mac -IC:/Qt-3.0.1/5.9.2/Src/qtbase/include -IC:/Qt-3.0.1/5.9.2/Src/qtbase/include/QtCore -IC:/Qt-3.0.1/5.9.2/Src/qtbase/include/QtCore/5.9.2 -IC:/Qt-3.0.1/5.9.2/Src/qtbase/include/QtCore/5.9.2/QtCore -I../src/corelib/global -IC:/Qt-3.0.1/5.9.2/Src/qtbase/mkspecs/win32-g++ -DQT_VERSION_STR=\"5.9.2\" -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=9 -DQT_VERSION_PATCH=2 -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_FOREACH C:/Qt-3.0.1/5.9.2/Src/qtbase/qmake/project.cpp mingw32-make: *** Error -1 . Stop. mingw32-make: *** Waiting for unfinished jobs....
-
@StevenD said in How do I compile a .exe file which I can run on any windows computer?:
PS C:\Qt-3.0.1\5.9.2\Src>
I tried to build Qt with PowerShell a few months ago, but it failed. I didn't investigate why, but I suspect it's some kind of incompatibility between PowerShell and the old Batch files.
cmd.exe worked for me; see if that helps you.
-
cmd
gives me almost identical output:C:\Qt-3.0.1\5.9.2\Src>configure -opensource -confirm-license -nomake examples -nomake tests -static + cd qtbase + C:\Qt-3.0.1\5.9.2\Src\qtbase\configure.bat -top-level -opensource -confirm-license -nomake examples -nomake tests -static Bootstrapping qmake ... g++ -c -o project.o -DUNICODE -std=c++11 -ffunction-sections -g -IC:/Qt-3.0.1/5.9.2/Src/qtbase/qmake -IC:/Qt-3.0.1/5.9.2/Src/qtbase/qmake/library -IC:/Qt-3.0.1/5.9.2/Src/qtbase/qmake/generators -IC:/Qt-3.0.1/5.9.2/Src/qtbase/qmake/generators/unix -IC:/Qt-3.0.1/5.9.2/Src/qtbase/qmake/generators/win32 -IC:/Qt-3.0.1/5.9.2/Src/qtbase/qmake/generators/mac -IC:/Qt-3.0.1/5.9.2/Src/qtbase/include -IC:/Qt-3.0.1/5.9.2/Src/qtbase/include/QtCore -IC:/Qt-3.0.1/5.9.2/Src/qtbase/include/QtCore/5.9.2 -IC:/Qt-3.0.1/5.9.2/Src/qtbase/include/QtCore/5.9.2/QtCore -I../src/corelib/global -IC:/Qt-3.0.1/5.9.2/Src/qtbase/mkspecs/win32-g++ -DQT_VERSION_STR=\"5.9.2\" -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=9 -DQT_VERSION_PATCH=2 -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_FOREACH C:/Qt-3.0.1/5.9.2/Src/qtbase/qmake/project.cpp mingw32-make: *** Error -1 . Stop. mingw32-make: *** Waiting for unfinished jobs....