PDA

View Full Version : Something terribly wrong with static linux builds



snookie
8th June 2011, 22:22
I'm running ubuntu 10.04 and am compiling a static set of libraries with the following:

./configure -static -release -no-exceptions -no-qt3support -no-openssl -no-opengl -no-sql-sqlite -nomake examples -nomake demos -qt-libjpeg -qt-zlib -qt-libpng

I've also tried

./configure -static

without any difference..

My problem is that my application is terribly slow when compiled with static libs. When compiled with the dynamic libs, it's night and day difference, especially on the window with the SVG file. Also, there are these funny grid artifacts over my SVG image image that only appear with my static set of libraries:

6556

If I do an LDD on my dynamically compiled application, this is what I get:
$ ldd Flirc | grep -i QT
3: libQtSvg.so.4 => /usr/lib/libQtSvg.so.4 (0x009a9000)
4: libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0x00c2e000)
5: libQtNetwork.so.4 => /usr/lib/libQtNetwork.so.4 (0x0073d000)
6: libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0x0030f000)

I'm a big fan of google but in this circumstance, I can't find anyone with the same problem.

Thank you in advance.