The Source for Java Technology Collaboration


Build Instructions

This TWiki page gives the instructions on what build flags to use to build certain variations of PhoneME Advanced (MR2-specific) software from the repository.

Configurator and JPP tools are now located in a separate component called "tools". Both tools have been removed from MIDP component.
Additionally, CDC now depends on tools From now on, the following needs to be done in order to build PhoneME Advanced:

  1. Check out "tools" component: svn checkout https://phoneme.dev.java.net/svn/phoneme/components/tools/trunk tools
  2. Define TOOLS_DIR and TOOLS_OUTPUT_DIR variables. TOOLS_DIR must point to your working copy of "tools" component.
Note: TOOLS_DIR defaults to <components_root>/tools, TOOLS_OUTPUT_DIR defaults to $TOOLS_DIR/output.

Platforms

These are the current platforms that can build the PhoneME Advanced MR2 stack.

Java Specification Request Optional Package (JSROP) Support

Currently (as of 03Jul2007) you need to use branches for the CDC JSROP support:

For the related mail thread see:


These are the current platforms that can build the PhoneME Advanced MR2 stack.

Linux/x86

TOP_DIR=`pwd`
cd cdc/build/linux-x86-generic
make \
  JDK_HOME=/usr/java/j2sdk1.4.2_13 \
  TOOLS_DIR=$TOP_DIR/tools/trunk \
  J2ME_CLASSLIB=basis  \
  USE_MIDP=true \
  MIDP_DIR=$TOP_DIR/midp/trunk \
  PCSL_DIR=$TOP_DIR/pcsl/trunk \
  USE_JUMP=true \
  JUMP_DIR=$TOP_DIR/jump/trunk \
  QT_TARGET_DIR=/opt/Qtopia \
  QTEMBEDDED=true \
  QTOPIA=false \
  $@

TENTATIVE: New build instructions???

#!/bin/bash
#
# This script assumes the following dir layout:
#  1) the script starts in the directory under whicj there are
#     following dirs: cdc, jump, midp, pcsl, tools
#
#  2) these dirs hold the corresponding components, *without* additional
#  hierachy.  E.g. one can use the following commands to checkout
#  current trunks for all components
#
#    svn checkout https://phoneme.dev.java.net/svn/phoneme/components/cdc/trunk cdc
#    svn checkout https://phoneme.dev.java.net/svn/phoneme/components/jump/trunk jump
#    svn checkout https://phoneme.dev.java.net/svn/phoneme/components/midp/trunk midp
#    svn checkout https://phoneme.dev.java.net/svn/phoneme/components/pcsl/trunk pcsl
#    svn checkout https://phoneme.dev.java.net/svn/phoneme/components/tools/trunk tools
#
# The settings one might need to tweak are located at the top of the script
#
#  Last updated on Jan, 29, 2007

## Settings to tweak

# Controls if CDC only (without JUMP) configuration is build (JUMP_BUILD=false) or CDC + JUMP configuration (JUMP_BUILD=true)
JUMP_BUILD=false

# Provide your path to JDK 1.4.2 here
export JDK_HOME=/usr

# Unittetsing related settings
# Provide your path to JUnit3.8.1 junit.jar (defaults to /usr/share/ant/lib/junit.jar---standard path for, e.g., Synaptic Manager)
export JUNIT_JAR=/local/java/junit3.8.1/junit.jar

## Stanadard settings: modify them at your own risk
TOP_DIR=`pwd`

export USE_MIDP=true
export CVM_DUAL_STACK=true
export USE_SCRIPT_UTILS=true
export USE_JUMP=$JUMP_BUILD
export J2ME_CLASSLIB=basis

export JUMP_DIR=$TOP_DIR/jump
export MIDP_DIR=$TOP_DIR/midp
export PCSL_DIR=$TOP_DIR/pcsl
export TOOLS_DIR=$TOP_DIR/tools

# Launch the build
cd cdc/build/linux-x86-generic/
make $@

Someone, please confirm if the above is correct.

Worked for me with JUMP_BUILD=true on Ubuntu
-- PetrPanteleyev - 26 Mar 2007

Linux/ARM

Linux/MIPS

Running a test (Personal Basis Profile)

#!/bin/sh export QTDIR=/opt/Qtopia
export QWS_DISPLAY=:2
export LD_LIBRARY_PATH=$QTDIR/lib

$QTDIR/bin/qvfb -depth 16-qwsdisplay :2  &

CDC_HOME=/net/ceres.sfbay/usr/re3/phoneme_advanced/binaries/b08-0701240200/linux-x86-jit-norom
$CDC_HOME/bin/cvm -cp $CDC_HOME/democlasses.jar -Dsun.boot.library.path=$CDC_HOME/lib:$QTDIR/lib basis.DemoFrame & 

-- HinkmondWong - 31 Jan 2007

Topic PhoneMEAdvancedBuildInstructions . { Edit | Ref-By | Printable | Diffs r13 < r12 < r11 < r10 < r9 | More }
 XML java.net RSS

Revision r13 - 04 Jul 2007 - 02:33:18 - Main.hinkmond
Parents: WebHome > PhoneMEAdvanced