I have discovered that my programs report very huge amount of leaks and lost memory with valgrind. I could find out that the problem is specific to my 64 bit Ubuntu (Jaunty) on one of my laptops. Exactly the same laptop, with the same software but 32 bit, does not report such a huge leak ~2-3 Mb for a simple QApplication instance. Finally, the problem was solved by recompiling with disabled gtk/glib/fontconfig support the Qt. I used the following configure command to set up the compilation:
./configure -prefix /usr -no-gtkstyle -no-glib -no-fontconfig -fast -nomake example -nomake demos -nomake docs -nomake translations
Edit: Recently, I compiled a custom(, thin?) version of the Qt 4.6.x and I will use the following parameters in the future:
./configure -prefix /home/kecsap/qt6 -no-gtkstyle -no-glib -no-fontconfig -fast -nomake example -nomake demos -nomake translations -optimized-qmake -no-openvg -no-webkit -opensource -no-qt3support -no-webkit -no-phonon -no-phonon-backend -no-multimedia -no-audio-backend
I am happy again... :)
Feliratkozás:
Megjegyzések küldése (Atom)
Nincsenek megjegyzések:
Megjegyzés küldése