Skip to content Skip to sidebar Skip to footer

V8 Build For Android On Mac

I try to build v8 for android on mac. My steps are below : Install depot_tools fetch v8 cd v8 git checkout branch-name (last stable version for android) echo 'target_os = ['andro

Solution 1:

The up-to-date build instructions are at https://github.com/v8/v8/wiki/Cross-compiling-for-ARM. Anything that says "make android_arm" is outdated.

However, I don't know if building for Android on Mac is supported. It definitely works on Linux (so you could try in a VM). If something doesn't work, and you want to make it work, we'd happily accept patches; see https://github.com/v8/v8/wiki/Contributing.

Solution 2:

you do not need to set ANDROID_NDK.

step 5:"target_os = ['android']" >> ../.gclient && gclient sync" will download ndk to "third_party/android_tools/ndk"

ndk_version must >= 12.b

Solution 3:

We integrated V8 to Skype for Android and open-sourced the docker build script: https://github.com/Microsoft/v8-docker-buildscript

Feel free to re-use it. It is not completely fair solution, but it is reproducible build on any OS.

V8 team supports Linux build infrastructure also it is well documented.

We succeed building it on Mac but found it too hard to maintain in working condition. At the end we had to patch the Android NDK while chrome build script checkouts working version of NDK and all other required tools.

With docker script any engineer in the team could build the engine from scratch no mater which OS he uses.

Post a Comment for "V8 Build For Android On Mac"