v8 linker issues for android build on Mac

133 views
Skip to first unread message

Mindy DelliCarpini

unread,
Jan 24, 2017, 8:08:39 PM1/24/17
to v8-users



I built libv8_base, libv8_libbase,  these as full static libraries:


args.gn:

is_debug = false

target_cpu = "arm"

v8_target_cpu = "arm"

target_os="android"

v8_static_library = true


Errors:

...android-ndk-r10b/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: jni/libpng.a: no archive symbol table (run ranlib)


...android-ndk-r10b/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: jni/libv8_libbase.a: no archive symbol table (run ranlib)


...android-ndk-r10b/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: jni/libv8_libplatform.a: no archive symbol table (run ranlib)


Follow by a bunch of unsatisfied linker errors:


jni/BoomListPackagesAndroid.cpp:124: error: undefined reference to 'v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)'

jni/BoomListPackagesAndroid.cpp:125: error: undefined reference to 'v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)'

jni/BoomListPackagesAndroid.cpp:126: error: undefined reference to 'v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)'

jni/../../src/common/js/v8/BoomEngine.v8.cpp:31: error: undefined reference to 'v8::Isolate::GetCurrent()'

....


I'm building on MacOSX for Android; I would guess the linker errors are because of the no archive symbol table error at the top...

How can I fix them?





Jochen Eisinger

unread,
Jan 25, 2017, 8:04:29 AM1/25/17
to v8-users
Using gn to build for android on mac is not yet supported, sorry (and I realize that the make based version is also no longer supported...) sorry about that :/

--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups "v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mindy DelliCarpini

unread,
Jan 25, 2017, 5:22:00 PM1/25/17
to v8-u...@googlegroups.com
Thoughts on when it might be supported?

Or any prebuilts? I know you had been submitting patches in December to move this forward

To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "v8-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/v8-users/vIn1RNWosjM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to v8-users+unsubscribe@googlegroups.com.

Jochen Eisinger

unread,
Jan 26, 2017, 9:42:42 AM1/26/17
to v8-u...@googlegroups.com
it's blocked on the NDK we download not supporting Darwin, and that's a bit outside of my scope to change myself, so no idea when it'll be available

To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "v8-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/v8-users/vIn1RNWosjM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to v8-users+u...@googlegroups.com.
You received this message because you are subscribed to the Google Groups "v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+u...@googlegroups.com.

Dzung Tran

unread,
Jan 27, 2017, 2:32:31 AM1/27/17
to v8-users
How do you build one libv8.so file for Android? I am using Ubuntu. What would be the correct GN args? I can't seem to get a libv8.so. I am getting bunch of archive files.

Mindy DelliCarpini

unread,
Jan 27, 2017, 12:52:48 PM1/27/17
to v8-u...@googlegroups.com
I have copied over the Darwin support from a previous NDK

Is there something specific that might be causing the linker issues? Perhaps which -ar is used? If so, where would I fix that? 

To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "v8-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/v8-users/vIn1RNWosjM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to v8-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups "v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to a topic in the Google Groups "v8-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/v8-users/vIn1RNWosjM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to v8-users+unsubscribe@googlegroups.com.

Mindy DelliCarpini

unread,
Jan 27, 2017, 12:54:21 PM1/27/17
to v8-u...@googlegroups.com
@dzung: I changed args.gn to include:  'standalone_static_library'=true to build a .so for Android 

To unsubscribe from this group and all its topics, send an email to v8-users+unsubscribe@googlegroups.com.

Dzung Tran

unread,
Jan 28, 2017, 12:28:21 PM1/28/17
to v8-users
I used Ubuntu VM to build on the MAC and it works fine. I thought I read some where that buildng on the MAC does not work
To unsubscribe from this group and all its topics, send an email to v8-users+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages