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?
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 ...
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?
Install qt. If you've actually written something with the library, how on earth do you believe it could run without that?
Clues to this mystery are highlighted red.Code:#include <qapplication.h> #include <qpushbutton.h> int main( int argc, char **argv ) { QApplication a( argc, argv );
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
Thanks it worked!