折腾了三天终于把vs2012编译和运行通过了hellocpp
但是仍未能在eclipse下编译和运行通过hellocpp郁闷
我的环境是win7 64位、adt-bundle-windows-x86_64-20131030(包含SDK api 19)、vs2012、NDK r10d、CocosFramework-v3.5(cocos2d-x-3.5也试过)、JDK 1.6.0.23
在虚拟和实体手机上一运行就异常退出,提示的编译信息如下:
**** Build of configuration Release for project firstcocos ****
python G:/cocosprj/firstcocos/proj.android/build_native.py -b release all
Updated project.properties
Updated local.properties
Updated file G:\cocosprj\firstcocos\proj.android\proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.
Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
make.exe: Entering directory G:/cocosprj/firstcocos/proj.android' StaticLibrary : libcpufeatures.a SharedLibrary : libcocos2dcpp.so Install : libcocos2dcpp.so => libs/armeabi/libcocos2dcpp.so make.exe: Leaving directory G:/cocosprj/firstcocos/proj.android’
Running command: compile
Building mode: release
Android platform not specified, searching a default one…
running: ‘“C:\androidADT\sdk\tools\android” update project -t android-19 -p G:\cocosprj\firstcocos\proj.android’
building native
NDK build mode: release
NDK_TOOLCHAIN_VERSION: 4.9
running: ‘“C:\androidADT\android-ndk-r10d\ndk-build” -C G:\cocosprj\firstcocos\proj.android -j4 NDK_MODULE_PATH=C:\cocos2d\frameworks/cocos2d-x-3.5;C:\cocos2d\frameworks/cocos2d-x-3.5/cocos;C:\cocos2d\frameworks/cocos2d-x-3.5/external NDK_TOOLCHAIN_VERSION=4.9’
Traceback (most recent call last):
File “C:\cocos2d\frameworks\cocos2d-x-3.5\tools\cocos2d-console\bin/cocos.py”, line 859, in
run_plugin(command, argv, plugins)
File “C:\cocos2d\frameworks\cocos2d-x-3.5\tools\cocos2d-console\bin/cocos.py”, line 817, in run_plugin
building apk
plugin.run(argv, dependencies_objects)
Please input the absolute/relative path of “.keystore” file:
File “C:\cocos2d\frameworks\cocos2d-x-3.5\tools\cocos2d-console\plugins\project_compile\project_compile.py”, line 1432, in run
Please use cocos console instead.
self.build_android()
File “C:\cocos2d\frameworks\cocos2d-x-3.5\tools\cocos2d-console\plugins\project_compile\project_compile.py”, line 440, in build_android
self.apk_path = builder.do_build_apk(sdk_root, ant_root, build_mode, output_dir, self._custom_step_args, self)
File “C:\cocos2d\frameworks\cocos2d-x-3.5\tools\cocos2d-console\plugins\project_compile\build_android.py”, line 382, in do_build_apk
self._gather_sign_info()
File “C:\cocos2d\frameworks\cocos2d-x-3.5\tools\cocos2d-console\plugins\project_compile\build_android.py”, line 429, in _gather_sign_info
inputed = self._get_user_input(“Please input the absolute/relative path of “.keystore” file:”)
File “C:\cocos2d\frameworks\cocos2d-x-3.5\tools\cocos2d-console\plugins\project_compile\build_android.py”, line 458, in _get_user_input
ret = raw_input()
EOFError: EOF when reading a line
Traceback (most recent call last):
File “G:/cocosprj/firstcocos/proj.android/build_native.py”, line 43, in
build(opts.build_mode)
File “G:/cocosprj/firstcocos/proj.android/build_native.py”, line 28, in build
raise Exception(“Build dynamic library for project " + app_android_root + " ] fails!”)
Exception: Build dynamic library for project G:\cocosprj\firstcocos\proj.android…/ ] fails!
**** Build Finished ****

