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
Forum Updated to NodeBB v4.3 + New Features

Deploying shared libraries and set PATH without interfering with other applications

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
dllpathconflict
2 Posts 2 Posters 474 Views 1 Watching
  • 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.
  • G Offline
    G Offline
    gde23
    wrote on 26 Sept 2020, 16:20 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 26 Sept 2020, 18:51 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

      1/2

      26 Sept 2020, 16:20

      • Login

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