Phoneme advanced CDC quick build Guide
1. Create the phoneme advanced directory
Mkdir Phoneme
CD Phoneme
2. Download phoneme_advanced-mr2-dev-src-b97-20_nov_2008
Or from the source code library checkout:
% SVN checkout https://phoneme.dev.java.net/svn/phoneme/components/cdc/trunk CDC
% SVN checkout https://phoneme.dev.java.net/svn/phoneme/components/tools/trunk tools
To Checkout the source code library, you need a java.net account:
Authentication realm: collabnet SCM Repository
Username: Duke
Password for 'duke ':
Update from source code library:
% Cd Phoneme-advanced/CDC
% SVN update
3. Go to the build directory for the target device.
Cd cdc/build/Linux-arm-generic
4. Find the location of various build tools
A. Target creation tool (C compiler, connector, etc)
Cvm_target_tools_prefix = mipsel-Linux-
B. (optional) Java creation tool
Jdk_home =/tools/JDK
Note: this parameter is not required if PATH environment variables are included.
5. Read the gnumakefile file to check whether some flags need to be modified.
For LINUX-arm-generic, use_aapcs is the flag most likely to be modified. Some compiler flags need to be modified, or asm_arch_flags must be added. Generally, the default compiler settings are correct.
6. Create the CDC Java Runtime Environment for the target system
% Make cvm_target_tools_prefix = mipsel-Linux-jdk_home =/tools/JDK j2me_classlib = Foundation
After the build is complete, the build directory contains:
· Bin
· Lib
· Testclass.zip
To create the file generated above to the specified directory, use cvm_build_subdir_name
Cvm_build_subdir_name = Output
The generated directory is named output.
Other creation options, such as cvm_debug and cvm_jit, are described later.
7. Move the generated directory to the target device
Zip-r cdc.zip bin lib testclasses.zip
SFTP target-Device
8. Run the CDC Java Runtime Environment on the target device:
Unzip cdc.zip
Bin/CVM-CP testclasses.zip Test