Hi all,
I have built the android platform (including the framework). My ubuntu is 64bit. And the JDK is also 64bit.
java version "1.7.0_91"
OpenJDK Runtime Environment (IcedTea 2.6.3) (7u91-2.6.3-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.91-b01, mixed mode)
I
did not modify any of the android platform configuration files.
However, after building the platform, the native libraries (the shared
libraries) are ELF 32-bit LSB. For example, libartd.so under the folder of out/target/product/generic/obj/SHARED_LIBRARIES/libartd_intermediates/LINKED/, and libfilterfw.so
under the folder of
out/target/product/generic/obj/SHARED_LIBRARIES/libfilterfw_intermediates/LINKED/.
Basically, I need 64bit native libraries for researches, and 32bit
libraries cannot work.
The following are some outputs.
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.0
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-74-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LRX21T
OUT_DIR=out
I checked the libartd.so, and got the following results:
$ file libartd.so
libartd.so: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), not stripped
My
ubuntu is 64bit, and the JDK is also 64bit. I think it is possible to
build 64bit native libraries. However I do not know how to achieve it.
Could anyone tell me how to set the configuration file (e.g.,
Android.mk) to build 64 bit native libraries?
Thanks a lot!
Best,
sandai