Qt 5.6 & mingw_49_32



  • 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.dll

    are 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?



  • Hi! Can you try adding "-static-libgcc -static-libstdc++" to your compiler flags?



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.