midp build failure.... TOOLS_DIR
I''ve just downloaded the current MR2 package and I'm trying to build, but I'm running into a problem I'm unsure of how to fix. PCSL and CLDC both compile, but MIDP fails with the following error:
make: Entering directory `/opt/verdex-buildroot/phoneme_feature/midp/build/linux_fb_gcc'
ERROR: TOOLS_DIR must be set
make: *** [TOOLS_DIR] Error 255
I've definitely got TOOLS_DIR set, so I'm not sure why this is happening.
I've created a top level makefile to set up my environment and perform the build. My host is Linux/i386 and my target is Linux/ARM.
Any suggestions to get past this?
# This makefile is intended to be built from the top level directory, to allow
# MEHOME to be set to that current directory
MEHOME = $(shell pwd)
# Where is the ARM cross compiler?
GNU_TOOLS_DIR = $(MEHOME)/../build_arm_nofpu/staging_dir/arm-linux
# Where is the JDK instaled on our build system?
JDK_DIR = /usr/java/j2sdk1.4.2_08
# The location where executables and other build output for phoneME Feature
# components are written.
BUILD_OUTPUT_DIR = $(MEHOME)/build_output
# PCSL related variables
PCSL_PLATFORM = linux_arm_gcc
PCSL_OUTPUT_DIR = $(BUILD_OUTPUT_DIR)/pcsl
NETWORK_MODULE = bsd/generic
# CLDC related variables
JVMWorkSpace = $(MEHOME)/cldc
ENABLE_PCSL = true
ENABLE_ISOLATES = true
# MIDP related variables
TARGET_CPU = arm
USE_MULTIPLE_ISOLATES = true
# add compiler and JDK locations to our PATH
PATH += $(JDK_DIR)/bin:$(GNU_TOOLS_DIR)/bin
echo TOOLS_DIR = $(TOOLS_DIR)
make -C $(MEHOME)/pcsl
make -C $(JVMWorkSpace)/build/linux_arm
make -C $(MEHOME)/midp/build/linux_fb_gcc