Skip to main content

Fail to build MIDP, for Linux ARM Fb

2 replies [Last post]
flavio_pereira
Offline
Joined: 2008-10-17
Points: 0

Hi all.

I'm a new user of the phoneME Feature software, and have not managed to compile the MIDP for a Linux based ARM processor. I have followed the getting started guide for release MR3, and have managed to get PCSL and CLDC to compile. When trying to compile MIDP i'm getting an error that seems to be indicating that Linux FB is not supported? I have included all the details of the build below, can someone point me in the right direction

PCSL script
=================================================
export HOME=/home/java/phoneme_feature
export GNU_TOOLS_DIR=/opt/arm_tools
export OUTPUT=/home/java/phoneme-build-output

make -C $HOME/pcsl \
GNU_TOOLS_DIR=$GNU_TOOLS_DIR \
PCSL_PLATFORM=linux_arm_gcc \
PCSL_OUTPUT_DIR=$OUTPUT/pcsl \
NETWORK_MODULE=bsd/generic \
TOOLS_DIR=$HOME/tools \
TOOLS_OUTPUT_DIR= $OUTPUT/tools

I run this for PCSL_PLATFORM=linux_i386_gcc first and then linux_arm_gcc as suggested in the getting started guide, this compiles OK, and i have linux_arm and linx_i386 directories in $OUTPUT/pcsl.

CLDC script, for Linux ARM build
=================================================
export HOME=/home/java/phoneme_feature
export GNU_TOOLS_DIR=/opt/arm_tools
export OUTPUT=/home/java/phoneme-build-output
export JDK_DIR=/home/java/jdk1.6.0_10

make -C $HOME/cldc/build/linux_arm \
GNU_TOOLS_DIR=$GNU_TOOLS_DIR \
JDK_DIR=$JDK_DIR \
ENABLE_PCSL=true \
PCSL_OUTPUT_DIR =$OUTPUT/pcsl \
JVMWorkSpace=$HOME/cldc \
JVMBuildSpace=$OUTPUT/cldc \
TOOLS_DIR=$HOME/tools \
TOOLS_OUTPUT_DIR= $OUTPUT/tools

Again this compiles without errors, creating a cldc directory in the output directory. the cldc_vm file exists in the dist/bin directory so all seems well.

MIDP script
====================================================
export HOME=/home/java/phoneme_feature
export GNU_TOOLS_DIR=/opt/arm_tools
export OUTPUT=/home/java/phoneme-build-output
export JDK_DIR=/home/java/jdk1.6.0_10

make -C $HOME/midp/build/linux_fb_gcc \
GNU_TOOLS_DIR=$GNU_TOOLS_DIR \
JDK_DIR=$JDK_DIR \
PCSL_OUTPUT_DIR =$OUTPUT/pcsl \
CLDC_DIST_DIR=$OUTPUT/cldc/linux_arm/dist \
TOOLS_DIR=$HOME/tools \
TOOLS_OUTPUT_DIR= $OUTPUT/tools \
MIDP_OUTPUT_DIR =$OUTPUT/midp \
TARGET_CPU=arm

This failes with the following error, can anyone please help?

