E:\>cd E:\cocos_work\CF96\proj.android
E:\cocos_work\CF96\proj.android>build_native.py
Please use cocos console instead.
编译模式:debug
使用 Eclipse 工程:E:\cocos_work\CF96\proj.android
未指定 Android 目标平台版本,自动查找一个可用版本...
正在执行:'"D:\sdk\tools\android" update project -t android-20 -p E:\cocos_work\CF96\proj.android'
Updated project.properties
Updated local.properties
Updated file E:\cocos_work\CF96\proj.android\proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.
正在执行 ndk-build...
NDK 编译模式:debug
NDK_TOOLCHAIN_VERSION: 4.9
正在执行:'"D:\android-ndk-r10d\ndk-build" -C E:\cocos_work\CF96\proj.android -j4 NDK_MODULE_PATH=E:\cocos_work\CF96\proj.android\../cocos2d;E:\cocos_work\CF96\proj.android\../cocos2d/cocos;E:\cocos_work\CF96\proj.android\../cocos2d/external NDK_TOOLCHAIN_VERSION=4.9 NDK_DEBUG=1'
make.exe: Entering directory `E:/cocos_work/CF96/proj.android'
[armeabi] Compile++ thumb: cocos2dcpp_shared <= main.cpp
[armeabi] Compile++ thumb: cocos2dcpp_shared <= AppDelegate.cpp
[armeabi] Compile++ thumb: cocos2dcpp_shared <= HelloWorldScene.cpp
[armeabi] StaticLibrary : libcocos2d.a
[armeabi] Compile++ thumb: cocostudio_static <= CCActionFrame.cpp
In file included from D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/random:39:0,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/ccRandom.h:29,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/ccMacros.h:73,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/CCVector.h:29,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/CCDirector.h:36,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/CCAsyncTaskPool.h:29,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../cocos2d.h:41,
from jni/../../Classes/AppDelegate.h:4,
from jni/hellocpp/main.cpp:1:
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:207:11: error: '::_Exit' has not been declared
using ::_Exit;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:233:11: error: '::strtold' has not been declared
using ::strtold;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:243:22: error: '__gnu_cxx::_Exit' has not been declared
using ::__gnu_cxx::_Exit;
^
In file included from D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/random:39:0,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/ccRandom.h:29,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/ccMacros.h:73,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/CCVector.h:29,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/CCDirector.h:36,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/CCAsyncTaskPool.h:29,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../cocos2d.h:41,
from jni/../../Classes/HelloWorldScene.h:4,
from jni/../../Classes/HelloWorldScene.cpp:1:
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:207:11: error: '::_Exit' has not been declared
using ::_Exit;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:253:22: error: '__gnu_cxx::strtold' has not been declared
using ::__gnu_cxx::strtold;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:233:11: error: '::strtold' has not been declared
using ::strtold;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:243:22: error: '__gnu_cxx::_Exit' has not been declared
using ::__gnu_cxx::_Exit;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:253:22: error: '__gnu_cxx::strtold' has not been declared
using ::__gnu_cxx::strtold;
^
In file included from D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/random:39:0,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/./base/ccRandom.h:29,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/./base/ccMacros.h:73,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/./math/CCGeometry.h:32,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/editor-support/cocostudio/../cocostudio/CCActionFrame.h:28,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/editor-support/cocostudio/CCActionFrame.cpp:25:
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:207:11: error: '::_Exit' has not been declared
using ::_Exit;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:233:11: error: '::strtold' has not been declared
using ::strtold;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:243:22: error: '__gnu_cxx::_Exit' has not been declared
using ::__gnu_cxx::_Exit;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:253:22: error: '__gnu_cxx::strtold' has not been declared
using ::__gnu_cxx::strtold;
^
In file included from D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/random:39:0,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/ccRandom.h:29,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/ccMacros.h:73,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/CCVector.h:29,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/CCDirector.h:36,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/CCAsyncTaskPool.h:29,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../cocos2d.h:41,
from jni/../../Classes/AppDelegate.h:4,
from jni/../../Classes/AppDelegate.cpp:1:
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:207:11: error: '::_Exit' has not been declared
using ::_Exit;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:233:11: error: '::strtold' has not been declared
using ::strtold;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:243:22: error: '__gnu_cxx::_Exit' has not been declared
using ::__gnu_cxx::_Exit;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:253:22: error: '__gnu_cxx::strtold' has not been declared
using ::__gnu_cxx::strtold;
^
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
make.exe: *** [obj/local/armeabi/objs-debug/cocostudio_static/CCActionFrame.o] Error 1
make.exe: *** Waiting for unfinished jobs....
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
make.exe: *** [obj/local/armeabi/objs-debug/cocos2dcpp_shared/hellocpp/main.o] Error 1
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
make.exe: *** [obj/local/armeabi/objs-debug/cocos2dcpp_shared/__/__/Classes/HelloWorldScene.o] Error 1
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
make.exe: *** [obj/local/armeabi/objs-debug/cocos2dcpp_shared/__/__/Classes/AppDelegate.o] Error 1
make.exe: Leaving directory `E:/cocos_work/CF96/proj.android'
执行命令出错,返回值:2。
Traceback (most recent call last):
File "E:\cocos_work\CF96\proj.android\build_native.py", line 43, in <module>
build(opts.build_mode)
File "E:\cocos_work\CF96\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 [ E:\cocos_work\CF96\proj.android\../ ] fails!
E:\cocos_work\CF96\proj.android>build_native.py
Please use cocos console instead.
编译模式:debug
使用 Eclipse 工程:E:\cocos_work\CF96\proj.android
未指定 Android 目标平台版本,自动查找一个可用版本...
正在执行:'"D:\sdk\tools\android" update project -t android-20 -p E:\cocos_work\CF96\proj.android'
Updated project.properties
Updated local.properties
Updated file E:\cocos_work\CF96\proj.android\proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.
正在执行 ndk-build...
NDK 编译模式:debug
NDK_TOOLCHAIN_VERSION: 4.9
正在执行:'"D:\android-ndk-r10d\ndk-build" -C E:\cocos_work\CF96\proj.android -j4 NDK_MODULE_PATH=E:\cocos_work\CF96\proj.android\../cocos2d;E:\cocos_work\CF96\proj.android\../cocos2d/cocos;E:\cocos_work\CF96\proj.android\../cocos2d/external NDK_TOOLCHAIN_VERSION=4.9 NDK_DEBUG=1'
make.exe: Entering directory `E:/cocos_work/CF96/proj.android'
[armeabi] Compile++ thumb: cocos2dcpp_shared <= main.cpp
[armeabi] Compile++ thumb: cocos2dcpp_shared <= AppDelegate.cpp
[armeabi] Compile++ thumb: cocos2dcpp_shared <= HelloWorldScene.cpp
[armeabi] StaticLibrary : libcocos2d.a
[armeabi] Compile++ thumb: cocostudio_static <= CCActionFrame.cpp
In file included from D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/random:39:0,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/ccRandom.h:29,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/ccMacros.h:73,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/CCVector.h:29,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/CCDirector.h:36,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/CCAsyncTaskPool.h:29,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../cocos2d.h:41,
from jni/../../Classes/AppDelegate.h:4,
from jni/hellocpp/main.cpp:1:
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:207:11: error: '::_Exit' has not been declared
using ::_Exit;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:233:11: error: '::strtold' has not been declared
using ::strtold;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:243:22: error: '__gnu_cxx::_Exit' has not been declared
using ::__gnu_cxx::_Exit;
^
In file included from D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/random:39:0,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/ccRandom.h:29,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/ccMacros.h:73,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/CCVector.h:29,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/CCDirector.h:36,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/CCAsyncTaskPool.h:29,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../cocos2d.h:41,
from jni/../../Classes/HelloWorldScene.h:4,
from jni/../../Classes/HelloWorldScene.cpp:1:
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:207:11: error: '::_Exit' has not been declared
using ::_Exit;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:253:22: error: '__gnu_cxx::strtold' has not been declared
using ::__gnu_cxx::strtold;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:233:11: error: '::strtold' has not been declared
using ::strtold;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:243:22: error: '__gnu_cxx::_Exit' has not been declared
using ::__gnu_cxx::_Exit;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:253:22: error: '__gnu_cxx::strtold' has not been declared
using ::__gnu_cxx::strtold;
^
In file included from D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/random:39:0,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/./base/ccRandom.h:29,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/./base/ccMacros.h:73,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/./math/CCGeometry.h:32,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/editor-support/cocostudio/../cocostudio/CCActionFrame.h:28,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/editor-support/cocostudio/CCActionFrame.cpp:25:
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:207:11: error: '::_Exit' has not been declared
using ::_Exit;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:233:11: error: '::strtold' has not been declared
using ::strtold;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:243:22: error: '__gnu_cxx::_Exit' has not been declared
using ::__gnu_cxx::_Exit;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:253:22: error: '__gnu_cxx::strtold' has not been declared
using ::__gnu_cxx::strtold;
^
In file included from D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/random:39:0,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/ccRandom.h:29,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/ccMacros.h:73,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/CCVector.h:29,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/CCDirector.h:36,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../base/CCAsyncTaskPool.h:29,
from E:\cocos_work\CF96\proj.android\../cocos2d/cocos/3d/../cocos2d.h:41,
from jni/../../Classes/AppDelegate.h:4,
from jni/../../Classes/AppDelegate.cpp:1:
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:207:11: error: '::_Exit' has not been declared
using ::_Exit;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:233:11: error: '::strtold' has not been declared
using ::strtold;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:243:22: error: '__gnu_cxx::_Exit' has not been declared
using ::__gnu_cxx::_Exit;
^
D:/android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.9/include/cstdlib:253:22: error: '__gnu_cxx::strtold' has not been declared
using ::__gnu_cxx::strtold;
^
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
make.exe: *** [obj/local/armeabi/objs-debug/cocostudio_static/CCActionFrame.o] Error 1
make.exe: *** Waiting for unfinished jobs....
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
make.exe: *** [obj/local/armeabi/objs-debug/cocos2dcpp_shared/hellocpp/main.o] Error 1
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
make.exe: *** [obj/local/armeabi/objs-debug/cocos2dcpp_shared/__/__/Classes/HelloWorldScene.o] Error 1
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
make.exe: *** [obj/local/armeabi/objs-debug/cocos2dcpp_shared/__/__/Classes/AppDelegate.o] Error 1
make.exe: Leaving directory `E:/cocos_work/CF96/proj.android'
执行命令出错,返回值:2。
Traceback (most recent call last):
File "E:\cocos_work\CF96\proj.android\build_native.py", line 43, in <module>
build(opts.build_mode)
File "E:\cocos_work\CF96\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 [ E:\cocos_work\CF96\proj.android\../ ] fails!