Building a phoneME Feature Software Reference Port (MR1)The phoneME Feature software is an Open Source version of Sun Microsystems' commercial implementation, the Sun Java Wireless Client software, version 1.1.3. The phoneME Feature software is built on top of CLDC, an Open Source version of Sun Microsystems' Connected Limited Device Configuration, HotSpot Implementation, version 1.1.3. This document has instructions for building a default configuration of the phoneME Feature software. It has the following sections:
For proper building and performance, your system must meet the requirements provided in Build Environment
For more information on items in this chapter or other phoneME Feature software
build topics, see the
Sun Java Wireless Client Build Guide.
Using the
|
Creates the executables, classes, and tools for a version of the phoneME Feature software. |
|
docs_html |
For more information on phoneME Feature build targets, see the
Sun Java Wireless Client Build Guide.
The default build configuration for your target platform is named using a combination of operating system (Linux or Win32), platform (ARM or i386), and one or more build options. Setting (or not setting) specific build options determines the configuration of the build.
For example, for the Linux/ARM target platform (P2 board), the default build configuration uses Frame Buffer graphics (fb), with Adaptive User Interface Technology (chameleon), and multitasking (mvm). Therefore, the default build configuration is named linux_arm_fb_chameleon_mvm.
On the Win32/i386 platform, the default build configuration is win32_i386.
For more information about build options in the phoneME Feature software default build configuration, see Default Bulld Configuration Options.
Building a Complete Audio Implementation
In order to build a complete implementation of JSR 135, the following files need to be modified.
On a Win32/i386 platform:
On a Linux/ARM platform:
These files contain stubbed implementations of all native methods for the following classes.
On a Win32/i386 platform:
On Win32/i386 and Linux/ARM platforms:
Sun Microsystems' compliant Mobile Media API (JSR 135) implementation utilizes audio libraries licensed from QSound Labs, Inc. (www.qsound.com).
Note: Other libraries are possible. If you choose other audio libraries, you will need to modify the listed files for those libraries.
By following the procedures provided in this section, you can build a default phoneME Feature software reference port that contains the libraries, tools, tests, and documentation bundles for your target platform.
Note: This procedure assumes the use of the Bash shell on the Linux platform.
$ cd InstallDir/midp/build/linux_fb_gcc
Note: InstallDir represents the location of your phoneME Feature software.
For more information on environment variables, see Build Envrionment and Building a PCSL Reference Port.
For more information on building PCSL, see Building a PCSL Reference Port.
For more information on building CLDC, see Building a CLDC Reference Port.
$ make VAR_IMPORT_FROM=Default.gmk all
This builds the full phoneME Feature software.
Note: To build Javadoc documentation at the same time you build the phoneME Feature software default build configuration, enter the following command in Step 5:
$ make VAR_IMPORT_FROM=Default.gmk docs_html all
Building for a Windows Platform
Note: This document assumes the use of Cyg4Me on the Windows platform.
$ cd InstallDir/midp/build/win32
Note: InstallDir represents the location of your phoneME Feature software.
For more information on environment variables, see Build Environment and Building a PCSL Reference Port.
For more information on building PCSL, see Building a PCSL Reference Port.
For more information on building CLDC, see Building a CLDC Reference Port.
For example, if you installed the phoneME Feature software in C:\jwc1.1.3, use the following command:
mount C:\jwc1.1.3\midp /jwc1.1.3/midp
$ make VAR_IMPORT_FROM=Default.gmk all
This builds the full phoneME Feature software bundle, including the example executables.
Note: To build Javadoc documentation at the same time you build the phoneME Feature software default build configuration, enter the following command in Step 6:
$ make VAR_IMPORT_FROM=Default.gmk docs_html all
You can create HTML documents from phoneME Feature software from porting interfaces. To do this for the phoneME Feature software, use the make docs_html build target.
Generating Javadoc Tool Documentation
Building Javadoc tool documentation is the same for both Linux and Windows platforms.
$ cd InstallDir/midp/build/platform
$ make docs_html
The generated HTML documents are put in the following directory:
$PHONEME_OUTPUT_DIR/doc/javadoc/html
Use any browser to display the Javadoc output file at the following URL:
file:///$PHONEME_OUTPUT_DIR/doc/javadoc/html/index.html
Once you build the phoneME Feature software for your target platform, it provides an environment in which MIDlet suites can be installed, listed, run, and uninstalled.
For end users, the Over the Air (OTA) installer is used to install a MIDlet suite by clicking on the graphical link to a Java Application Descriptor (JAD) or Java Archive (JAR) file. For developers, a shell script is provided, called installMidlet that runs the OTA Installer from the command line. The installMidlet script is located in the directory $MIDP_OUTPUT_DIR/bin/cpu.
For example, on a Linux/ARM platform, change to the following directory:
$ cd $MIDP_OUTPUT_DIR/bin/arm
$ installMidlet url
The argument url indicates the URL of a JAD or a JAR file. The MIDlet suite is installed from this URL.
Note: The OTA installer used by the phoneME Feature software uses only the HTTP and HTTPS protocols to install MIDlet suites.
The runMidlet application is built by default when you run the make all command to build the phoneME Feature software. The runMidlet script is located in the directory $MIDP_OUTPUT_DIR/bin/cpu.
Several arguments can be used with the runMidlet command, but this guide describes only two. For a complete list of arguments for runMidlet, see the Sun Java Wireless Client Build Guide.
For example, on a Linux/ARM platform, change to the following directory:
$ cd $MIDP_OUTPUT_DIR/bin/arm
$ runMidlet suiteNumber | suiteID
The runMidlet command takes the argument suiteNumber | suiteID, which is the number or storage identifier given to the MIDlet suite when it was installed.
Removing an Installed MIDlet Suite
To remove one or all MIDlet suites installed in your phoneME Feature software environment, use the removeMidlet command. The removeMidlet script is located in the directory $MIDP_OUTPUT_DIR/bin/cpu.
For example, on a Linux/ARM platform, change to the following directory:
$ cd $MIDP_OUTPUT_DIR/bin/arm
$ removeMidlet ( suiteNumber | suiteID | all )
The removeMidlet command takes the argument suiteNumber |
suiteID, which is the number or storage identifier given to the MIDlet suite
when it was installed.
The argument all requests that all MIDlet suites be removed.