PDA

View Full Version : deployment issue?



triperzonak
8th August 2008, 10:44
i try to build a sample project (in Qt 4) to my centOS 5 and run it in centOS 4 with different version of Qt, in centOS5 i have QT4 and QT3 but in centOS4 i only have Qt3 so to avoid dependency issue i build static QT4. But when i try to run the sample project i got "floating point exception" then the program will not run.

before i build qt4 statically, i first try to deploy my project with the libQTGui.so.4.4.0 and libQtCore.so.4.4.0 and add it to my .pro like
LIBS +=-L /usr/local/Trolltech/Qt-4.4.0/lib -lQtGui -lQtCore (since this are the only lib i use in relation with Qt [i use ldd]) like what i do in windows. But the same floating point exception problem.

heres my project dependency using ldd

linux-gate.so.1 => (0x00948000)
libQtGui.so.4 => /usr/local/Trolltech/Qt-4.4.0/lib/libQtGui.so.4 (0x00949000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00882000)
libSM.so.6 => /usr/lib/libSM.so.6 (0x00110000)
libICE.so.6 => /usr/lib/libICE.so.6 (0x00119000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00877000)
libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x008c2000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x007a1000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00846000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x0078f000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x0068a000)
libQtCore.so.4 => /usr/local/Trolltech/Qt-4.4.0/lib/libQtCore.so.4 (0x00133000)
libz.so.1 => /usr/lib/libz.so.1 (0x00668000)
libgthread-2.0.so.0 => /lib/libgthread-2.0.so.0 (0x0049b000)
libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0x00358000)
librt.so.1 => /lib/librt.so.1 (0x008c8000)
libdl.so.2 => /lib/libdl.so.2 (0x00649000)
libpthread.so.0 => /lib/libpthread.so.0 (0x0064f000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x004d9000)
libm.so.6 => /lib/libm.so.6 (0x00620000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x008d3000)
libc.so.6 => /lib/libc.so.6 (0x04399000)
libexpat.so.0 => /lib/libexpat.so.0 (0x00823000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00685000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x0067d000)
/lib/ld-linux.so.2 (0x004bd000)


what should i do?

triperzonak
7th October 2008, 08:59
i still dont know how to solve this problem, anything i build on centos4 will run on centos5 (they both have qt) .. how ever anything i build on centos5 will not run on centos4

it has this "floating point exeception".

Maybe it is because from the library of centos itself but i dont know how to statically linked the application to the library of centos for ex. the libc.so.