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. dll and files relative path

dll and files relative path

Scheduled Pinned Locked Moved Solved Installation and Deployment
4 Posts 3 Posters 1.9k Views 2 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.
  • A Offline
    A Offline
    alecs26
    wrote on last edited by
    #1

    Hello,

    I want to deploy a Qt software I created on Windows.
    In order to work, I must include many dll in the .exe folder.
    However, I would like the .dll to be in a subfolder (for instance in /libs )
    When I place the dll in this folder, the .exe does not find the dll.
    I should thus tell that the dll are in the "libs" folder.

    Do I do this simply in the pro file with INCLUDEPATH or is this just for compilation ?
    If that's the way, how to include the "libs" folder with a relative path to the .exe ?

    Thanks you very much,

    Alex

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

      Hi,

      INCLUDEPATH is only to give additional paths to find header files.

      If you want to move things around you'll have to play with the qt.conf file however I don't know to what extend it supports external libraries.

      You should take a look at the Qt Creator installation.

      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
      0
      • A alecs26

        Hello,

        I want to deploy a Qt software I created on Windows.
        In order to work, I must include many dll in the .exe folder.
        However, I would like the .dll to be in a subfolder (for instance in /libs )
        When I place the dll in this folder, the .exe does not find the dll.
        I should thus tell that the dll are in the "libs" folder.

        Do I do this simply in the pro file with INCLUDEPATH or is this just for compilation ?
        If that's the way, how to include the "libs" folder with a relative path to the .exe ?

        Thanks you very much,

        Alex

        A Offline
        A Offline
        ambershark
        wrote on last edited by
        #3

        @alecs26 This explains how DLLs are located:

        https://msdn.microsoft.com/en-us/library/windows/desktop/ms682586(v=vs.85).aspx

        And you could use something like this https://msdn.microsoft.com/en-us/library/windows/desktop/hh310513(v=vs.85).aspx to change where it looks for your DLLs.

        My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

        1 Reply Last reply
        0
        • A Offline
          A Offline
          alecs26
          wrote on last edited by
          #4

          Thank you both !

          Alex

          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