Skip to main content

Issue while building phoneme in scratchbox

3 replies [Last post]
tusharj9
Offline
Joined: 2005-09-22

Hi,
I was trying to build phoneME inside scratchbox (1.07) on ubuntu (linux). As phoneme requires j2sdk 1.4 for build, I placed j2sdk installation inside /host_usr, and created soft link to java & javac inside /host_usr/bin . But when build try to access java binary , I get following error message.

Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment

If I place j2sdk installation under user home directory (~) , and set this path to JDK_DIR, then it works properly for i386 build. But when I try to compile for ARM , it wont work giving error as corrupt binary (because I have only i368 binary of J2SDK).

What could be solution for this? My main intension is to be able to use J2SDK for all targets (i386/ARM/etc).

I tried setting various paths such as JAVA_HOME/LD_LIBRARY_PATH but of no use.

Regards,
Tushar

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
danila
Offline
Joined: 2006-09-25

Hi Tuchar,

for phoneME Feature we officially support only two host platforms: linux/i386 and win32/i386.

To build and use the phoneME Feature software, you only need to run Java SDK
on your host platform.

Java SDK is used to compile Java part of phoneME Feature software during build.
And, it is used to compile your Java applications for phoneME.
In both cases you run Java SDK on you host machine.

I'm not sure I understand correctly the problems you have, please explain in more
details.

Thanks,
Danila

tusharj9
Offline
Joined: 2005-09-22

Hi Danila,
Thanks for your reply. Let me try explain my issue further.
First of all, let me clarify that I'm able to compile phoneME Feature on host machine (Ubuntu ) for linux i386 as well as for linux ARM.

My issue is basically with usage of J2SDK inside Scratchbox. As you might be aware using scratchbox one can cross compile for different target platforms such i386/ARM. if I have to compile phoneme inside ARM target, either I'll be needing J2SDK compiled for ARM or i should place J2SDK inside scratchbox's host_usr directory. The binaries placed in this directory can be for all scratchbox targets (i386/arm/etc...). As per my knowledge J2SDK is available for i386 only. So my other option is to place j2sdk inside host_usr directory of scratchbox. But when I do that I get the error as mentioned earlier also
[i] Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment[/i]

I hope this explains my issue a bit better.

Regards,
Tushar

danila
Offline
Joined: 2006-09-25

Hi Tushar,

if my understanding is correct, the issue of J2SDK not running inside scratchbox toolkit
is not specific to phoneME Feature.

In this case, Scratchbox or J2SDK forums might be useful:
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users
http://forum.java.sun.com/forum.jspa?forumID=14
http://forums.java.net/jive/category.jspa?categoryID=33

Danila