I ran into the error [copyResources] Error 4
when trying to build a project I downloaded on a 64 bit Windows 7 install. In the Makefile Qt generates, it contains the following two lines:
copyResources:
xcopy "D:\Downloads\GraphViz\GraphViz\res" "D:\Downloads\GraphViz\build-GraphViz-Desktop_Qt_5_3_MinGW_32bit-Debug" /e /y
The make is failing when it hits this target, with the error Invalid number of parameters
. I originally assumed a malformed command, but if I run it in command prompt, it works fine. Even stranger, if I copy and paste that exact command into xcopycall.bat
and change the Makefile to the following
copyResources:
xcopycall
then everything works fine. Switching to /
doesn't help, so it doesn't appear to be an escaping issue. Why does running it from a batch file as opposed to in a Makefile fix this?