Hi,

How do i compile a static application for linux using qt?
I am using QT 4.6 SDK to write the programs
Using http://qtnode.net/wiki?title=Building_static for a guide, I have run configure -static and mingw32-make sub-src using the QT Command prompt in windows.
The process took a few hrs and i compiled the program in windows which created a 9.32mb executable and i copied 4 .dll files over to the same folder and i am able to run the executable normally.
Do i also need to do the same for linux OS (configure -static and make sub-src) to make a static application?

Qt Code:
  1. # -------------------------------------------------
  2. # Project created by QtCreator 2010-01-11T17:41:55
  3. # -------------------------------------------------
  4. CONFIG += static
  5. CONFIG += staticlib
  6. static {
  7. TARGET = test
  8. TEMPLATE = app
  9. SOURCES += main.cpp \
  10. mainwindow.cpp
  11. HEADERS += mainwindow.h
  12. FORMS += mainwindow.ui
  13. OTHER_FILES += Icons/Thumbs.db \
  14. Icons/onebit_26.png \
  15. Icons/onebit_24.png \
  16. Icons/onebit_18.png \
  17. Icons/onebit_13.png \
  18. Icons/onebit_12.png \
  19. Icons/onebit_10.png \
  20. Icons/onebit_09.png \
  21. Icons/macforger.JPG \
  22. Icons/icon-20.png \
  23. Icons/icon-19.png \
  24. Icons/icon-16.png \
  25. Icons/icon-11.png \
  26. Icons/icon-06.png \
  27. Icons/icon-04.png \
  28. Icons/002_26.ico \
  29. Icons/002_04.ico \
  30. Icons/test_4.PNG
  31. }
To copy to clipboard, switch view to plain text mode