问题:在cocos2dx 3.6编译成android没有问题,
在3.6中,我修改了Application.mk文件把 APP_STL := gnustl_static 改为APP_STL := c++_static。是为了解决std::to_string 的问题
Application.mk如下:
APP_STL := c++_static
NDK_TOOLCHAIN_VERSION=clang
APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char
APP_LDFLAGS := -latomic
APP_DEBUG := (strip (NDK_DEBUG))
ifeq ($(NDK_DEBUG),1)
APP_CPPFLAGS += -DCOCOS2D_DEBUG=1
APP_OPTIM := debug
else
APP_CPPFLAGS += -DNDEBUG
APP_OPTIM := release
endif
在3.8中,做了同样修改,就出现问题:
出错。
/Users/guanruilin/Documents/Android/android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/memory: In instantiation of 'void std::__1::unique_ptr<_Tp, _Dp>::reset(std::__1::unique_ptr<_Tp, _Dp>::pointer) ':
/Users/guanruilin/Documents/Android/android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/memory:2598:52: required from 'std::__1::unique_ptr<_Tp, _Dp>::~unique_ptr() ’
/Users/guanruilin/Documents/Android/android-ndk-r10c/sources/cxx-stl/llvm-libc++/libcxx/include/functional:1603:72: required from 'std::__1::function<_Rp(_ArgTypes …)>::function(_Fp, typename std::__1::enable_if<(std::__1::function<_Rp(_ArgTypes …)>::__callable<_Fp>::value && (! std::__1::is_same<_Fp, std::__1::function<_Rp(_ArgTypes …)> >::value))>::type*) ’
有哪位大神或者版主能帮忙解决下吗??不胜感激!!!!