V8 for Android: STL Headers not found

24 views
Skip to first unread message

sda...@unworld.io

unread,
Nov 12, 2016, 5:38:00 AM11/12/16
to v8-users

Hi

Trying to compile V8 for Android on my Mac. I can build the ia32 and x64 build with no issues so my setup seems OK. However when I try to build the Android release I get compile errors. Headers like <memory> are not found. But they are there in the third_party/NDK STL include directories and should have been found. I used V=1 to look at the exact command line and noticed some funny looking include paths :

-isystem/Users/dsanjit/V8Build/android-ndk-r13b//sources/cxx-stl//llvm-libc++/libcxx/include 
-isystem/Users/dsanjit/V8Build/android-ndk-r13b//sources/cxx-stl//llvm-libc++abi/libcxxabi/include 
-isystem/Users/dsanjit/V8Build/android-ndk-r13b//sources/android/support/include 



Should'nt it be "/Users/....." instead of "system/Users/....." ? 

Any suggestions ?

Thx
Sanjit

sda...@unworld.io

unread,
Nov 12, 2016, 8:22:04 AM11/12/16
to v8-users

OK stupid me, being a Windows nut I need to read up on Unix stuff. -isystem is a switch so its OK.
But the real problem was that I had installed the NDK separately and it was not built yet. I now realize that V8 does download the NDK as part of the third party dependencies which is great. So I removed the external NDK. But sadly the makefile.Android_arm.release contains links to it and doesnt use the NDK in the third_party dir. I also tried deleting evironment vars which might point to it.

Is there some way to rebuild the thing so that the makefiles are cleaned up so that they use the internal NDK ?

Thanks
Sanjit
  
Reply all
Reply to author
Forward
0 new messages