Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 5.6 & mingw_49_32
QtWS25 Last Chance

Qt 5.6 & mingw_49_32

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt 5.6mingw32
3 Posts 2 Posters 1.4k Views
  • 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 Offline
    J Offline
    Jedd
    wrote on last edited by
    #1

    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
    0
    • Diamond PlatypusD Offline
      Diamond PlatypusD Offline
      Diamond Platypus
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Jedd
        wrote on last edited by Jedd
        #3

        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
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved