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

Problem running windeployqt



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

    12322e84-91a5-4a3b-b45e-965579022b01-image.png

    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?

    Thanks
    David



  • 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 :)

    D.


Log in to reply