为了使程序支持STL;
Application.mk里面加了;
APP_STL := c++_static
APP_STL +=stlport_static
eclipse里报错;
**** Build of configuration Release for project game1 ****
python E:/hhh/proj.android/build_native.py -b release all
Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
D:/cocos2dx/NDK/android-ndk-r9d/build/core/setup-toolchain.mk:190: *** Android NDK: Aborting. . Stop.
Traceback (most recent call last):
File “E:/hhh/proj.android/build_native.py”, line 159, in
Android NDK: : Cannot import module with spaces in tag: ‘’
build(opts.ndk_build_param,opts.android_platform,opts.build_mode)
Android NDK: : Cannot find module with tag ‘’ in import path
File “E:/hhh/proj.android/build_native.py”, line 146, in build
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
do_build(cocos_root, ndk_root, app_android_root,ndk_build_param,sdk_root,android_platform,build_mode)
Android NDK: The following directories were searched:
File “E:/hhh/proj.android/build_native.py”, line 82, in do_build
Android NDK:
raise Exception(“Build dynamic library for project " + app_android_root + " ] fails!”)
make.exe: Entering directory E:/hhh/proj.android' Exception: Build dynamic library for project E:\hhh\proj.android ] fails! make.exe: Leaving directory E:/hhh/proj.android’
The Selected NDK toolchain version was 4.8 !
**** Build Finished ****
求:
加STL库的方法;