PDA

View Full Version : How to enable QWS_IM in qte-3.3.5 ?



kevin lin
29th June 2006, 07:40
Hi, there:

I use qte-3.3.5. It works well untill I tried to enable "QWS_IM". It causes "SIGSEGV" during construct "QWSDisplay". (all IM-related codes are not exectuted yet).

Here are some questions and info. Anyone has same experience ?

* My platform:
* Linux 2.4.30
* cross compilation for MIPSEL (mipsel-linux-g++ (GCC) 3.4.2)
* qt-embedded 3.3.5 configured with "-embedded"

* Why QT_NO_QWS_IM is always defined ? Does it mean the code is not ready ?
** In "include/qglobal.h",

#elif defined(Q_OS_UNIX)
# if defined(QWS)
# define Q_WS_QWS
# define QT_NO_QWS_IM
# elif defined(Q_OS_MACX)
# define Q_WS_MACX
# else
# define Q_WS_X11
# endif
#endif

* I tried to mark the line "# define QT_NO_QWS_IM" to enable all IM related code.
** Compilation is OK
** Run time always gets "SIGSEGV" in "qt_get_screen". It can't jump to function "qt_screen->connect()"

qt_screen = QGfxDriverFactory::create( driverName, display_id );
if ( qt_screen ) {
foundDriver = TRUE;
if ( qt_screen->connect( spec ) ) {

** This code is for display initializtaion. It definitely works if I keeps
"# define QT_NO_QWS_IM".
** The SIGSEGV piont seems nothing with "IM"-related code. Does it cause by cross-compliation code generation ?

Any hint or advice are appreciated.

-Kevin:confused: