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. Deploying shared libraries and set PATH without interfering with other applications
QtWS25 Last Chance

Deploying shared libraries and set PATH without interfering with other applications

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
dllpathconflict
2 Posts 2 Posters 445 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.
  • gde23G Offline
    gde23G Offline
    gde23
    wrote on last edited by
    #1

    Hello,

    I have a project that provides a DLL, lets call it myDLL that can be used by some wrappers e.g. in python.
    To be able to load the myDLL from within the external wrappers I need to add the folder where the DLL is to the PATH environment variable. However myDLL also has some dependencies on third party DLLs that also will be deployed to the folder where the DLL is.
    The problem is that now, if some other application uses some other version of those DLLs and my version is inside the path that leads to Linking Errors at runtime for the other applications since they will load the wrong version.
    So how do you deal with such a setup? I guess I'm not the first one to be stuck at that problem.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      This stack overflow thread might be of interest to avoid having to play with the PATH environment variable.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

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