Voyager
Voyager

Reputation: 539

MinGW won't copy libstdc++-6.dll to the output folder even though the address is correct

I want to deploy my Qt program. I use qmake to generate the Makefile from my .pro file. And then I run mingw32-make, and finally mingw32-make install to copy necessary dlls to the output folder. I am copying 9 dlls, all in the same folder (Qt/5.8/mingw53_32/bin). All of them get copied without an issue, except for libstdc++-6.dll.

I have checked the generated Makefile to see if there was anything spelled incorrectly. I have also checked the paths and everything. I am doing the same thing for all 9 files, but only libstdc++-6.dll has an issue with being copied.

Below lines are from my Makefile install target. I covered the copy target location.

-$(INSTALL_FILE) C:\Qt\5.8\mingw53_32\bin\Qt5Core.dll <COPY_TARGET>
-$(INSTALL_FILE) C:\Qt\5.8\mingw53_32\bin\Qt5Gui.dll <COPY_TARGET>
-$(INSTALL_FILE) C:\Qt\5.8\mingw53_32\bin\Qt5OpenGL.dll <COPY_TARGET>
-$(INSTALL_FILE) C:\Qt\5.8\mingw53_32\bin\Qt5PrintSupport.dll <COPY_TARGET>
-$(INSTALL_FILE) C:\Qt\5.8\mingw53_32\bin\Qt5Svg.dll <COPY_TARGET>
-$(INSTALL_FILE) C:\Qt\5.8\mingw53_32\bin\Qt5Widgets.dll <COPY_TARGET>
-$(INSTALL_FILE) C:\Qt\5.8\mingw53_32\bin\libgcc_s_dw2-1.dll <COPY_TARGET>
-$(INSTALL_FILE) C:\Qt\5.8\mingw53_32\bin\libwinpthread-1.dll <COPY_TARGET>
-$(INSTALL_FILE) C:\Qt\5.8\mingw53_32\bin\libstdc++-6.dll <COPY_TARGET>

I want to say again that, C:\Qt\5.8\mingw53_32\bin\libstdc++-6.dll does exist.

Any help would be appreciated greatly.

Upvotes: 0

Views: 1081

Answers (1)

Michael
Michael

Reputation: 5335

The characters "+" are sometimes problematic in Windows filenames, so enclose a path to the file in quotes:

-$(INSTALL_FILE) "C:\Qt\5.8\mingw53_32\bin\libstdc++-6.dll" <COPY_TARGET>

Upvotes: 1

Related Questions