Skip to main content

midp build failure.... TOOLS_DIR

1 reply [Last post]
mah
Offline
Joined: 2007-06-19

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[1]: Entering directory `/opt/verdex-buildroot/phoneme_feature/midp/build/linux_fb_gcc'
ERROR: TOOLS_DIR must be set
make[1]: *** [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?

Thanks...
mah

# 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
# https://phoneme.dev.java.net/content/mr2/pcsl_feature.html
PCSL_PLATFORM = linux_arm_gcc
PCSL_OUTPUT_DIR = $(BUILD_OUTPUT_DIR)/pcsl
NETWORK_MODULE = bsd/generic

# CLDC related variables
JVMWorkSpace = $(MEHOME)/cldc
JVMBuildSpace=$(BUILD_OUTPUT_DIR)/cldc
ENABLE_PCSL = true
ENABLE_ISOLATES = true

# MIDP related variables
MIDP_OUTPUT_DIR=$(BUILD_OUTPUT_DIR)/midp
TOOLS_DIR=$(MEHOME)/tools
TARGET_CPU = arm
USE_MULTIPLE_ISOLATES = true

# add compiler and JDK locations to our PATH
PATH += $(JDK_DIR)/bin:$(GNU_TOOLS_DIR)/bin

all:
echo TOOLS_DIR = $(TOOLS_DIR)
make -C $(MEHOME)/pcsl
make -C $(JVMWorkSpace)/build/linux_arm
make -C $(MEHOME)/midp/build/linux_fb_gcc

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kaam
Offline
Joined: 2007-03-27

I'm not sure but maybe TOOLS_DIR needs to be exported:

export TOOLS_DIR=$(MEHOME)/tools