Skip to main content

phoneME compilation for OpenWRT

2 replies [Last post]
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 , 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 script, modified as followed :

make \
J2ME_CLASSLIB=foundation \
CVM_JIT=true \
CVM_JAVA_TOOLS_PREFIX=/opt/j2sdk1.4.2_18/bin/ \

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

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

From what I saw in, 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.
Joined: 2006-10-16

You need to following:

svn co tools


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 !