Status: New
Owner: ----
New issue 2332 by [email protected]: Usage of Android NDK toolchain is
incorrect.
http://code.google.com/p/v8/issues/detail?id=2332
Dear V8 team,
your usage of the Android NDK is incorrect. You are directly linking the
stlport_static.a library, which is not the correct way, because you weren't
building it before.
You are refering to the -lstlport_static flag in this line:
https://github.com/v8/v8/blob/master/build/android.gypi#L66
The problem is that these folders of the Android NDK include a .gitignore:
android-ndk/sources/cxx-stl/gabi++/.gitignore
android-ndk/sources/cxx-stl/gnu-libstdc++/.gitignore
android-ndk/sources/cxx-stl/stlport/.gitignore
android-ndk/sources/cxx-stl/stlport/test/.gitignore
in which the libs/ folder is ignored and later on not pushed to the
repsository.
That means these lines after the conditions will fail (there's no way that
it worked with a clean repository clone before):
https://github.com/v8/v8/blob/master/build/android.gypi#L178
In your case it might have worked before because you had built an Android
NDK project which includes these libraries as modules.
These can be done via LOCAL_STATIC_LIBRARIES in the Android NDK workflow
(ndk-build), if the NDK_MODULE_PATH is correctly setup and refering to the
android-ndk/sources directory.
See this file for details on that:
https://github.com/martensms/lycheeJS-adk/blob/master/v8gl/jni/Android.mk#L71
If you need help with integrating everything to the Android NDK build
workflow, let me know.
~Cheers,
Christoph
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev