I am trying to convert my Qt Creator *.pro file into a Visual Studio project. I am running the command which is listed in the documentation:
qmake -tp vc untitled2.pro "CONFIG+=windeployqt"
but I keep getting the error:
Unable to generate output for Makefile.Release [TEMPLATE vcapp]
Unable to generate output for Makefile.Debug [TEMPLATE vcapp]
I have tried to google this problem but have had no success.
You are using the wrong qmake (mingw).
Try to use the qmake for msvc.
From your post I guess your PATH includes something like
try to change to
..\Qt\5.x\msvc..\bin or call qmake with this absolute path
Thanks. I have managed to get this working but now I have another problem.
When compiling in Visual Studio I get the following error:
1> Unable to locate ICU library icuin53.dll
1>C:\Users\AP.local\Desktop\untitled2\untitled2.vcxproj(100,5): error MSB3073: The command "C:\Qt\5.4\msvc2013_64\bin\windeployqt.exe -qmldir C:\Users\AP.local\Desktop\untitled2 -list relative -dir "C:\Users\AP.local\Desktop\untitled2" "release\untitled2.exe" > "untitled2.windeployqt.x64.Release"" exited with code 1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
The deployment fails. It looks like visual studio can not locate the qt libraries. You can either add the path (..\Qt\5.x\msvc..\bin) to your msvc project or global to your PATH environment variable.