Build for Android static library success,But link fail~

158 views
Skip to first unread message

guodong chen

unread,
May 24, 2019, 6:46:37 AM5/24/19
to v8-users
I use ninja build V8 (Version. 7.6.99) for Android.

Use below ninja config:



在此输入代码

is_debug = false
is_clang=false
use_custom_libcxx_for_host=false 
is_debug = false
target_cpu = "arm"
target_os="android"
v8_target_cpu = "arm"

libcxx_abi_unstable=false

fatal_linker_warnings=false
icu_use_data_file=false
libcxx_abi_unstable=false

symbol_level=0
use_dbus=false
use_ghash=false
use_gio=false
use_icf=false
v8_enable_embedded_builtins=false
v8_enable_handle_zapping=false
v8_enable_i18n_support=false
v8_optimized_debug=false
v8_use_external_startup_data=false
v8_static_library=true

is_clang=false 
use_sysroot=false 
is_debug=false 
v8_use_snapshot=true 
v8_use_external_startup_data=false 
treat_warnings_as_errors=false 
v8_static_library=true 
v8_monolithic=true 
use_drfuzz=false 
use_libfuzzer=false 
v8_enable_test_features="" 
v8_experimental_extra_library_files=[] 
v8_extra_library_files=[] 
use_glib = false 
use_custom_libcxx=false 
use_custom_libcxx_for_host=false 
v8_enable_i18n_support=false...

But when I link the static library , I get  “ undefined reference“ error. 
 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> >)'

I find that, Because ninja build v8 use "std::__1" namespace. But Android Ndk build only support "std::__ndk1" namespace stl.

So how can I config my ninja to link against Android support stl lib?



Jian Guo

unread,
May 25, 2019, 11:39:27 AM5/25/19
to v8-users

Himanshu Bansla

unread,
Sep 3, 2020, 2:29:52 AM9/3/20
to v8-users
Hi,
I am also stuck with same issue. Do you have any solution for this ?.

Thanks.

Reply all
Reply to author
Forward
0 new messages