Results 1 to 15 of 15

Thread: Qt application is not compiling with static linking?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2010
    Posts
    315
    Thanked 53 Times in 51 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Qt application is not compiling with static linking?

    Quote Originally Posted by gurmeetsingh View Post
    I want to compile this application with static linking so that it will run on any ubuntu system.
    So why you need static linking? Qt is a part of Ubuntu distribution!
    To deploy app you should use debian packege system with marked required dependency. Then when package is installed calling:
    sudo apt-get install -f
    will install all needed libraries (of Qt).
    In case when package is install from package repository everything should be automatic.

    If you don't know how to make debian package just install qt-libraries manually:
    sudo apt-get install libqt4-dev
    will install most of the Qt libraries.

    You can try install minimal number of packages (depending what kind of features you app is using):
    sudo apt-get install libqt4-gui libqt4-core

  2. #2
    Join Date
    Jan 2012
    Location
    India
    Posts
    19
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Re: Qt application is not compiling with static linking?

    Thanks Marek for your response.

    I am developing a GUI based application which will install printer driver on ubuntu. It is actually a setup kind of executable as it is required by the client.
    While installing the printer, it will give flexibility to user to choose port, set name of printer etc.
    How i can acheive this?

    Can you provide any step by step guide to create .deb package as it is also required by client and i have not found any useful link reason being newbie?

    Thanks.

Similar Threads

  1. problem compiling qt application using static external libraries
    By pavan1984 in forum Installation and Deployment
    Replies: 0
    Last Post: 5th October 2010, 11:41
  2. Compiling static application
    By Benjamin in forum Qt for Embedded and Mobile
    Replies: 9
    Last Post: 23rd December 2008, 11:45
  3. Replies: 1
    Last Post: 16th September 2008, 17:29
  4. Static Linking Application for Realease
    By impeteperry in forum Qt Programming
    Replies: 2
    Last Post: 14th November 2007, 18:12
  5. Replies: 2
    Last Post: 1st August 2007, 15:04

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.