Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Copying supporting DLL to DESTDIR



  • Hi, I am trying (in vain) to copy my project's supporting DLLs to the DESTDIR.

    I have in my .pro file
    @
    debug {
    DESTDIR = C:/Users/william/Perforce/Build/Executables/x64/$$TARGET/Debug
    POST_TARGETDEPS += C:/Users/william/Perforce/Build/Libraries/QT/Debug/Input.dll
    POST_TARGETDEPS += C:/Users/william/Perforce/Build/Libraries/QT/Debug/Output.dll
    for(dll, POST_TARGETDEPS){QMAKE_POST_LINK = copy "$$dll" "$$DESTDIR/"}
    }
    @
    My executable arrives correctly but I get the following error build
    xilink: executing 'link'
    copy C:/Users/william/Perforce/Build/Libraries/QT/Debug/Output.dll C:/Users/william/Perforce/Build/Executables/x64/Monitor/Debug/
    The syntax of the command is incorrect.

    Does anyone have any suggestions.



  • Hi, 10 years later. How did you solve this?


Log in to reply