QT Help

This is a discussion on QT Help within the Linux Programming forums, part of the Platform Specific Boards category; I have built an application using QT in Linux. How to make the application run independent of QT in machines ...

  1. #1
    Anirban Ghosh
    Join Date
    Jan 2006
    Posts
    278

    QT Help

    I have built an application using QT in Linux. How to make the application run independent of QT in machines where QT is not installed?

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Install qt. If you've actually written something with the library, how on earth do you believe it could run without that?

    Code:
    #include <qapplication.h>
    #include <qpushbutton.h>
    
    
    int main( int argc, char **argv )
    {
        QApplication a( argc, argv );
    Clues to this mystery are highlighted red.

    You might be able to make some kind of static executable that includes the Qt libraries, but you will now have like a 50-100mb exe for "hello world" (if this is even feasible, which I am not sure). Very bad idea. You could include the Qt libs yourself, altho there may be licensing issues there, and it is also pretty silly.

    Qt is easily available for all linux systems, you click your mouse in synaptic or whatever and it's done. Don't get paranoid about it. Your app "requires Qt 3+".
    Last edited by MK27; 04-12-2010 at 10:15 AM.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  3. #3
    Anirban Ghosh
    Join Date
    Jan 2006
    Posts
    278
    Thanks it worked!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Any QT users out there - on a Mac?
    By Dino in forum C++ Programming
    Replies: 9
    Last Post: 09-29-2009, 07:00 PM
  2. QT 4 and MSVC 6.0. Need help/
    By LMZ in forum C++ Programming
    Replies: 1
    Last Post: 09-15-2006, 03:57 PM
  3. QT or others for the beginning linux programmer
    By FillYourBrain in forum Linux Programming
    Replies: 3
    Last Post: 09-12-2003, 01:17 PM
  4. First QT App
    By Troll_King in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 07-26-2002, 09:30 AM
  5. Qt
    By Unregistered in forum Linux Programming
    Replies: 2
    Last Post: 01-18-2002, 04:48 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21