... creating directories /home/smile/java/phoneme-build-output/midp/bin/arm
... creating directories /home/smile/java/phoneme-build-output/midp/obj/arm
... building Jpp
/home/smile/java/jdk1.6.0_10/bin/javac -g -d `echo /home/smile/java/phoneme-build-output/tools` `echo /home/smile/java/phoneme_feature/tools/jpp/Jpp.java`
make[1]: Entering directory `/home/smile/java/phoneme_feature/midp/build/linux_fb_gcc'
... searching updated .java files
... /home/smile/java/phoneme-build-output/midp/tools_classes/l10nGenerator.manifest
... building l10n generator
Note: /home/smile/java/phoneme_feature/midp/build/linux_fb_gcc/../../src/tool/l10ngen/classes/com/sun/midp/l10n/generator/LocalizedStringsGenerator.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
... /home/smile/java/phoneme-build-output/midp/tools_classes/l10nGenerator.jar
... /home/smile/java/phoneme-build-output/tools/Configurator.manifest
... building CodeTransformer
Note: /home/smile/java/phoneme_feature/tools/configurator/classes/com/sun/xml/transform/CodeTransformer.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
... /home/smile/java/phoneme-build-output/tools/Configurator.jar
... merging configurations

Merging error: key 'SCREEN_TEXT_ORIENT' has no corresponding constant in
'com.sun.midp.chameleon.skins.SkinPropertiesIDs'

ERROR: 'Termination forced by an xsl:message instruction'
javax.xml.transform.TransformerException: java.lang.RuntimeException: Termination forced by an xsl:message instruction
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:717)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313)
at com.sun.xml.transform.CodeTransformerImpl.transform(CodeTransformer.java:362)
at com.sun.xml.transform.CodeTransformer.main(CodeTransformer.java:105)
Caused by: java.lang.RuntimeException: Termination forced by an xsl:message instruction
at merge.template$dot$7()
at merge.applyTemplates3()
at merge.template$dot$8()
at merge.applyTemplates3()
at merge.template$dot$8()
at merge.applyTemplates3()
at merge.template$dot$0()
at merge.applyTemplates()
at merge.transform()
at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:602)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:710)
... 3 more

Here is the build configuration

MIDP Build Configuration
========================

VAR_IMPORT_FROM =

USE_NATIVE_AMS = false
USE_NAMS_TEST_SERVICE = false
USE_RAW_AMS_IMAGES = true
USE_RESTRICTED_CRYPTO = false
USE_SSL = false
USE_BINARY_CRYPTO = false
USE_FIXED = false
USE_CLDC_11 = true
USE_MONET = false
USE_STATIC_PROPERTIES = true
USE_GCC = true
USE_I3_TEST = false
USE_IMAGE_CACHE = true
USE_ICON_CACHE = true
USE_JAVA_DEBUGGER = false
USE_JAVA_PROFILER = false
USE_MIDP_MALLOC = true
USE_MULTIPLE_ISOLATES = false
USE_DEBUG = false
USE_GCOV = false
USE_CLDC_RELEASE = false
USE_NATIVE_PROFILER = false
USE_NETWORK_INDICATOR = true
USE_NUTS_FRAMEWORK = false
USE_RMS_TREE_INDEX = false
USE_MIDP_ABB = false
USE_JSR_177 = false
USE_JSR_75 = false
USE_JSR_82 = false
USE_JSR_120 = false
USE_JSR_172 = false
USE_JSR_226 = false
USE_PISCES = false
USE_JSR_179 = false
USE_JSR_180 = false
USE_JSR_184 = false
USE_JSR_205 = false
USE_JSR_211 = false
USE_JSR_229 = false
USE_JSR_230 = false
USE_JSR_234 = false
USE_JSR_135 = false
USE_JSR_238 = false
USE_JSR_239 = false
USE_JSR_280 = false
USE_JSR_256 = false
USE_ABSTRACTIONS = false
USE_VERBOSE_MAKE = false
USE_CONTROL_ARGS_FROM_JAD = false
USE_JPEG = false
USE_GCI = false
USE_DIRECTDRAW = false
USE_FILE_SYSTEM = true
USE_NATIVE_PTI = false
USE_VERIFY_ONCE = false
USE_VM_PROFILES = false
USE_SERVER_SOCKET = true
USE_LINKS = true
USE_ON_DEVICE_DEBUG = false
USE_WTK_DEBUG = false
USE_AMS_FOLDERS = false

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
leonidr
Offline
Joined: 2006-10-27
Points: 0

Hi,
This error happens when building MR3 with JDK 1.5 or 1.6. The solution is to use JDK 1.4.2. This issue has been fixed in the latest code, so next release will support JDK > 1.4 as well.

flavio_pereira
Offline
Joined: 2008-10-17
Points: 0

Thanks leonidr!

I had tried with different JDK's the find that you are correct. For those of you facing the same problem (i'm using MR2), note that it only works for
JDK 1.4.2 (intial release)

I tried 1.4.0 and 1.5.0, 1.6.0 and 1.4.2_18, none of them work, it has to be 1.4.2(initial) my the builds i have done. Thanks again.