Search code examples
androidandroid-ndkv8

Android ndk not bundle v8 .a file symbols


I have a project which similar too J2V8 which bundle v8 to android. But after compile J2V8 has all v8 symbols but similar project lose all v8 symbols. You can check the original J2V8.so here by using command

nm -D libj2v8.so | grep "GetIsolate"

you can get something like

003530fc T _ZN2v815SnapshotCreator10GetIsolateEv
003613c4 T _ZN2v86Object10GetIsolateEv
0035f78c T _ZN2v87Context10GetIsolateEv
0038c354 W _ZNK2v88internal10HeapObject10GetIsolateEv
00503a78 T _ZNK2v88internal11MessageImpl10GetIsolateEv
00503b4c T _ZNK2v88internal16EventDetailsImpl10GetIsolateEv

But after compile sample project, the related output is none.


Solution

  • Finally resolve this by directly include the v8 source project.