Unsolved Unable to copy library at DESTDIR
-
Hi,
Below lines are used in my .pro file.
#Supporting DLLs
dlls.path += $${DESTDIR}
dlls.files += $$[QT_INSTALL_BINS]/libstdc++-6.dll
dlls.files += $$[QT_INSTALL_BINS]/Qt5Core.dll
dlls.files += $$[QT_INSTALL_BINS]/Qt5Gui.dll
INSTALLS += dlls: Added "install" as make argument.
After compilation Qt5core and Qt5Gui are copied successfully. But there is error message for libstdc++-6.dll (which is present at C:\Qt\Qt5.4.0\5.4\mingw491_32\bin)Error :
C:\Qt\Qt5.4.0\5.4\mingw491_32\bin\libstdc++-6.dll
The system cannot find the file specified.
Makefile.Debug:3465: recipe for target 'install_dlls' failed
mingw32-make[1]: [install_dlls] Error 1 (ignored) -
@yuvaram Hi,friend,welcome.
Why didn't i find
QT_INSTALL_BINS
variable in my windows and mac ? is it custom? -
I don't understand very well the context.
Why don't you use LIBRARY and LIBS instead of dlls.files?
Why don't you look at documentation to see which one works for you?
Thank you.
-
-
@Charlie_Hdz
my requirement is to copy dependency libraries of my executable into DESTDIR,
one of the dependency library is libstdc++-6.dll -
I assume this is an install target? If my memory serves me there was some bug with install targets so some of the dlls that come from mingw are not copied. If it copies your other binaries then you've probably hit that.
I'll try to find the relevant thread.Here you go: https://forum.qt.io/topic/73235/copying-dlls-into-target-directory