Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Qt 5.6 & mingw_49_32

    General and Desktop
    qt 5.6 mingw32
    2
    3
    1032
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jedd 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.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?

      1 Reply Last reply Reply Quote 0
      • Diamond Platypus
        Diamond Platypus last edited by

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

        1 Reply Last reply Reply Quote 0
        • J
          Jedd 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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post