如何告诉windeployqt Qt安装在哪里?在我的CI上,我仅安装所需的最低限度的依赖项,并将位置添加到PATH,该位置适用于CMake生成项目。但是当我随后运行windeployqt时,它将在c:\ Users \ qt \ work \ install \下查找依赖项,但找不到它们。
依赖项在这里:
/c/qt/5.6.3/msvc2015/bin/Qt5Network.dll
这是路径的内容:
/c/Program Files (x86)/Windows Kits/10/bin/10.0.17134.0/x86:/c/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86:/c/qt/5.6.3/msvc2015/plugins/platforms:/c/qt/5.6.3/msvc2015/bin:/bin:/usr/bin:/c/tools/ruby25/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Windows/System32/OpenSSH:/c/ProgramData/GooGet:/c/Program Files/Google/Compute Engine/metadata_scripts:/c/Program Files (x86)/Google/Cloud SDK/google-cloud-sdk/bin:/c/Program Files/Google/Compute Engine/sysprep:/c/Program Files/Docker:/c/ProgramData/chocolatey/bin:/c/Program Files/CMake/bin:/c/Program Files/Git/cmd:/c/Program Files/LLVM/bin:/c/Program Files/dotnet:/c/Users/travis/AppData/Local/Microsoft/WindowsApps:/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin
但是它失败并显示以下错误:
Unable to find dependent libraries of c:\Users\qt\work\install\bin\Qt5Network.dll :Cannot open 'c:/Users/qt/work/install/bin/Qt5Network.dll': The system cannot find the path specified.
我相信windeployqt会寻找一个环境变量来查找Qt安装,当找不到任何环境变量时,它将查找c:\ Users \ qt \ work \ install的默认位置。我尝试设置QTDIR,QT_DIR和QT,但是没有运气。