Results 1 to 2 of 2

Thread: Building Static Qt App, how to proceed

  1. #1
    Join Date
    May 2009
    Posts
    3
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Building Static Qt App, how to proceed

    Hi.

    First things first, how do I confirm if I successfully installed a static Qt on my debian pc? Does building really take hours to complete?

    So I tried to export 'supposedly' static bin into path. Then run make clean, qmake -config release, make. The build was ok. But, running ldd:

    linux-gate.so.1 => (0xb7f6f000)
    libpoppler-qt4.so.3 => /usr/lib/libpoppler-qt4.so.3 (0xb7ef4000)
    libpoppler.so.3 => /usr/lib/libpoppler.so.3 (0xb7d4a000)
    libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7d25000)
    libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7cb0000)
    libSM.so.6 => /usr/lib/libSM.so.6 (0xb7ca8000)
    libICE.so.6 => /usr/lib/libICE.so.6 (0xb7c91000)
    libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7c88000)
    libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7c5d000)
    libXext.so.6 => /usr/lib/libXext.so.6 (0xb7c4e000)
    libX11.so.6 => /usr/lib/libX11.so.6 (0xb7b5f000)
    libz.so.1 => /usr/lib/libz.so.1 (0xb7b4a000)
    libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb7b45000)
    librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb7b3c000)
    libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb7a87000)
    libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb7a82000)
    libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7a69000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb797b000)
    libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7955000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7948000)
    libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb77ed000)
    libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0xb75c0000)
    libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb6cc1000)
    libQtXml.so.4 => /usr/lib/libQtXml.so.4 (0xb6c7e000)
    libQtTest.so.4 => /usr/lib/libQtTest.so.4 (0xb6c6c000)
    libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb6c4d000)
    libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb6b13000)
    libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb6aed000)
    libXau.so.6 => /usr/lib/libXau.so.6 (0xb6aea000)
    libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb6ae8000)
    libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb6ad0000)
    /lib/ld-linux.so.2 (0xb7f70000)
    libpcre.so.3 => /usr/lib/libpcre.so.3 (0xb6aa7000)
    libaudio.so.2 => /usr/lib/libaudio.so.2 (0xb6a90000)
    libXi.so.6 => /usr/lib/libXi.so.6 (0xb6a88000)
    libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb6a82000)
    libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb6a7d000)
    libXt.so.6 => /usr/lib/libXt.so.6 (0xb6a2d000)
    There are still Qt libraries needed. Plus the poppler. How can I link the poppler statically?

    Thanks in advance. Any suggestions will be appreciated.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Building Static Qt App, how to proceed

    Quote Originally Posted by zeitcheist View Post
    First things first, how do I confirm if I successfully installed a static Qt on my debian pc?
    You can check the size of the resulting binaries. They should all be quite big.

    Does building really take hours to complete?
    It depends on your hardware

    There are still Qt libraries needed.
    What does qmake -v return? Does it point to the static version of Qt?

    Plus the poppler. How can I link the poppler statically?
    You need to build the library statically. As far as I remember poppler is built using autotools so running configure --help might be a good place to start.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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. static building qt, error: declaration of c function conflicts
    By BlueWizard in forum Installation and Deployment
    Replies: 4
    Last Post: 30th July 2010, 12:50
  3. Replies: 16
    Last Post: 23rd May 2008, 10:12
  4. Building qt program with static library
    By JonathanForQT4 in forum Newbie
    Replies: 2
    Last Post: 22nd June 2007, 23:15
  5. Win32 qmake: building a static library
    By Amanda in forum Qt Programming
    Replies: 5
    Last Post: 8th November 2006, 19:32

Tags for this Thread

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.