Skip to main content

Building, in MR2, CDC foundation with JSR172 but without QT

3 replies [Last post]
recalcati
Offline
Joined: 2007-06-27

First I succeded in the following compilation:
make CVM_JIT=false CVM_TARGET_TOOLS_PREFIX=/opt/snapgear-toolchain/bin/arm-linux- J2ME_CLASSLIB=foundation JDK_HOME=/usr/lib/j2se/1.4 CVM_FORCE_HARD_FLOAT=true CVM_PRELOAD_LIB=true

I pass the testt on pxa255 and I ran some applications.

Then I'm trying to add Web Services:
make CVM_JIT=false CVM_TARGET_TOOLS_PREFIX=/opt/snapgear-toolchain/bin/arm-linux- J2ME_CLASSLIB=foundation JDK_HOME=/usr/lib/j2se/1.4 CVM_FORCE_HARD_FLOAT=true CVM_PRELOAD_LIB=true USE_JUMP=true USE_JSR_172=true QT_TARGET_DIR=/home/recalcati/CVS/qt-opt/qt-embedded-free-3.3.4

..
c++ ../../src/share/basis/native/awt/qt/QtBackEnd.cpp
..

../../src/share/basis/native/awt/qt/QtBackEnd.cpp:727:22: X11/Xlib.h: No such file or directory
../../src/share/basis/native/awt/qt/QtBackEnd.cpp: In function `QRgb*
defaultColorTable(int*)':
../../src/share/basis/native/awt/qt/QtBackEnd.cpp:750: error: `Colormap'
undeclared (first use this function)
...

I now that 3.3.4 is wrong, but I really don't need QT.
Any idea to include jsr172 (that needs jump) and not qt?

Thanks for any help.
Raffaele Recalcati

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
cjplummer
Offline
Joined: 2006-10-16

JUMP requires basis, so the makefiles are silently overriding J2ME_CLASSLIB=foundation with J2ME_CLASSLIB=basis. I'll add a $(warning...) in the makefiles so this is more obvious in the future. However, I don't believe there is away around the JUMP requirement for basis.

If you want basis to build, then the problem below is that by default the makefiles assume the X11 version of basis/QT, and it looks like you are building with qt-embedded. To fix this, add QTEMBEDDED=true QTOPIA=false.

Chris

recalcati
Offline
Joined: 2007-06-27

OK, I tried to avoid the inclusion if basis when jump is selected, but it doesn't work (due to javax.microedition.xlet).
Then I undo changes in top.mk and I successfully compile the basis:
make CVM_JIT=false CVM_TARGET_TOOLS_PREFIX=/opt/snapgear-toolchain/bin/arm-linux- J2ME_CLASSLIB=foundation JDK_HOME=/usr/lib/j2se/1.4 CVM_FORCE_HARD_FLOAT=true USE_RMI=true CVM_INCLUDE_JUMP=true QT_TARGET_DIR=/home/recalcati/CVS/qt-opt/qt-embedded-free-3.3.4 QT_VERSION=3 QTEMBEDDED=true QTOPIA=false
I add only USE_JSR_172=true, but the compilations breaks:
[echo] WARNING: GCI classes are not available, windowing module will not work! ....
/home/recalcati/CVS/phonemezaurus/abstractions/src/share/include/jsrop_kni.h:30:27: javacall_defs.h: No such file or directory
yesterday I tried to add javacall, but it seems to be only for w32 on x86. Any idea?

Raffaele

cjplummer
Offline
Joined: 2006-10-16