PDA

View Full Version : Compile Qt 4.6.2 to static library failed



kea_
3rd May 2010, 12:32
Hello together,
I'm new to qt before I developed with wxWidgets and Code::Blocks. Now I have seen that the qt has a bigger library.
So I like to develop in qt.

I like to compile the qt library to a static library.
I followed the Wiki article Building a static version of Qt.
The confiruation works fine. But if I compile the qt I get an error.

My knowlegde about make is very small. Please give me a hint how can I solve my problem.

Thank you for your help...
kea_

Part of the error:


d:\programs\Development\Qt\qt-static\lib\libQtWebKit.a(MediaPlayerPrivatePhonon. o):MediaPlayerPrivatePhonon.cpp:(.text+0xfc1): undefined ref
erence to `_imp___ZN6Phonon10createPathEPNS_9MediaNodeES1_'
d:\programs\Development\Qt\qt-static\lib\libQtWebKit.a(MediaPlayerPrivatePhonon. o):MediaPlayerPrivatePhonon.cpp:(.text+0xfd0): undefined ref
erence to `_imp___ZN6Phonon4PathD1Ev'
collect2: ld returned 1 exit status
mingw32-make[5]: *** [..\..\..\..\bin\assistant.exe] Error 1
mingw32-make[5]: Leaving directory `D:/programs/Development/Qt/qt-static/tools/assistant/tools/assistant'
mingw32-make[4]: *** [release] Error 2
mingw32-make[4]: Leaving directory `D:/programs/Development/Qt/qt-static/tools/assistant/tools/assistant'
mingw32-make[3]: *** [sub-assistant-make_default-ordered] Error 2
mingw32-make[3]: Leaving directory `D:/programs/Development/Qt/qt-static/tools/assistant/tools'
mingw32-make[2]: *** [sub-tools-make_default-ordered] Error 2
mingw32-make[2]: Leaving directory `D:/programs/Development/Qt/qt-static/tools/assistant'
mingw32-make[1]: *** [sub-assistant-make_default-ordered] Error 2
mingw32-make[1]: Leaving directory `D:/programs/Development/Qt/qt-static/tools'
mingw32-make: *** [sub-tools-make_default-ordered] Error 2

Talei
16th May 2010, 03:55
Delete *.tmp files from src folder, there is 5 in total files or so, like mocinclude.tmp that prevent success build of 4.6.2.

kea_
17th May 2010, 16:19
Sorry for the late answer.
Thank you for your answer. I had the wrong source (bin) taken. Now it works.

Greetings kea_

kea_
17th May 2010, 20:53
Hello together,

it is to getting nuts, on windows xp it works but on windows 7 64bit I can't compile the Qt 4.6.2.
I did it on the same way like on the windows xp. But on the windows 7 I get this error.


/usr/bin/sh: /c/MyPrograms/Programming/mingw/bin/ar: Invalid argument
mingw32-make[2]: *** [../../lib/libQtGui.a] Error 126
mingw32-make[1]: *** [release] Error 2
mingw32-make: *** [sub-gui-make_default-ordered] Error 2

I lost so many time that I'm close to use java.
So please help me I like to progamm in c++.
What's wrong her.

Greetings and thank's kea_