Important: Please read the Qt Code of Conduct -

Problem running windeployqt

  • I added a Custom Build Event to my VS2017 project to run after completion of the build:


    When it ran, it didn't quite do what I expected (which is to look in its own directory for the files to be copied).

    The result was this:

    Unable to find dependent libraries of C:\Anaconda2\Library\bin\Qt5Widgetsd.dll :Cannot open 'C:/Anaconda2/Library/bin/Qt5Widgetsd.dll': The system cannot find the file specified.

    I guess it was looking down PATH, but I think it should only have been looking in C:\Qt\5.12.8\msvc2017\bin !

    I think this is a bug, but as a work-around, is there a way to override where it searches for the files it needs to copy?


  • I think I have a work around ...

    I changed the command to read:

    call C:\Qt\5.12.8\msvc2017_64\bin\qtenv2.bat; C:\Qt\5.12.8\msvc2017_64\bin\windeployqt --pdb $(TargetPath)

    which seems to have done the job. I still think this is a bug though :)


Log in to reply