Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

PATH to libgcc_s_dw2-1.dll and mingwm10.dll in Qt 4.8.1



  • Hi,
    From Qt 4.8.0 to Qt 4.8.1 the files libgcc_s_dw2-1.dll and mingwm10.dll disappear from 'C:\QtSDK\Desktop\Qt\4.8.01\mingw\bin' and only exist in 'C:\QtSDK\mingw\bin'.
    I used QT_INSTALL_BINS to know where are the libs I need to deploy my application.
    There are any QT PATH to 'C:\QtSDK\mingw\bin' ?

    Thanks :)



  • Try qmake -query, this will give you a list of qmake environment variables.



  • [quote author="franku" date="1343424816"]Try qmake -query, this will give you a list of qmake environment variables.[/quote]

    I had already tried that but can't find it:

    bq. C:\Windows\system32>qmake -query
    QT_INSTALL_PREFIX:C:\QtSDK\Desktop\Qt\4.8.1\mingw
    QT_INSTALL_DATA:C:\QtSDK\Desktop\Qt\4.8.1\mingw
    QT_INSTALL_DOCS:C:\QtSDK\Desktop\Qt\4.8.1\mingw\doc
    QT_INSTALL_HEADERS:C:\QtSDK\Desktop\Qt\4.8.1\mingw\include
    QT_INSTALL_LIBS:C:\QtSDK\Desktop\Qt\4.8.1\mingw\lib
    QT_INSTALL_BINS:C:\QtSDK\Desktop\Qt\4.8.1\mingw\bin
    QT_INSTALL_PLUGINS:C:\QtSDK\Desktop\Qt\4.8.1\mingw\plugins
    QT_INSTALL_IMPORTS:C:\QtSDK\Desktop\Qt\4.8.1\mingw\imports
    QT_INSTALL_TRANSLATIONS:C:\QtSDK\Desktop\Qt\4.8.1\mingw\translations
    QT_INSTALL_CONFIGURATION:C:/QtSDK/Desktop/Qt/4.8.1/mingw
    QT_INSTALL_EXAMPLES:C:\QtSDK\Examples\4.7
    QT_INSTALL_DEMOS:C:\QtSDK\Demos\4.7
    QMAKE_MKSPECS:C:\QtSDK\Desktop\Qt\4.8.1\mingw\mkspecs
    QMAKE_VERSION:2.01a
    QT_VERSION:4.8.1

    C:\Windows\system32>



  • What about going relative to one of the paths (didn't test, just an idea)?

    @
    PATH_TO_DEPLOY_LIBS = $$[QT_INSTALL_BINS]../../../../../mingw/bin
    @



  • [quote author="franku" date="1343464341"]What about going relative to one of the paths (didn't test, just an idea)?

    @
    PATH_TO_DEPLOY_LIBS = $$[QT_INSTALL_BINS]../../../../../mingw/bin
    @[/quote]

    I have the same issue and I used this method but this is a workaround that only work for the current (and past) QtSDK (sdk version 1.2.1 with qt-4.8.1).

    The question is:
    If you would like to use an independent MinGW installation, and you configured your custom toolchain in qtcreator, is there a way to retrive the path of the used compiler from within the .pro project file (and to locate the runtimes .dll...)?

    Something like an environment variable "QMAKE_COMPILER_DIR" (witch does not exist) or such.

    Thanks in advance!

    P.S.: The current distribution of Qt4.8.3 have a copy of these files under
    <path>\Qt-4.8.3\bin (corresponding to $$[QT_INSTALL_BINS])
    Why? I guess I should use the one shipped with the mingw distribution
    used to compile. (In the sdk there are different version for different
    toolchains...)


Log in to reply