Let me thank you all people ,especially to sunil thaha ,wysota , JPN ,who has given me the right link .
Here is what i did to build Qt4.3.4 in STATIC mode .
1) Downloaded qt4.3.4 from trolltech site
2) Copied to new folder Qt4.3.4_Static ( to differentiate dynamic version of Qt4.x which is already installed in my machine )
3) Changed folder to qt4.3.4_Static ie; ( cd /home/myname/qt4.3.4_Static )
4) typed the following command ...
./configure -static -release -nomake demos -nomake examples -nomake tools
make
su //for switching to root user
make install
./configure -static -release -nomake demos -nomake examples -nomake tools
make
su //for switching to root user
make install
To copy to clipboard, switch view to plain text mode
N:B=> After the command 1-st command ./configure -static -release -nomake demos -nomake examples -nomake tools ,the system will create a directory called Trolltech in the path /usr/local.
N:B=> After the command make install , if you are going to the directory /usr/local/Trolltech/Qt-4.3.4/bin, you can see the following executable files....
=> qmake,uic3 ,uic ,moc , rcc
5) Edit the PATH variable in /etc/profile ,to call the qmake from the new directory ( /home/myname/qt4.3.4_Static/bin )
export PATH="/home/myname/qt4.3.4_Static/bin:$PATH"
export PATH="/home/myname/qt4.3.4_Static/bin:$PATH"
To copy to clipboard, switch view to plain text mode
6) Then finally i compiled the my application successfully using the following ..
/home/myname/qt4.3.4_Static/bin/qmake myfile.pro
make clean
make
/home/myname/qt4.3.4_Static/bin/qmake myfile.pro
make clean
make
To copy to clipboard, switch view to plain text mode
7) Now checking the dependency ( of qt libraries ) in my executable file.
ldd myExecutableFile
ldd myExecutableFile
To copy to clipboard, switch view to plain text mode
i could see the following in console after ldd command ...
linux-gate.so.1 => (0xffffe000)
libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0xb7f81000)
libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0xb7e4e000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7e2a000)
libSM.so.6 => /usr/lib/libSM.so.6 (0xb7e20000)
libICE.so.6 => /usr/lib/libICE.so.6 (0xb7e06000)
libXi.so.6 => /usr/lib/libXi.so.6 (0xb7dfd000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7df4000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb7def000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb7de9000)
libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb7ddf000)
libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb7dda000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7d6e000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7d43000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb7d34000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb7c17000)
libz.so.1 => /lib/libz.so.1 (0xb7c03000)
libgthread-2.0.so.0 => /opt/gnome/lib/libgthread-2.0.so.0 (0xb7bfe000)
libglib-2.0.so.0 => /opt/gnome/lib/libglib-2.0.so.0 (0xb7b69000)
librt.so.1 => /lib/librt.so.1 (0xb7b60000)
libdl.so.2 => /lib/libdl.so.2 (0xb7b5c000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7b44000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7a5f000)
libm.so.6 => /lib/libm.so.6 (0xb7a39000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7a2d000)
libc.so.6 => /lib/libc.so.6 (0xb78ff000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb78f9000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb78f4000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb78d3000)
/lib/ld-linux.so.2 (0xb7fe3000)
linux-gate.so.1 => (0xffffe000)
libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0xb7f81000)
libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0xb7e4e000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7e2a000)
libSM.so.6 => /usr/lib/libSM.so.6 (0xb7e20000)
libICE.so.6 => /usr/lib/libICE.so.6 (0xb7e06000)
libXi.so.6 => /usr/lib/libXi.so.6 (0xb7dfd000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7df4000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb7def000)
libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb7de9000)
libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb7ddf000)
libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb7dda000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7d6e000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7d43000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb7d34000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb7c17000)
libz.so.1 => /lib/libz.so.1 (0xb7c03000)
libgthread-2.0.so.0 => /opt/gnome/lib/libgthread-2.0.so.0 (0xb7bfe000)
libglib-2.0.so.0 => /opt/gnome/lib/libglib-2.0.so.0 (0xb7b69000)
librt.so.1 => /lib/librt.so.1 (0xb7b60000)
libdl.so.2 => /lib/libdl.so.2 (0xb7b5c000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7b44000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7a5f000)
libm.so.6 => /lib/libm.so.6 (0xb7a39000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7a2d000)
libc.so.6 => /lib/libc.so.6 (0xb78ff000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb78f9000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb78f4000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb78d3000)
/lib/ld-linux.so.2 (0xb7fe3000)
To copy to clipboard, switch view to plain text mode
I think there is no dependent qt files for myExecutableFile
Bookmarks