Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Building Qt5.1.1 MinGw static on windows 7 ends with error
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 Posters 874 Views 1 Watching
  • 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.
  • A Offline
    A Offline
    ashokb
    wrote on last edited by
    #1

    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...

    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