Qt 5.6 & mingw_49_32
-
wrote on 30 May 2016, 17:43 last edited by
I recently updated to Qt 5.6 (compiled static) and mingw49_32. As a result,
when I compile, my program now refuses to run, complaining:libgcc_s_dw2-1.dll
libwinpthread-1.dll
libstdc++-6.dllare missing. I can include these DLLs with the program and all works,
however, previously with Qt 5.4.2/mingw491_32 my programs were fully
static, no external DLLs required.I'd rather not ship these DLLs. How can I tell mingw to compile them into the program statiically?
-
wrote on 2 Jun 2016, 09:03 last edited by
Hi! Can you try adding "-static-libgcc -static-libstdc++" to your compiler flags?
-
wrote on 27 Oct 2016, 19:33 last edited by Jedd
Apologies to Diamond Platypus, I must not have had this post flagged as watch.
Anyway, I did add:
QMAKE_CXXFLAGS += -static-libgcc -static-libstdc++
To my .pro file
I still have missing dlls:
libgcc_s_dw2-1.dll
libwinpthread-1.dll
libstdc++-6.dll