so v8 is ready to move onto Android, right?
but why do we need another js engine?
does it mean that some chrome-like browser will be on Android?

also i thought v8 is designed for PC,

anyway, it will be cool to see v8 runs on Android

thanks

On May 7, 2:18 am, jimt <[email protected]> wrote:
> My bad. Forgot the os=android flag.
>
> Sorry.
>
> On May 6, 8:07 pm, jimt <[email protected]> wrote:
>
> > Hi,
>
> > I'm trying to get v8 built under my Android build environment on OS X.
> > I've set up the Android environment according to the Android build
> > instructions (http://source.android.com/download), and the v8 source,
> > which both reside on a dedicated HFS+ formatted drive. Looking through
> > the SConstruct file, it looks like I need to specify the following
> > environment variables to build for Anrdoid:
>
> > TOP=/Volumes/android/mydroid
> > PATH=/opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/
> > texbin
> > AR=/Volumes/android/mydroid/prebuilt/darwin-x86/toolchain/arm-
> > eabi-4.2.1/bin/arm-eabi-ar
> > CXX=/Volumes/android/mydroid/prebuilt/darwin-x86/toolchain/arm-
> > eabi-4.2.1/bin/arm-eabi-g++
> > RANLIB=/Volumes/android/mydroid/prebuilt/darwin-x86/toolchain/arm-
> > eabi-4.2.1/bin/arm-eabi-ranlib
> > CC=/Volumes/android/mydroid/prebuilt/darwin-x86/toolchain/arm-
> > eabi-4.2.1/bin/arm-eabi-gcc
>
> > Running:
>
> > scons mode=debug snapshot=off library=static importenv=TOP arch=arm
>
> > Produces the following:
>
> > scons: Reading SConscript files ...
> > scons: done reading SConscript files.
> > scons: Building targets ...
> > /Volumes/android/mydroid/prebuilt/darwin-x86/toolchain/arm-eabi-4.2.1/
> > bin/arm-eabi-gcc -o obj/debug/dtoa-config.o -c -Werror -Wno-
> > uninitialized -g -O0 -ansi -DV8_ARCH_ARM -DILP32 -DENABLE_DISASSEMBLER
> > -DDEBUG -DENABLE_LOGGING_AND_PROFILING -Isrc src/dtoa-config.c
> > src/dtoa-config.c:42:20: error: endian.h: No such file or directory
> > src/dtoa-config.c:44:18: error: math.h: No such file or directory
> > In file included from src/dtoa-config.c:84:
> > src/third_party/dtoa/dtoa.c:174:19: error: stdio.h: No such file or
> > directory
> > src/third_party/dtoa/dtoa.c:178:20: error: stdlib.h: No such file or
> > directory
> > src/third_party/dtoa/dtoa.c:179:20: error: string.h: No such file or
> > directory
> > src/third_party/dtoa/dtoa.c:212:19: error: errno.h: No such file or
> > directory
> > cc1: warnings being treated as errors
> > In file included from src/dtoa-config.c:84:
> > src/third_party/dtoa/dtoa.c: In function 'Balloc':
> > src/third_party/dtoa/dtoa.c:519: warning: incompatible implicit
> > declaration of built-in function 'malloc'
> > src/third_party/dtoa/dtoa.c: In function 'multadd':
> > src/third_party/dtoa/dtoa.c:595: warning: incompatible implicit
> > declaration of built-in function 'memcpy'
> > src/third_party/dtoa/dtoa.c: In function 'cmp':
> > src/third_party/dtoa/dtoa.c:985: warning: incompatible implicit
> > declaration of built-in function 'fprintf'
> > src/third_party/dtoa/dtoa.c:985: error: 'stderr' undeclared (first use
> > in this function)
> > src/third_party/dtoa/dtoa.c:985: error: (Each undeclared identifier is
> > reported only once
> > src/third_party/dtoa/dtoa.c:985: error: for each function it appears
> > in.)
> > src/third_party/dtoa/dtoa.c:985: warning: incompatible implicit
> > declaration of built-in function 'exit'
> > src/third_party/dtoa/dtoa.c:987: warning: incompatible implicit
> > declaration of built-in function 'fprintf'
> > src/third_party/dtoa/dtoa.c:987: warning: incompatible implicit
> > declaration of built-in function 'exit'
> > src/third_party/dtoa/dtoa.c: In function 'b2d':
> > src/third_party/dtoa/dtoa.c:1162: warning: incompatible implicit
> > declaration of built-in function 'fprintf'
> > src/third_party/dtoa/dtoa.c:1162: error: 'stderr' undeclared (first
> > use in this function)
> > src/third_party/dtoa/dtoa.c:1162: warning: incompatible implicit
> > declaration of built-in function 'exit'
> > src/third_party/dtoa/dtoa.c: In function 'gay_strtod':
> > src/third_party/dtoa/dtoa.c:1829: error: 'errno' undeclared (first use
> > in this function)
> > src/third_party/dtoa/dtoa.c:1829: error: 'ERANGE' undeclared (first
> > use in this function)
> > src/third_party/dtoa/dtoa.c:1947: warning: incompatible implicit
> > declaration of built-in function 'memcpy'
> > src/third_party/dtoa/dtoa.c: In function 'quorem':
> > src/third_party/dtoa/dtoa.c:2433: warning: incompatible implicit
> > declaration of built-in function 'fprintf'
> > src/third_party/dtoa/dtoa.c:2433: error: 'stderr' undeclared (first
> > use in this function)
> > src/third_party/dtoa/dtoa.c:2433: warning: incompatible implicit
> > declaration of built-in function 'exit'
> > src/third_party/dtoa/dtoa.c:2444: warning: incompatible implicit
> > declaration of built-in function 'fprintf'
> > src/third_party/dtoa/dtoa.c:2444: warning: incompatible implicit
> > declaration of built-in function 'exit'
> > src/third_party/dtoa/dtoa.c: In function 'dtoa':
> > src/third_party/dtoa/dtoa.c:3169: warning: incompatible implicit
> > declaration of built-in function 'memcpy'
> > scons: *** [obj/debug/dtoa-config.o] Error 1
> > scons: building terminated because of errors.
>
> > Can anyone see where I'm going wrong?
>
> > Thanks.
>
>
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to