Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    Installation and Deployment
    2
    5
    1181
    Loading More Posts
    • 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
      Mart0369 last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • M
          Mart0369 last edited by

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

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • M
              Mart0369 last edited by

              That makes sense. Cheers.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post