Results 1 to 3 of 3

Thread: Building static Qt. Error 126 invalid argument

  1. #1
    Join Date
    May 2010
    Posts
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Building static Qt. Error 126 invalid argument

    Hello together,
    I like to build a static Qt.
    My system is Windows 7 64 Bit and the mingw32-make (3.8.1).

    I configure the Qt 4.7.2 and try to compile it but I get this error.

    C:\MyPrograms\Programming\Qt\4.7.2-static>mingw32-make sub-src
    cd src/tools/bootstrap/ && mingw32-make
    mingw32-make[1]: Entering directory `c:/MyPrograms/Programming/Qt/4.7.2-static/src/tools/bootstrap'
    c:/MyPrograms/Programming/mingw/bin/mingw32-make -f Makefile.Release
    mingw32-make[2]: Entering directory `c:/MyPrograms/Programming/Qt/4.7.2-static/src/tools/bootstrap'
    ar -M < object_script.libbootstrap.Release
    /bin/sh: /c/MyPrograms/Programming/mingw/bin/ar: Invalid argument
    mingw32-make[2]: *** [release/libbootstrap.a] Error 126
    mingw32-make[2]: Leaving directory `c:/MyPrograms/Programming/Qt/4.7.2-static/src/tools/bootstrap'
    mingw32-make[1]: *** [release] Error 2
    mingw32-make[1]: Leaving directory `c:/MyPrograms/Programming/Qt/4.7.2-static/src/tools/bootstrap'
    mingw32-make: *** [sub-tools-bootstrap-sub_src_target_ordered] Error 2
    I think the problem is the missing of the double points in the path. ar -M < object_script.libbootstrap.Release
    /bin/sh: /c/MyPrograms/Programming/mingw/bin/ar: Invalid argument

    Is my opinion correct? And how can I solve my problem.
    Thank you for your help
    kea_

  2. #2
    Join Date
    Aug 2009
    Location
    Greece
    Posts
    69
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Building static Qt. Error 126 invalid argument

    Be sure that you have installed perl. http://doc.qt.nokia.com/4.7/requirements-win.html
    For static it is best to follow the instructions in the wiki http://www.qtcentre.org/wiki/index.p..._Qt_on_Windows

  3. #3
    Join Date
    May 2010
    Posts
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Building static Qt. Error 126 invalid argument

    Thank you for your help.

    Now I get onother error.
    cd control/ && c:/MyPrograms/Programming/mingw/bin/mingw32-make -f Makefile
    /bin/sh: c:/MyPrograms/Programming/mingw/bin/mingw32-make: Invalid argument
    mingw32-make[1]: *** [sub-control-make_default-ordered] Error 126
    mingw32-make[1]: Leaving directory `c:/MyPrograms/Programming/Qt/4.7.2-static/src/activeqt'
    mingw32-make: *** [sub-activeqt-sub_src_target_ordered] Error 2
    I have no idea what this bug is like. I have installed the perl for 32 bit Windows. Maybe I should install the 64 bit.
    But I can compile my projects.

    What do you think about the Qt4.
    I think the idea of the signals and slots are great. And the Gui looks nice also the language system is good.
    But I have never seen such much bugs in a programming library us here.

    Thank you for your help.
    Greetings kea_

Similar Threads

  1. Replies: 7
    Last Post: 8th November 2012, 11:26
  2. static building qt, error: declaration of c function conflicts
    By BlueWizard in forum Installation and Deployment
    Replies: 4
    Last Post: 30th July 2010, 12:50
  3. Replies: 6
    Last Post: 8th April 2010, 08:04
  4. GLib-WARNING **: poll(2) failed due to: Invalid argument.
    By December in forum Qt Programming
    Replies: 4
    Last Post: 17th February 2009, 05:10
  5. error:invalid use of member
    By quickNitin in forum General Programming
    Replies: 4
    Last Post: 19th June 2006, 15:21

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.