How to organize the dll for two different applications ?
-
Hello,
I have 2 qt application for windows :- launcher.exe
- update.exe
The first is the main application, and the second is called to update the launcher.
I couldn't release theses applications in the same folder, because some of the dlls are different (for example platforms/qwindows.dll or Qt6Widgets.dll) and I got this error : "the procedure entry point ****** could not be located in the dynamic link library", what is logical I guess.
But I don't want to put update.exe in a subdirectory of the launcher folder because a lot of dlls are the same (opengl32sw.dll, sqldrivers, etc.) so it will takes more space, and that's not convenient to have duplicates dlls.To solve this problem, I was wondering
- can update.exe load dll from a different path ? (if the path of update.exe is Launcher/Update/Update.exe, can it load dll from Launcher/)
- if update.exe and launcher.exe are in the same folder, can each exe choose the right dll if I rename them ? (for instance qwindows_update.dll and qwindows_launcher.dll)
- can I find a dll that will work automatically for the two application ?
Thanks and sorry for my english.
-
Hello,
I have 2 qt application for windows :- launcher.exe
- update.exe
The first is the main application, and the second is called to update the launcher.
I couldn't release theses applications in the same folder, because some of the dlls are different (for example platforms/qwindows.dll or Qt6Widgets.dll) and I got this error : "the procedure entry point ****** could not be located in the dynamic link library", what is logical I guess.
But I don't want to put update.exe in a subdirectory of the launcher folder because a lot of dlls are the same (opengl32sw.dll, sqldrivers, etc.) so it will takes more space, and that's not convenient to have duplicates dlls.To solve this problem, I was wondering
- can update.exe load dll from a different path ? (if the path of update.exe is Launcher/Update/Update.exe, can it load dll from Launcher/)
- if update.exe and launcher.exe are in the same folder, can each exe choose the right dll if I rename them ? (for instance qwindows_update.dll and qwindows_launcher.dll)
- can I find a dll that will work automatically for the two application ?
Thanks and sorry for my english.
@RdXDavidaz said in How to organize the dll for two different applications ?:
I couldn't release theses applications in the same folder, because some of the dlls are different
Why don't you simply build both executables using same Qt version?
-
Thank you, I didn't notice I had different versions!