How can I compile STL C++ for Android using custom Makefile? -


i compiling sources android using custom makefile, along lines of:

ndkdir := /path/to/android-ndk-r10c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin ndkcc := $(ndkdir)/arm-linux-androideabi-gcc ndkcxx := $(ndkdir)/arm-linux-androideabi-g++ ndkflags := -i/path/to/android-ndk-r10c/platforms/android-21/arch-arm/usr/include/  %.o: %.cpp     $(ndkcxx) $(ndkflags) -c $< -o $@ 

compiling regular c++ code works fine, includes "stl" headers, such queue fail "fatal error: queue: no such file or directory".

is there way make work stl headers?

i had problem too, placed three, , resolved.

android.mk

local_cflags := -d_stlp_use_newalloc local_c_includes += ${ndk_root}/sources/cxx-stl/stlport/stlport local_ldlibs    += -lstdc++ 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -