PDA

View Full Version : Building static Qt. Error 126 invalid argument



kea_
19th March 2011, 22:54
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_

Rhayader
20th March 2011, 00:22
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.php?title=Building_static_Qt_on_Windows

kea_
20th March 2011, 07:58
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_