You're supposed to add it to Application.mk, not Android.mk
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
Yes but docs/CPLUSPLUS-SUPPORT.HTML states:
"Value APP_STL values are the following:
system -> Use the default minimal C++ runtime library.
stlport_static -> Use STLport built as a static library.
stlport_shared -> Use STLport built as a shared library."
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
Should I need to add libstdc++.a to the end of LOCAL_LDFLAGS when
linking against static libraries which are linked against
gnustl_static?
Both the static libraries and the shared library
specify "APP_STL := gnustl_static" in their Application.mk. Would
using the new modules system add this for me?
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
I am linking in prebuilt static libraries using LOCAL_LDFLAGS,
LOCAL_LDFLAGS get added at the end of the link command so is after
libstdc++.a and any libraries in LOCAL_LDFLAGS which depend on libstdc+
+ will fail to link. Is the only option to convert my static libraries
into modules?
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
It should unless you expect working wchar_t support.
Let me know if you find something specific that doesn't work.
When I compile my native code with the NDKr4-cristax, it loads on all
platforms (2.0.1 to 2.3).
When I compile my native code with the NDKr5 using the "gnustl_static"
option, it loads on 2.3 and 2.2 emulator, but not on 2.1 and 2.0.1
emulator and not on 2.0.1 device, where I get this error:
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
To do this, you should use pre-built static libraries, instead of trying
to concoct a set of LDLIBS flags.
See docs/PREBUILTS.html for examples.
In short, you create one LOCAL_MODULE for each static library, pointing
at the .a file as the source. Then your final LOCAL_MODULE lists each
of those previous items in its LOCAL_STATIC_LIBRARIES list.
Also, specifically for the C++ support, you should check out:
docs/CPLUSPLUS-SUPPORT.html
in particular, selecting the correct stl implementation with the APP_STL
flag.
--Mike
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.