Skip to main content

phoneME compilation for OpenWRT

2 replies [Last post]
clec0917
Offline
Joined: 2008-09-16

Hi everyone,

after a couple of hours trying and searching, I didn't manage to start the compilation of phoneME for openwrt.

I'm following the wiki guide http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedGSGOpenWRT , so here's what I did (I use a ubuntu box) :

- I downloaded and built OpenWRT build system from SVN. It is located in /home/charles/openwrt/kamikaze/ ; it went smoothly, and built the toolchain and a firmware with a set of packages. The toolchain is located /home/charles/openwrt/kamikaze/build_dir/toolchain-mipsel_gcc3.4.6 .

- I downloaded cdc and tools components from phoneme-advanced svn. The directory /home/charles/openwrt contains :

|-- kamikaze (openwrt build system)
| |-- ...
| |-- build_dir (the toolchain)
| `-- ...
|-- packages (openwrt packages)
| `-- ...
`-- phoneme-advanced (freshly downloaded from svn)
|-- cdc
`-- tools

- I cd'd into phoneme-advanced/cdc/build/linux-mips-openwrt and placed the suggested build.sh script, modified as followed :

#!/bin/sh
make \
J2ME_CLASSLIB=foundation \
CVM_JIT=true \
CVM_OPTIMIZED=true \
CVM_PRELOAD_LIB=true \
CVM_BUILD_SUBDIR_NAME=cdc-fp \
CVM_JAVA_TOOLS_PREFIX=/opt/j2sdk1.4.2_18/bin/ \
CVM_TARGET_TOOLS_PREFIX=/home/charles/openwrt/kamikaze/staging_dir/toolchain-mipsel_gcc3.4.6/bin/mipsel-linux-uclibc-

- when I try to run the script, I get this error :

/home/charles/openwrt/phoneme-advanced/cdc/build/share/defs.mk:106: *** TOOLS_DIR must point to the shared tools directory: /home/charles/openwrt/phoneme-advanced/tools. Arrêt.

From what I saw in defs.mk, the makefile expect the file 'tools.gmk' in the tools component dir, but it wasn't downloaded from SVN. (the tools dir contains only dirs 'build', 'src', and 'test', and 'build.xml' file). I have read the wiki back and forth, I really don't see what I'm doing wrong.

Any ideas ??

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
cjplummer
Offline
Joined: 2006-10-16

You need to following:

svn co https://phoneme.dev.java.net/svn/phoneme/components/tools/trunk tools

Chris

clec0917
Offline
Joined: 2008-09-16

That was quick. And my mistake was very stupid, I downloaded the cdc trunk twice (history won't lie). Obviously it works fine now. I'll go bury myself in the sand ...

Thank you anyway !

Charles