Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator: Windows app can't find external DLLs

Qt Creator: Windows app can't find external DLLs

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 556 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.
  • R Offline
    R Offline
    rjmx
    wrote on last edited by
    #1

    My app is working fine on Linux and MacOS, and now I'm trying to port it to Windows. After the usual juggling, I've got it to the point where it compiles and links ok, but it won't run because it can't find a couple of external DLLs (for gpgme and hunspell).
    I've followed the instructions in the "Third Party Libraries" section of the Qt Creator help files, and the include files and DLLs are all under "src/3rdParty/", and it can find the DLLs when it links, but not when it runs. How can I fix this?

    Thanks,

    .....Ron

    C 1 Reply Last reply
    0
    • R rjmx

      My app is working fine on Linux and MacOS, and now I'm trying to port it to Windows. After the usual juggling, I've got it to the point where it compiles and links ok, but it won't run because it can't find a couple of external DLLs (for gpgme and hunspell).
      I've followed the instructions in the "Third Party Libraries" section of the Qt Creator help files, and the include files and DLLs are all under "src/3rdParty/", and it can find the DLLs when it links, but not when it runs. How can I fix this?

      Thanks,

      .....Ron

      C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      @rjmx The DLL files themselves are not used during link. The linkers uses a matching library file (blah.lib or blah.dll.a depending on you tool chain).

      For development purposes only you can have Creator run your program with a modified PATH that includes where the DLLs live.

      For the end result, deploy the DLL dependencies on to your target run-time machine. They go in the same folder as your executables or into a folder on the system PATH.

      R 1 Reply Last reply
      1
      • C ChrisW67

        @rjmx The DLL files themselves are not used during link. The linkers uses a matching library file (blah.lib or blah.dll.a depending on you tool chain).

        For development purposes only you can have Creator run your program with a modified PATH that includes where the DLLs live.

        For the end result, deploy the DLL dependencies on to your target run-time machine. They go in the same folder as your executables or into a folder on the system PATH.

        R Offline
        R Offline
        rjmx
        wrote on last edited by
        #3

        @ChrisW67 said in Qt Creator: Windows app can't find external DLLs:

        @rjmx The DLL files themselves are not used during link. The linkers uses a matching library file (blah.lib or blah.dll.a depending on you tool chain).

        For development purposes only you can have Creator run your program with a modified PATH that includes where the DLLs live.

        For the end result, deploy the DLL dependencies on to your target run-time machine. They go in the same folder as your executables or into a folder on the system PATH.

        Thanks! I’ll try that.

        1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on

        • Login

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