[bug report]sdkbox iap android compile error

jni/./sdkbox/libs/armeabi-v7a/libsdkbox.a(LogAndroid.o):LogAndroid.cpp:vtable for sdkbox::androidbuf: error: undefined reference to ‘std::basic_streambuf<char, std::char_traits >::seekpos(std::fpos<mbstate_t>, std::_Ios_Openmode)’

I am using
APP_STL := gnustl_static
APP_ABI := armeabi-v7a
APP_PLATFORM := android-9

ndk = crystax android ndk

arm-linux-androideabi-nm jni/sdkbox/libs/armeabi-v7a/libsdkbox.a | grep stream
U _ZNSt18basic_stringstreamIcSt11char_traitsIcESaIcEEC1ERKSsSt13_Ios_Openmode
U _ZNSt18basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev
U _ZNSt19basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKSsSt13_Ios_Openmode
U _ZNSt19basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev
U ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RSbIS4_S5_T1_ES4
U _ZNSt18basic_stringstreamIcSt11char_traitsIcESaIcEEC1ERKSsSt13_Ios_Openmode
U _ZNSt18basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev
U ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RSbIS4_S5_T1_ES4
U _ZNSt15basic_streambufIcSt11char_traitsIcEE5imbueERKSt6locale
U _ZNSt15basic_streambufIcSt11char_traitsIcEE5uflowEv
U _ZNSt15basic_streambufIcSt11char_traitsIcEE6sbumpcEv
U _ZNSt15basic_streambufIcSt11char_traitsIcEE6setbufEPci
U _ZNSt15basic_streambufIcSt11char_traitsIcEE6xsgetnEPci
U _ZNSt15basic_streambufIcSt11char_traitsIcEE6xsputnEPKci
U _ZNSt15basic_streambufIcSt11char_traitsIcEE7seekoffExSt12_Ios_SeekdirSt13_Ios_Openmode
U _ZNSt15basic_streambufIcSt11char_traitsIcEE7seekposESt4fposI9mbstate_tESt13_Ios_Openmode
U _ZNSt15basic_streambufIcSt11char_traitsIcEE9pbackfailEi
U _ZNSt15basic_streambufIcSt11char_traitsIcEE9showmanycEv
U _ZNSt15basic_streambufIcSt11char_traitsIcEE9underflowEv
U _ZNSt15basic_streambufIcSt11char_traitsIcEEC2Ev
U _ZNSt15basic_streambufIcSt11char_traitsIcEED2Ev
U _ZNSt9basic_iosIcSt11char_traitsIcEE5rdbufEPSt15basic_streambufIcS1_E
U _ZTISt15basic_streambufIcSt11char_traitsIcEE
all undefined

Did you find a solution? I’m facing the same issue right now

Can you try

APP_ABI := armeabi

I have it already. My Application.mk is:

APP_STL := gnustl_static
# APP_STL := gnustl_shared

APP_CPPFLAGS := -frtti \
-DCC_ENABLE_CHIPMUNK_INTEGRATION=1 \
-std=c++14 \
-fsigned-char
APP_LDFLAGS := -latomic

APP_ABI := armeabi


ifeq ($(NDK_DEBUG),1)
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1
APP_OPTIM := debug
else
APP_CPPFLAGS += -DNDEBUG
APP_OPTIM := release
endif
APP_PLATFORM := android-15

This is the application.mk of our testing samples, crystax is not the official version of NDK correct?

yep it’s not official

We haven’t tested on crystax, is it possible to switch to official NDK?

Hi, same issue there - could u please to check core of SDKBOX, it would be really nice to have it compatible with Crystal NDK - I think not much improvements needed on your side to make it compatible.

@nite

Is it possible to make sdkbox compatible with Crystal NDK - it just one error right which stopping SDKBOX to be compatible with it and according to google it gives a lot of benefits using it.

proj.android-studio/app/jni/./sdkbox/libs/armeabi-v7a/libsdkbox.a(
LogAndroid.o):vtable for sdkbox::androidbuf: error: undefined reference to 'std::basic_streambuf<char, std::char_traits<char> >::seekpos(std::fpos<mbstate_t>, std::_Ios_Openmode)'
collect2: error: ld returned 1 exit status

We’ll look into that.