Results 1 to 4 of 4

Thread: Compile Qt 4.6.2 to static library failed

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

    Default Compile Qt 4.6.2 to static library failed

    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

  2. #2
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Compile Qt 4.6.2 to static library failed

    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.

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

    Default Re: Compile Qt 4.6.2 to static library failed

    Sorry for the late answer.
    Thank you for your answer. I had the wrong source (bin) taken. Now it works.

    Greetings kea_

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

    Default Re: Compile Qt 4.6.2 to static library failed

    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_

Similar Threads

  1. Using a static library
    By Cruz in forum Newbie
    Replies: 2
    Last Post: 26th January 2010, 17:00
  2. how to use static library in qt4?
    By hashb in forum Qt Programming
    Replies: 9
    Last Post: 28th October 2009, 12:46
  3. compile Qt failed!
    By yleesun in forum Installation and Deployment
    Replies: 5
    Last Post: 24th July 2009, 04:47
  4. HELP! QtLibrary.. Load library failed!!
    By Cantora in forum Newbie
    Replies: 1
    Last Post: 10th June 2009, 10:18
  5. QT X11 cross compile failed on Fedora 4 for arm
    By Jessica026 in forum Installation and Deployment
    Replies: 2
    Last Post: 23rd April 2007, 15:53

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.