Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt DLLs and VS2017
Forum Updated to NodeBB v4.3 + New Features

Qt DLLs and VS2017

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 203 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.
  • PerdrixP Offline
    PerdrixP Offline
    Perdrix
    wrote on last edited by Perdrix
    #1

    I've added the Windows Migration Framework (QMFCApp) stuff to my VS2017 project and it builds fine.

    I distribute both 32 bit and 64 bit versions of the code, so have to build for both.

    When I attempt to run the application I get complaints that the Qt DLLs can't be found (e.g. QtCore.dll).

    Obviously I cannot add both C:\Qt\5.12.8\msvc2017\bin AND C:\Qt\5.12.8\msvc2017_64 \bin to LIBPATH , and adding only one would guarantee that it would be incorrect half of the time!

    So how can I configure the project to use C:\Qt\5.12.8\msvc2017\bin to search for the DLLs for 32 bit builds, and :\Qt\5.12.8\msvc2017_64 \bin for the 64 bit builds?

    For now I've bodged it by putting the appropriate Qt DLLs into the x86\Release x86\Debug x64\Release and x64\Debug folders.

    I'd prefer to handle this a bit more tidily though, so suggestions most welcome.

    Thanks
    David

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

      Hi,

      If you mean that it fails to start the application when going to the build folder to start it, then you have to deploy them like you would for running them in a different computer. You can use windeployqt for that.

      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

      • Login

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