Results 1 to 9 of 9

Thread: I got two problems when I used static compiled library of QT4

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    109
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: static linked error ???

    Quote Originally Posted by qintm
    static compile Qt4 libs on linux
    Which exact version of Qt? Which exact Linux distribution?

    Quote Originally Posted by qintm
    Error infomation under:
    Qt Code:
    1. g++ -static -Wl,-rpath,/usr/lib/qt-4.1.2-static-full/lib -Wl,-rpath,/usr/lib/qt-4.1.2-static/lib [...]
    To copy to clipboard, switch view to plain text mode 
    Strange, have you somehow modified Qt to add -static? This is not supposed to appear in the linker command line. Also why are two directories involved here, /usr/lib/qt-4.1.2-static-full and /usr/lib/qt-4.1.2-static?

    The static compiled Qt4 lib seem not supprot i18n?
    There's nothing related to i18n here.

  2. #2
    Join Date
    Mar 2006
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: static linked error ???

    I confirm the PATH have not problem.

  3. #3
    Join Date
    Mar 2006
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: static linked error ???

    Thanks for dimitri, at first
    Quote Originally Posted by dimitri
    Which exact version of Qt? Which exact Linux distribution?

    Linux Version : RedFlag Desktop 5.0(equate Fedora Core 4 update 2)
    Use zh_CN.gb18030 encode within it.


    Strange, have you somehow modified Qt to add -static? This is not supposed to appear in the linker command line. Also why are two directories involved here, /usr/lib/qt-4.1.2-static-full and /usr/lib/qt-4.1.2-static?

    This is not supposed to appear in the linker command line.

    Why? Are you introduce ,detailed please.

    There's nothing related to i18n here.
    "There's nothing related to i18n here"

    Yes,but I need !

    How to static compile the Qt4 libs?
    Last edited by qintm; 16th April 2006 at 11:51.

  4. #4
    Join Date
    Jan 2006
    Posts
    109
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: static linked error ???

    Quote Originally Posted by qintm
    Linux Version : RedFlag Desktop 5.0(equate Fedora Core 4 update 2)
    Fedora Core 4 update 2 does not exist. Maybe you mean Red Hat Enterprise 4 update 2 or plain Fedora Core 4?


    Quote Originally Posted by qintm
    This is not supposed to appear in the linker command line.

    Why? Are you introduce ,detailed please.
    As far as I can remember the build system doesn't put -static there. I suspect you have added it yourself.

    Actually I suspect you have two versions of Qt 4.1.2, one in /usr/lib/qt-4.1.2-static-full which you have modified yourself by adding -static somewhere and the other in /usr/lib/qt-4.1.2-static. These versions of Qt are somehow interfering. You have to describe what you're doing precisely if you want us to be able to help.
    • What is in /usr/lib/qt-4.1.2-static-full?
    • What is in /usr/lib/qt-4.1.2-static?
    • What is the value of PATH and QTDIR while you're building Qt in /root/qt-x11-opensource-src-4.1.2?
    • How do you configure Qt?

    Quote Originally Posted by qintm
    "There's nothing related to i18n here"

    Yes,but I need !
    I understand you need i18n. What I'm saying is that I don't see anything related to i18n in what you've posted so far, so there should be no problem with i18n. Don't bother with i18n.

Similar Threads

  1. QMAKE: Building static library without -fPIC
    By rainman110 in forum Qt Programming
    Replies: 1
    Last Post: 2nd May 2012, 16:07
  2. Compiling QCA as static library
    By NoRulez in forum Qt Programming
    Replies: 1
    Last Post: 7th December 2008, 17:32
  3. Replies: 22
    Last Post: 8th October 2008, 13:54
  4. Replies: 16
    Last Post: 23rd May 2008, 10:12
  5. Building qt program with static library
    By JonathanForQT4 in forum Newbie
    Replies: 2
    Last Post: 22nd June 2007, 23:15

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
  •  
Qt is a trademark of The Qt Company.