Hi everyone,
I'm trying to compile V8 as a shared library for all platforms. The compilation seems to be successful, however, when I try to link it in my project I have problems with the Android versions.
error: undefined reference to 'v8::platform::NewDefaultPlatform(int, v8::platform::IdleTaskSupport, v8::platform::InProcessStackDumping, std::__ndk1::unique_ptr<v8::TracingController, std::__ndk1::default_delete<v8::TracingController> >)'
when I try to build my library for Android.
Here's how I compile the linux version:
python ./tools/dev/v8gen.py x64.release -vv -- '
target_os = "linux"
is_component_build = true
v8_enable_i18n_support = false
symbol_level = 1
'
ninja -C out.gn/x64.release -t clean
ninja -C out.gn/x64.release v8
- libc++.so
- libchrome_zlib.so
- libv8.so
- libv8_libbase.so
- libv8_libplatform.so
Here's how I compile the Android versions (arm64 in this example):
python ./tools/dev/v8gen.py arm64.release -vv -- '
target_os = "android"
target_cpu = "arm64"
v8_target_cpu = "arm64"
is_component_build = true
v8_enable_i18n_support = false
symbol_level = 1
'
ninja -C out.gn/arm64.release -t clean
ninja -C out.gn/arm64.release v8
So now I'm not sure which are the right binaries to use.
Am I using the wrong settings? If not, why is the
out.gn folder structure different for Android builds? and which binaries should I take?
Thanks a lot in advance.
PS: I'm using V8 8.3.110.9