Results 1 to 4 of 4

Thread: Why will my coreapplication need libQtGui.so.4 lib

  1. #1
    Join Date
    Dec 2007
    Location
    London
    Posts
    206
    Thanks
    40
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Why will my coreapplication need libQtGui.so.4 lib

    Hello,
    I am writing a core application . I used no gui classes. But readelf -d output of my application is like that:

    0x00000001 (NEEDED) Shared library: [libQtXml.so.4]
    0x00000001 (NEEDED) Shared library: [libQtGui.so.4]
    0x00000001 (NEEDED) Shared library: [libts-0.0.so.0]
    0x00000001 (NEEDED) Shared library: [libQtNetwork.so.4]
    0x00000001 (NEEDED) Shared library: [libQtCore.so.4]
    0x00000001 (NEEDED) Shared library: [librt.so.1]
    0x00000001 (NEEDED) Shared library: [libdl.so.2]
    0x00000001 (NEEDED) Shared library: [libpthread.so.0]
    0x00000001 (NEEDED) Shared library: [libstdc++.so.6]
    0x00000001 (NEEDED) Shared library: [libm.so.6]
    0x00000001 (NEEDED) Shared library: [libgcc_s.so.1]
    0x00000001 (NEEDED) Shared library: [libc.so.6]

    Why does it need libQtGui.so.4 lib although none of my classes are gui classes?

  2. #2
    Join Date
    May 2008
    Posts
    155
    Thanked 15 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Why will my coreapplication need libQtGui.so.4 lib

    Quote Originally Posted by yagabey View Post
    Hello,
    I am writing a core application . I used no gui classes. But readelf -d output of my application is like that:

    0x00000001 (NEEDED) Shared library: [libQtXml.so.4]
    0x00000001 (NEEDED) Shared library: [libQtGui.so.4]
    [...]
    Why does it need libQtGui.so.4 lib although none of my classes are gui classes?
    How did you build your application?

    Something in the build process seemingly added Gui and Network

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Why will my coreapplication need libQtGui.so.4 lib

    Add
    Qt Code:
    1. QT -= gui
    To copy to clipboard, switch view to plain text mode 
    to the .pro file.
    J-P Nurmi

  4. The following user says thank you to jpn for this useful post:

    yagabey (18th December 2008)

  5. #4
    Join Date
    Dec 2007
    Location
    London
    Posts
    206
    Thanks
    40
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Re: Why will my coreapplication need libQtGui.so.4 lib

    ok,
    Qt Code:
    1. QT -= gui
    To copy to clipboard, switch view to plain text mode 

    works..thanks..

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.