PDA

View Full Version : Run a QT Application



csvivek
14th April 2008, 06:38
Hi Can u please tell me how to run a compiled QT Application on a machine that doesnot have QT Installed..

I think i need to add some .so files during the make operation!
can u tell me which qmake variable i should use, so that it adds all the necessary files during the make operation itself...


I am using Qt 4.2.2 and the linux kernel version is 2.6

The output of ldd command is


libQtGui.so.4 => /usr/local/Trolltech/Qt-4.2.2/lib/libQtGui.so.4 (0x00111000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x0086d000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x00bd8000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x00be2000)
libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x00890000)
libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x00cd7000)
libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0x00ce1000)
libXfixes.so.3 => /usr/X11R6/lib/libXfixes.so.3 (0x00101000)
libXcursor.so.1 => /usr/X11R6/lib/libXcursor.so.1 (0x00ce6000)
libXinerama.so.1 => /usr/X11R6/lib/libXinerama.so.1 (0x00cf1000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00c11000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00c9b000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x00bb4000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00aeb000)
libQtCore.so.4 => /usr/local/Trolltech/Qt-4.2.2/lib/libQtCore.so.4 (0x00cf4000)
libz.so.1 => /usr/lib/libz.so.1 (0x00ad9000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00898000)
libdl.so.2 => /lib/libdl.so.2 (0x00ad3000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00bc4000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0097c000)
libm.so.6 => /lib/tls/libm.so.6 (0x00aae000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00913000)
libc.so.6 => /lib/tls/libc.so.6 (0x00e82000)
libexpat.so.0 => /usr/lib/libexpat.so.0 (0x00c7a000)
/lib/ld-linux.so.2 (0x00965000)


Thanks in advance..

wysota
14th April 2008, 08:02
http://doc.trolltech.com/4.3/deployment-x11.html