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. Static Qt - mingw32-make invalid argument
Forum Updated to NodeBB v4.3 + New Features

Static Qt - mingw32-make invalid argument

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 Posters 3.0k 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.
  • G Offline
    G Offline
    gaminn
    wrote on last edited by
    #1

    Hello,
    I try to build static Qt 4.8.0 for mingw on Windows 7 32bit. I installed Perl, added:

    @C:\Perl\site\bin;C:\Perl\bin;C:\QtSDK\Desktop\Qt\4.8.0\mingw\bin;C:\QtSDK\mingw\bin@

    to my Path environment variable. I build in C:\Qt\4.8.0_static.

    This way I run configure.exe:

    @configure -debug-and-release -opensource -static -L C:/QtSDK/mingw/lib -nomake examples -nomake demos -qt-libjpeg -qt-libpng -qt-zlib -no-stl -no-rtti -no-native-gestures -no-qt3support -qt-sql-sqlite -no-phonon -no-phonon-backend -no-openssl -no-webkit -no-script -no-scripttools -no-multimedia -no-declarative -no-declarative-debug -no-opengl -no-style-motif -no-style-cde -no-style-cleanlooks -no-style-plastique -no-style-windowsxp -no-style-windowsvista -platform win32-g++
    @

    However mingw32-make fails with this error:

    @gcc -c -O2 -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_BOOTSTRAPPED -DQT_LITE_UN
    ICODE -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATAS
    TREAM -DQT_NO_GEOM_VARIANT -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_STL -DQT_NO_S
    YSTEMLOCALE -DQT_NO_TEXTSTREAM -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USIN
    G_NAMESPACE -DQT_NO_DEPRECATED -DQT_NODLL -DQT_NO_DYNAMIC_CAST -I'../../../inclu
    de' -I'../../../include/QtCore' -I'../../../include/QtXml' -I'../../3rdparty/zli
    b' -I'../../../mkspecs/win32-g++' -o tmp/obj/release_static/zutil.o ../../3rdpar
    ty/zlib/zutil.c
    ar -M < object_script.libbootstrap.Release
    /usr/bin/sh: /c/QtSDK/mingw/bin/ar: Invalid argument
    mingw32-make[2]: *** [release/libbootstrap.a] Error 126
    mingw32-make[2]: Leaving directory c:/Qt/4.8.0_static/src/tools/bootstrap' mingw32-make[1]: *** [release] Error 2 mingw32-make[1]: Leaving directory c:/Qt/4.8.0_static/src/tools/bootstrap'
    mingw32-make: *** [sub-tools-bootstrap-make_default-ordered] Error 2@

    I have no idea what the "Invalid argument" error means nor how to fix.

    Please help me. Thanks

    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