$ export VARIABLE=value
For example, to set MIDP_DIR
as a system variable, type:
$ export MIDP_DIR=
InstallDir/jwc/midp
Note: InstallDir is the location of your phoneME Feature software.
To set a build environment variable using the make
command line
for a Linux platform, use the following format:
$ make VARIABLE=value make_target
For example, to set MIDP_DIR
on a make
command line,
type:
$ make MIDP_DIR=
InstallDir/jwc/midp all
Setting Variables for a Windows Platform
Note: This document assumes the use of Cyg4Me on the Windows platform.
To set a build environment variable as a system variable for a Windows platform,
use the following format:
$ set VARIABLE=value
For example, to set the MIDP_DIR as a system
variable, type:
$ set MIDP_DIR=InstallDir/jwc/midp
To set a build environment variable on the make
command line for a Windows platform, use the following format:
$ make VARIABLE=value make_target
For example, to set MIDP_DIR on a
make command line, type:
$ make MIDP_DIR=InstallDir/jwc/midp all
Setting Up the Linux Build Environment
To set up the Linux/i386 build environment, you must do the following things:
- Acquire Monta Vista Developer Tools
- Set Linux platform environment variables
Acquiring Monta Vista Developer Tools
To build phoneME Feature software for the Linux/ARM (P2 board) target platform,
you must acquire the
MontaVista CEE 3.1
ADK developer tools.
Instructions for use of these tools are provided by MontaVista.
Setting Environment Variables
To properly set up the Linux/i386 build environment, you must set the environment
variables shown in TABLE 2-1.
TABLE 2-1 Linux Platform Environment Variables
Name
|
Description
|
JDK_DIR
|
Directory that contains the JDK
release.
For example,
/usr/java/j2sdk1.4.2.
|
MIDP_DIR
|
Top-level MIDP directory, usually
InstallDir/jwc/midp.
|
MIDP_OUTPUT_DIR
|
Location where output from phoneME Feature build is stored.
|
LD_LIBRARY_PATH
|
Directory that contains the libraries needed by the build
and run the phoneME Feature software.
|
GNU_TOOLS_DIR
|
Build tools for the Linux/i386 platform, used to generate
executables for the Linux/ARM target platform.
|
Setting Up the Windows Build Environment
To set up your Windows platform, you must take the following steps:
- Install Cyg4Me
- Set environment variable
- Update your PATH environment variable
Installing Cyg4Me
Before you build phoneME Feature on a Windows platform, download and install Cyg4Me,
version 1.1. Cyg4Me is a standardized version of Cygwin for building Java ME platform
products on Windows. It provides the necessary UNIX® system tools, such as
sh and gnumake.
- Download the Cyg4Me zip file
cyg4me1_1_full.zip
.
This file contains all the executables and libraries needed to build on the Windows
platform.
- Unpack the file into a directory.
For example, you could unpack the file into
C:\cyg4me.
- Ensure that the Cyg4Me bin directory is the
only version of Cygwin on your path.
See Updating Your PATH Environment Variable for instructions.
Setting Environment Variables
To build the phoneME Feature software on a Windows platform, you must set the
environment variables shown in TABLE 2-2.
TABLE 2-2 Windows Platform
Environment Variables
Name
|
Description
|
JDK_DIR
|
Directory that contains the JDK
release.
For example,
C:/java/j2sdk1.4.2.
|
MIDP_DIR
|
Top-level MIDP directory, usually
InstallDir/jwc/midp.
|
MIDP_OUTPUT_DIR
|
Location where output from phoneME
Feature build is stored.
|
Updating Your PATH Environment Variable
If you are using a Windows system, you must put Cyg4Me on your
PATH environment variable.
- Make the bin directory of your Cyg4Me
installation the first element of your PATH
variable's value.
For example, you could set your PATH in the
command window where you build the Java ME platform products with this command:
$ set PATH=C:\cyg4me\bin;%PATH%
- Remove all PATH elements that point to
other versions of Cygwin.
This is necessary because Cyg4Me contains binaries from a specific snapshot of Cygwin.
It might not be compatible with other versions of Cygwin installed on the same PC.
If you performed Step 1 in a command window, perform this step in the same window.
first-prev |
next | last