[Qt-interest] QT Embedded link static application problem

OSProg osprog at gmail.com
Tue Mar 17 13:29:59 CET 2009


Hi,

I have a problem linking my qt/e application static.
I built Qt library with '-static'.
When I link my app with '-static' (I have to link against tslib dynamic, 
i.e. '-Wl,-Bdynamic -lts'), and when I run it:

root:/usr/bin> ./myqtapp  -qws
./myqtapp: not found

When I remove '-static', but I linked with '-Wl,Bstatic' and 
'-Wl,Bdynamic' instead, I have an exception at running:

NULL pointer access
Deferred Exception context
CURRENT PROCESS:
COMM=portedcanvas PID=280
CPU = 0
TEXT = 0x01000000-0x01726fb0        DATA = 0x02600fb0-0x0272af38
 BSS = 0x0272af38-0x00240000  USER-STACK = 0x0025fe70
.......
.......
Return addresses in stack:
    address : <0x01570792> [ /usr/bin/portedcanvas + 0x570792 ]
    address : <0x025f6a06> [ /lib/libuClibc-0.9.29.so + 0x36a06 ]
    address : <0x019a4fc2> [ /lib/ld-uClibc-0.9.29.so + 0x4fc2 ]
    address : <0x019a5094> [ /lib/ld-uClibc-0.9.29.so + 0x5094 ]
    address : <0x0033deae> [ /lib/libstdc++.so.6.0.8 + 0x3deae ]
    address : <0x0026073e> [ /usr/lib/libts-0.0.so.0 + 0x73e ]
    address : <0x01043808> [ /usr/bin/portedcanvas + 0x43808 ]
    address : <0x019a589a> [ /lib/ld-uClibc-0.9.29.so + 0x589a ]
    address : <0x019a11d0> [ /lib/ld-uClibc-0.9.29.so + 0x11d0 ]
    address : <0x019a1184> [ /lib/ld-uClibc-0.9.29.so + 0x1184 ]
   frame  1 : <0x0025ff82> [ portedcanvas + 0x1ff82 ]
    address : <0x0000ae1c> { _print_cfs_rq + 0x110 }
SIGSEGV

Has anybody any idea about that?




More information about the Qt-interest-old mailing list