Hi,

I'm trying to build V8 for an ARM6 board. V8 has build support for
Android, but when I use the Android toolchain to build the v8 library,
I get a "file is not of required architecture". The V8 folks suggested
I ask this question here.

The V8 folks also suggested that I try to build a simple "hello world"
library first, with the Android toolchain. Here's how I'm doing it:

$/Volumes/android/mydroid/prebuilt/darwin-x86/toolchain/arm-eabi-4.2.1/
bin/arm-eabi-gcc -o test.o -c -Wall -Wno-unused -Werror=return-type -
Wstrict-aliasing=2 -Werror -Wno-uninitialized -O3 -fomit-frame-pointer
-fdata-sections -ffunction-sections -mthumb -Os -march=armv6 -
mtune=xscale -msoft-float -fpic -mthumb-interwork -funwind-tables -
fstack-protector -fno-short-enums -fmessage-length=0 -finline-
functions -fno-inline-functions-called-once -fgcse-after-reload -
frerun-cse-after-loop -frename-registers -fomit-frame-pointer -fno-
strict-aliasing -finline-limit=64 -MD -DV8_ARCH_ARM -I/Volumes/android/
mydroid/bionic/libc/arch-arm/include -I/Volumes/android/mydroid/bionic/
libc/include -I/Volumes/android/mydroid/bionic/libstdc++/include -I/
Volumes/android/mydroid/bionic/libc/kernel/common -I/Volumes/android/
mydroid/bionic/libc/kernel/arch-arm -I/Volumes/android/mydroid/bionic/
libm/include -I/Volumes/android/mydroid/bionic/libm/include/arch/arm
test.c

$/Volumes/android/mydroid/prebuilt/darwin-x86/toolchain/arm-eabi-4.2.1/
bin/arm-eabi-ar rc tes2.a test.o

$/Volumes/android/mydroid/prebuilt/darwin-x86/toolchain/arm-eabi-4.2.1/
bin/arm-eabi-ranlib test.a

But this library still gives me a "file is not of required
architecture" when I try to use it.

Any suggestions?

Thanks!
.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to