copyQtdata.commands gives error "Invalid number of parameters"
-
wrote on 26 Feb 2020, 14:25 last edited by
Hello Team,
I am using the following command in my pro file so that the files get copy to the dest dir which I specify.
--> copyQtdata.commands += $(COPY_DIR) /f $$shell_path($$(QTDIR)\bin\Qt5Test.dll) $$shell_path($$DESTDIR)
Internally it uses xcopy command and is working fine.
But when I try to use the command to copy a file which is present in the path which has spaces, it gives me error.
"Invalid number of parameters". Eg : "Program Files" has a space.I took the xcopy command of the same and tried to run in command prompt with giving double qoutes it works fine.
How do I give double qoutes in "copyQtdata.commands" so that spaces are taken care.
-
wrote on 26 Feb 2020, 14:34 last edited by VRonin
https://doc.qt.io/qt-5/qmake-function-reference.html#shell-quote-arg
Or switch side, join the CMake-fans and use that instead. Qt6 will be using CMake anyway
-
https://doc.qt.io/qt-5/qmake-function-reference.html#shell-quote-arg
Or switch side, join the CMake-fans and use that instead. Qt6 will be using CMake anyway
@VRonin said in copyQtdata.commands gives error "Invalid number of parameters":
Qt6 will be using CMake anyway
Just to state the obvious: That still means you can use
qmake
for your own projects.Regards
-
https://doc.qt.io/qt-5/qmake-function-reference.html#shell-quote-arg
Or switch side, join the CMake-fans and use that instead. Qt6 will be using CMake anyway
wrote on 26 Feb 2020, 15:33 last edited by@VRonin said in copyQtdata.commands gives error "Invalid number of parameters":
join the CMake-fans
Do you know a resource/doc explaining how to switch from q to c make please ?
-
wrote on 26 Feb 2020, 15:37 last edited by VRonin
Do you know a resource/doc explaining how to switch from q to c make please ?
https://doc.qt.io/qt-5/cmake-manual.html
Better docs are still WIP: https://bugreports.qt.io/browse/QTBUG-72159
Which doesn't mean you can still use qmake for your own projects.
I think the language here is misleading. to clarify, qmake will always remain an option even after Qt6. My personal opinion is, however, that it will become more nichy as QBS was (maybe not to that extent)
-
Do you know a resource/doc explaining how to switch from q to c make please ?
https://doc.qt.io/qt-5/cmake-manual.html
Better docs are still WIP: https://bugreports.qt.io/browse/QTBUG-72159
Which doesn't mean you can still use qmake for your own projects.
I think the language here is misleading. to clarify, qmake will always remain an option even after Qt6. My personal opinion is, however, that it will become more nichy as QBS was (maybe not to that extent)
@VRonin said in copyQtdata.commands gives error "Invalid number of parameters":
I think the language here is misleading.
Fixed - thanks.
-
Do you know a resource/doc explaining how to switch from q to c make please ?
https://doc.qt.io/qt-5/cmake-manual.html
Better docs are still WIP: https://bugreports.qt.io/browse/QTBUG-72159
Which doesn't mean you can still use qmake for your own projects.
I think the language here is misleading. to clarify, qmake will always remain an option even after Qt6. My personal opinion is, however, that it will become more nichy as QBS was (maybe not to that extent)
wrote on 26 Feb 2020, 15:57 last edited by@aha_1980 said in copyQtdata.commands gives error "Invalid number of parameters":
Fixed
oh, so it was the opposit of what you said before ? I will stick with QMAKE i think then
-
https://doc.qt.io/qt-5/qmake-function-reference.html#shell-quote-arg
Or switch side, join the CMake-fans and use that instead. Qt6 will be using CMake anyway
wrote on 27 Feb 2020, 13:31 last edited by"https://doc.qt.io/qt-5/qmake-function-reference.html#shell-quote-arg" worked for me. Thanks
1/8