Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to organize the dll for two different applications ?

How to organize the dll for two different applications ?

Scheduled Pinned Locked Moved Solved Installation and Deployment
3 Posts 2 Posters 345 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RdXDavidaz
    wrote on last edited by
    #1

    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.

    jsulmJ 1 Reply Last reply
    0
    • R RdXDavidaz

      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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3
      • R Offline
        R Offline
        RdXDavidaz
        wrote on last edited by
        #3

        Thank you, I didn't notice I had different versions!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved