Results 1 to 3 of 3

Thread: Problems with static build

  1. #1
    Join Date
    Feb 2006
    Location
    Jarrell, Texas, USA
    Posts
    70
    Thanks
    7
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Problems with static build

    OS: Suse Enterprise Desktop 10.2
    QT: 4.1.3

    I get missing shared object errors when running QT executables such as assistant.

    Here is my configure command (which includes the -static switch):
    ./configure -prefix "/home/QT/4.3.1-OCI" -static -L/user/lib/mysql
    -I/usr/include/mysql -qt-sql-mysql -I/usr/include/oracle/10.2.0.3/client
    -L/usr/lib/oracle/10.2.0.3/client/lib -qt-sql-oci -qt-sql-sqlite -qt-sql-odbc
    -qt-gif -qt-zlib

    Here is the error:
    assistant
    assistant: error while loading shared libraries: libQtXml.so.4: cannot open shared object file: No such file or directory

    Did I miss a switch?

    Karl

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problems with static build

    Looks like you're not using the asstant executable you build (maybe you installed another qt4 binary package). Make sure to execute the correct executable.

  3. #3
    Join Date
    Oct 2006
    Posts
    279
    Thanks
    6
    Thanked 40 Times in 39 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Problems with static build

    Didn't you compile statically using "make sub-src"? That means examples, demos and tools like assistant and designer aren't rebuild automatically.
    You can build most of those manually, but since assistant relies on the QtAssistantClient lib I'm not sure you can build it statically. All programs which rely on plugins cannot be built statically.

Similar Threads

  1. Replies: 16
    Last Post: 23rd May 2008, 10:12
  2. Qt4 MacOSX UB Xcode and a static Qt build?
    By kuroyume0161 in forum Installation and Deployment
    Replies: 15
    Last Post: 18th March 2007, 08:10
  3. Replies: 2
    Last Post: 8th March 2007, 22:22
  4. problem after Qt 4.2.2 static build
    By npc in forum Newbie
    Replies: 2
    Last Post: 23rd February 2007, 12:28
  5. I got two problems when I used static compiled library of QT4
    By qintm in forum Installation and Deployment
    Replies: 8
    Last Post: 20th April 2006, 08:52

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.