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 Qt 5.4 statically on Windows 7
Forum Updated to NodeBB v4.3 + New Features

Building Qt 5.4 statically on Windows 7

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 286 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.
  • VivvarV Offline
    VivvarV Offline
    Vivvar
    wrote on last edited by
    #1

    Re: How to build Qt 5.4 statically on Window 7. Compression exe by upx

    First I open Qt 5.4 command prompt , then cd the the Src location.

    the command which I am using to configure is this
    "configure -static -platform win32-g++ -prefix "C:\Qt\Qt5.4.0_Static" -debug-and-release -opensource -confirm-license -nomake examples -nomake tests -nomake tools -opengl desktop -no-angle -qt-sql-sqlite -make libs -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -strip"
    This got executed successfully.

    after this when I enter mingw32-make , the error I get is as follows,

    cd qtbase/ && ( test -e Makefile || C:/Qt/Qt5.4.0/5.4/Src/qtbase/bin/qmake C:/Qt
    /Qt5.4.0/5.4/Src/qtbase/qtbase.pro -o Makefile ) && mingw32-make -f Makefile
    mingw32-make[1]: Entering directory 'c:/Qt/Qt5.4.0/5.4/Src/qtbase'
    cd src/ && ( test -e Makefile || c:/Qt/Qt5.4.0/5.4/Src/qtbase/bin/qmake.exe C:/Q
    t/Qt5.4.0/5.4/Src/qtbase/src/src.pro -o Makefile ) && c:/Qt/Qt5.4.0/Tools/mingw4
    91_32/bin/mingw32-make -f Makefile
    /usr/bin/sh: c:/Qt/Qt5.4.0/Tools/mingw491_32/bin/mingw32-make: Invalid argument
    Makefile:41: recipe for target 'sub-src-make_first' failed
    mingw32-make[1]: *** [sub-src-make_first] Error 126
    mingw32-make[1]: Leaving directory 'c:/Qt/Qt5.4.0/5.4/Src/qtbase'
    makefile:65: recipe for target 'module-qtbase-make_first' failed
    mingw32-make: *** [module-qtbase-make_first] Error 2

    Now , a work around for this(which i feel) is cd to qtbase directory , and run mingw32-make . In this as well I come across the above error but directing to some sub folder within this .
    Again I do cd to that sub folder, I end up getting the same error.

    But what I expect is when I enter mingw32-make in which ever folder , it should get compiled .
    But it is not happening .

    It has become really frustrating now .

    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