Building Qt5.1.1 MinGw static on windows 7 ends with error



  • Hi i am trying to build qt5.1.1 statically on my windows 7 pc.
    I downloaded qt5.1.1 and installed on my machine.
    I have modified qmake.conf file at,
    C:\Qt\Qt5.1.1\5.1.1\Src\qtbase\mkspecs\win32-g++
    as,
    QMAKE_LFLAGS = -static -static-libgcc

    I am running following cmd's,

    cd c:\Qt\Qt5.1.1\5.1.1\Src\qtbase

    configure -static -prefix “C:\Qt\Qt5.1.1_static” -opengl desktop -nomake examples -nomake tests

    mingw32-make

    but after running mingw32-make i get the following error.

    @
    c:\Qt\Qt5.1.1\5.1.1\Src\qtbase>mingw32-make
    cd src/ && ( test -e Makefile || C:/Qt/Qt5.1.1/5.1.1/Src/qtbase/bin/qmake C:/Qt/
    Qt5.1.1/5.1.1/Src/qtbase/src/src.pro -o Makefile ) && mingw32-make -f Makefile
    mingw32-make[1]: Entering directory 'c:/Qt/Qt5.1.1/5.1.1/Src/qtbase/src'
    cd tools/bootstrap/ && ( test -e Makefile || c:/Qt/Qt5.1.1/5.1.1/Src/qtbase/bin/
    qmake.exe C:/Qt/Qt5.1.1/5.1.1/Src/qtbase/src/tools/bootstrap/bootstrap.pro -o Ma
    kefile ) && c:/Qt/Qt5.1.1/Tools/mingw48_32/bin/mingw32-make -f Makefile
    /usr/bin/sh: c:/Qt/Qt5.1.1/Tools/mingw48_32/bin/mingw32-make: Invalid argument
    Makefile:56: recipe for target 'sub-bootstrap-make_first' failed
    mingw32-make[1]: *** [sub-bootstrap-make_first] Error 126
    mingw32-make[1]: Leaving directory 'c:/Qt/Qt5.1.1/5.1.1/Src/qtbase/src'
    makefile:41: recipe for target 'sub-src-make_first' failed
    mingw32-make: *** [sub-src-make_first] Error 2
    @

    I have installed python.
    What i am missing ? Any help please...


Log in to reply
 

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