March 9, 2012

fryman fryman
Lab Rat
12 posts

TSLIB segfault on exit??

 

Using Qt Embedded 4.7.4 on codesourcery toolchain (arm). Successfully build/installed Qt and tslib, but when running a Qt application like so:

TSLIB_CONFFILE=/etc/ts.conf QWS_MOUSE_PROTO=Tslib ./calculator -qws

I get a segmentation fault on exit? If I use any input driver except for tslib, I get no fault. I’ve cleaned the ts.conf file carefully. Has anyone seen tslib based Qt embedded apps segfault on exit?? The app works just fine, but segfaults on exit.

The tslib’s calibration and test programs work just fine, btw….no segfaults.

Thanks!

4 replies

March 9, 2012

mlong mlong
Mad Scientist
1517 posts

Have you run the app in a debugger to see exactly where it is segfaulting?

 Signature 

Senior Software Engineer
AccuWeather Enterprise Solutions
/* My views and opinions do not necessarily reflect those of my employer.  Void where prohibited. */

March 9, 2012

fryman fryman
Lab Rat
12 posts

It’s crashing in the QWSTslibMouseHandlerPrivate dtor, in a call to ts_close().

Oddly, if I link in tslib to the application directly I get no segfault on exit??

March 9, 2012

fryman fryman
Lab Rat
12 posts

Well…now it is segfaulting no matter if I link in tslib or not? I wonder what has changed?

March 9, 2012

fryman fryman
Lab Rat
12 posts

Here’s my config and qmake.conf for Qt…can someone review and make sure I’m ok?? Maybe I’m missing a switch?

./configure -prefix /usr/local/Trolltech/Qt-arm-4.7.4 -embedded arm -platform qws/linux-x86-g++ -xplatform qws/linux-arm-gnueabi-g++ -depths 16,24,32 -no-mmx -no-3dnow -no-sse -no-sse2 -no-cups -no-largefile -no-accessibility -no-qt3support -no-openssl -no-gtkstyle -qt-gfx-vnc -qt-mouse-pc -plugin-mouse-pc -qt-mouse-linuxinput -release -no-glib -opensource -qt-mouse-linuxtp -plugin-mouse-linuxtp -qt-mouse-tslib -I/usr/local/Trolltech/tslib/include -L/usr/local/Trolltech/tslib/lib -R/usr/local/Trolltech/tslib/lib

qmake.conf tunings:

QMAKE_CFLAGS += -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-strict-volatile-bitfields
QMAKE_CXXFLAGS += -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-strict-volatile-bitfields

 
  ‹‹ [SOLVED]QFeedbackHapticsEffect error: No such file or directory      NetworkInfo for all modes possible? ››

You must log in to post a reply. Not a member yet? Register here!