Building on 64bit amd ubuntu 9.10 karmic koala needs java 64bit

40 views
Skip to first unread message

Piotr Krukowiecki

unread,
Mar 10, 2010, 12:22:38 PM3/10/10
to android-porting
Hi,

just wanted to suggest updating instructions on http://source.android.com/download.

I seems that on my system (64bit amd ubuntu) I need 64 bit java. When
building with 32bit java I got following error:

Could not load 'clearsilver-jni'
java.library.path = out/host/linux-x86/lib
make: *** [out/target/common/docs/api-stubs-timestamp] Error 45

This seems to be caused by the mismatch of the library (64bit) and
java (32bit):

$ file ./out/host/linux-x86/lib/libclearsilver-jni.so
./out/host/linux-x86/lib/libclearsilver-jni.so: ELF 64-bit LSB shared
object, x86-64, version 1 (SYSV), dynamically linked, not stripped

$ java -version
java version "1.5.0_22"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)
Java HotSpot(TM) Server VM (build 1.5.0_22-b03, mixed mode)


After installing jdk-1_5_0_21-linux-amd64.bin the error disappeared.

$ java -version
java version "1.5.0_21"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_21-b01)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_21-b01, mixed mode)

$ uname -a
Linux foobar 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC
2010 x86_64 GNU/Linux

Reply all
Reply to author
Forward
0 new messages