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. Qmake will not execute INSTALL from .pro file. (Windows 7)
Forum Updated to NodeBB v4.3 + New Features

Qmake will not execute INSTALL from .pro file. (Windows 7)

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 2 Posters 1.5k 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.
  • M Offline
    M Offline
    Mart0369
    wrote on last edited by
    #1

    I have added a INSTALLS statement to me .pro file to move external DLLs to the build output folder. My app will not run with out them, and I want to avoid copy/paste all the time.

    I have the following:

    @refDLL.path = $${DESTDIR}
    refDLL.files +=
    $${PWD}../imports

    INSTALLS = refDLL@

    In the Build-Step (QT Creator) I have added an additional qmake comment to run install.

    Nothing is executed, and the INSTALL command in the makefile.debug is set to FORCE. FORCE has nothing assigned.

    Any ideas??

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

      Hi,

      Rather than copy these dll's everytime, why not update the PATH environment variable in the run part of the Project panel ?

      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
      • M Offline
        M Offline
        Mart0369
        wrote on last edited by
        #3

        Would using QApplication::addLibraryPath() be an ok solutions? I'll need this anyways for the final deploy/install.

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

          When you'll deploy your application you'll have to copy all the required dlls in the same folder as your application so no need for addLibraryPath.

          However for development it's really time you are losing copying these files. Setting PATH will avoid you to call make install each time.

          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
          • M Offline
            M Offline
            Mart0369
            wrote on last edited by
            #5

            That makes sense. Cheers.

            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