Results 1 to 19 of 19

Thread: libgcc_s_dw2-1.dll?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: libgcc_s_dw2-1.dll?

    Quote Originally Posted by christophe View Post
    You can pass that option with QMAKE_LFLAGS.

    With the command line:
    qmake QMAKE_LFLAGS+=-static-libgcc -config release

    Or adding QMAKE_LFLAGS+=-static-libgcc in your .pro file.
    I am seeing this now too all of a sudden after installing the latest Windows Qt SDK 2010.01. Qt configured to dynamic linking, i.e. no change since installation.

    I tried the suggested QMAKE_LFLAGS but that was a nogo.

    Does this mean I have to add this dll to my installer? If so, then shouldn't this be mentioned in the Application Dependencies on this page:
    http://doc.qt.nokia.com/4.6/deployment-windows.html
    Last edited by schnitzel; 26th January 2010 at 01:06.

  2. #2
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: libgcc_s_dw2-1.dll?

    found this:
    http://marc.info/?l=mingw-users&w=2&..._dw2-1.dll&q=b
    look under 'General Notes' in the first post of that thread.

    Deployed apps work after adding this dll, but is it ok for me to distribute it??????

  3. #3
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: libgcc_s_dw2-1.dll?

    this dependency doesn't seem to exist in Qt 4.5.3, so I'm going back to that.

  4. #4
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: libgcc_s_dw2-1.dll?

    It's part of GCC, not Qt, and yes, it's OK for you to distribute it under the terms of the LGPL. You can also use the linker option "-static-libgcc" to remove the need for the library.

    Or, you can use an older version of MinGW. There's no need to use an older version of Qt.

  5. #5
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: libgcc_s_dw2-1.dll?

    Quote Originally Posted by fatjuicymole View Post
    It's part of GCC, not Qt, and yes, it's OK for you to distribute it under the terms of the LGPL. You can also use the linker option "-static-libgcc" to remove the need for the library.

    Or, you can use an older version of MinGW. There's no need to use an older version of Qt.
    My app uses qextserialport, so I rebuilt that with the linker flag. Also I rebuilt my app with the linker flag. Unfortunately, it still complains about the libgcc_s_dw2-1.dll.
    When I run depends, the missing dll shows up inside the tree for QtGUI.dll and QtCore4.dll. Does this mean I have to reconfigure Qt with the new linker flag?

  6. #6
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: libgcc_s_dw2-1.dll?

    Quote Originally Posted by fatjuicymole View Post
    It's part of GCC, not Qt, and yes, it's OK for you to distribute it under the terms of the LGPL.
    according to the discussion in this link it might not be ok:
    http://old.nabble.com/distributing-L...d25342619.html

    Quote Originally Posted by fatjuicymole View Post
    You can also use the linker option "-static-libgcc" to remove the need for the library.
    Still haven't made any progress on this, I tried several times no luck.

  7. #7
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: libgcc_s_dw2-1.dll?

    Yes, you would need to rebuild Qt too for this to work, as that also uses the library.

  8. The following user says thank you to squidge for this useful post:

    schnitzel (30th January 2010)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.