Copying .dlls into target directory
-
@kshegunov : yes, that was it. Thank you. I guess I'm still not clear on the rules of parsing variables.
I do have one remaining glitch: one of the three files I want to copy produces an error:
copy /y C:\Qt\5.7\mingw53_32\bin\libgcc_s_dw2-1.dll C:\Users\mzimmers\Wideband\Peninsula\build-storefile_client-Desktop_Qt_5_7_0_MinGW_32bit-Debug\debug 1 file(s) copied. copy /y C:\Qt\5.7\mingw53_32\bin\libwinpthread-1.dll C:\Users\mzimmers\Wideband\Peninsula\build-storefile_client-Desktop_Qt_5_7_0_MinGW_32bit-Debug\debug 1 file(s) copied. copy /y C:\Qt\5.7\mingw53_32\bin\libstdc++-6.dll C:\Users\mzimmers\Wideband\Peninsula\build-storefile_client-Desktop_Qt_5_7_0_MinGW_32bit-Debug\debug The system cannot find the file specified.
This file fails to copy whether it's the first, second or last file in the list. It also occurs whether I form libs_to_copy.files with three assignments, or one (multi-line).
Somehow I suspect it's the "+" in the filename. I made a copy of this dll without the "+" characters, and it worked. Is there some way to escape them in the string?"Found this: it's a known problem. Not sure what to make of it...
@mzimmers said in Copying .dlls into target directory:
I guess I'm still not clear on the rules of parsing variables.
$(XXX) is the environment variable XXX, while $XXX is the qmake variable XXX.
-
@mzimmers said in Copying .dlls into target directory:
I guess I'm still not clear on the rules of parsing variables.
$(XXX) is the environment variable XXX, while $XXX is the qmake variable XXX.
@kshegunov : thank you. So, what exactly is the libs_to_copy construct that I'm using? I can't find any documentation on that.
-
@kshegunov : thank you. So, what exactly is the libs_to_copy construct that I'm using? I can't find any documentation on that.
@mzimmers
It's just a variable as far as I know. You can name it however you like and you (should) be able to use more than one as well. E.g.:mingw_installs.files = "C:/Qt/5.7/mingw53_32/bin/libgcc_s_dw2-1.dll" "C:/Qt/5.7/mingw53_32/bin/stdc++6.dll" mingw_installs.path = $$OUT_PWD myown_installs.files = "C:/AdditionalDepDir/somefileIneed.txt" myown_installs.path = $$OUT_PWD INSTALLS += mingw_installs myown_installs
(do take my
qmake
knowledge with a grain of salt, though, I'm by no means an expert)