All pastes #385589 Raw Edit

Something

public text v1 · immutable
·published 2007-03-07 22:46 UTC
rendered paste body
get src from http://download.java.net/mobileembedded/phoneme/advanced/phoneme_advanced-mr1-rel-src-b06-10_nov_2006.zip

switch to build/linux-arm-stringarm

edit GNUMakefile and set compile options to the tune from your oe machine/include/tune.conf

edit ../share/defs_qt.mk from that dir and add 
PROFILE_INCLUDES += \
        -I$(QT_TARGET_INCLUDE_DIR) \
        -I$(QT_TARGET_INCLUDE_DIR)/qt \
        -I /devel/arm/oetmp/staging/arm-angstrom-linux/include (use your own path to oetmp)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
because the compiler didnt get it right, dont know why

if you have qt-mt

edit this too in the same file
ifeq ($(QTEMBEDDED), true)
#QT_NEED_THREAD_SUPPORT  ?= false
QT_VERSION              ?= 2
else
QT_NEED_THREAD_SUPPORT  ?= true
QT_VERSION              ?= 3
endif 
    
# Can't include thread support when embedded
#ifeq ($(QT_NEED_THREAD_SUPPORT), true)
#ifeq ($(QTEMBEDDED), true)
#$(error Cannot specify QT_NEED_THREAD_SUPPORT=true and QTEMBEDDED=true.)
#endif
#endif  

# Can't have qtopia without being embedded
ifeq ($(QTOPIA), true)
ifeq ($(QTEMBEDDED), false) 
$(error Cannot specify QTOPIA=true and QTEMBEDDED=false.)
endif   
endif

later in the file
# Specify the appropriate QTLIB
ifeq ($(QTEMBEDDED), true)
QTLIB           ?= qte-mt
CVM_DEFINES     += -DQWS
else


after that run (change paths for your need)

PATH=/devel/arm/oetmp/cross/bin:$PATH MOC=/devel/arm/oetmp/staging/i686-linux/bin/moc CVM_TARGET_TOOLS_PREFIX=arm-angstrom-linux- JDK_HOME=/usr/lib/j2sdk1.4-sun/ J2ME_CLASSLIB=personal QT_TARGET_DIR=/devel/arm/oetmp/staging/arm-angstrom-linux/qt2 QTEMBEDDED="true" QT_NEED_THREAD_SUPPORT="true" QTOPIA="false" QT_STATIC_LINK="false" make

and
PATH=/devel/arm/oetmp/cross/bin:$PATH MOC=/devel/arm/oetmp/staging/i686-linux/bin/moc CVM_TARGET_TOOLS_PREFIX=arm-angstrom-linux- JDK_HOME=/usr/lib/j2sdk1.4-sun/ J2ME_CLASSLIB=personal QT_TARGET_DIR=/devel/arm/oetmp/staging/arm-angstrom-linux/qt2 QTEMBEDDED="true" QT_NEED_THREAD_SUPPORT="true" QTOPIA="false" QT_STATIC_LINK="false" make bin


after that copy ../../install/bla.tar.gz to your device

unpack it

and run

bin/cvm -cp testclasses.zip
bin/cvm -cp democlasses.jar personal.DemoFrame