@z742 写道:
编译模式:release
使用 Eclipse 工程:D:\dfhv5\hello\build\jsb-default\frameworks\runtime-src\proj.android
正在执行:'"D:\android\Android-SDK\tools\android" update project -t android-20 -p D:\dfhv5\hello\build\jsb-default\frameworks\runtime-src\proj.android'Updated project.properties
Updated local.properties
Updated file D:\dfhv5\hello\build\jsb-default\frameworks\runtime-src\proj.android\proguard-project.txt
正在执行:'"D:\android\Android-SDK\tools\android" update lib-project -p D:\dfhv5\hello\build\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java -t android-20'Updated project.properties
Updated local.properties
Updated file D:\dfhv5\hello\build\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\proguard-project.txt
正在执行 ndk-build...
NDK 编译模式:release
NDK_TOOLCHAIN_VERSION: 4.9
正在执行:'"D:\android\android-ndk-r10e\ndk-build" -C D:\dfhv5\hello\build\jsb-default\frameworks\runtime-src\proj.android -j4 NDK_MODULE_PATH=D:\dfhv5\hello\build\jsb-default\frameworks\cocos2d-x;D:\dfhv5\hello\build\jsb-default\frameworks\cocos2d-x\cocos;D:\dfhv5\hello\build\jsb-default\frameworks\cocos2d-x\external NDK_TOOLCHAIN_VERSION=4.9'Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
make.exe: Entering directoryD:/dfhv5/hello/build/jsb-default/frameworks/runtime-src/proj.android'
D:/dfhv5/hello/build/jsb-default/frameworks/runtime-src/proj.android'
[armeabi-v7a] StaticLibrary : libcocos2d.a
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= main.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= AppDelegate.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= SDKManager.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= jsb_anysdk_basic_conversions.cpp
In file included from D:/dfhv5/hello/build/jsb-default/frameworks/cocos2d-x/cocos/base/CCRef.h:29:0,
from D:/dfhv5/hello/build/jsb-default/frameworks/cocos2d-x/cocos/base/CCConsole.h:50,
from D:/dfhv5/hello/build/jsb-default/frameworks/cocos2d-x/cocos/base/ccMacros.h:35,
from D:/dfhv5/hello/build/jsb-default/frameworks/cocos2d-x/cocos/2d/CCNode.h:33,
from D:/dfhv5/hello/build/jsb-default/frameworks/cocos2d-x/cocos/2d/CCProtectedNode.h:33,
from D:/dfhv5/hello/build/jsb-default/frameworks/cocos2d-x/cocos/ui/UIWidget.h:28,
from D:/dfhv5/hello/build/jsb-default/frameworks/cocos2d-x/cocos/ui/CocosGUI.h:29,
from D:/dfhv5/hello/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/manual/ScriptingCore.h:32,
from D:/dfhv5/hello/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/manual/cocos2d_specifics.hpp:27,
from jni/../../Classes/jsb_anysdk_basic_conversions.cpp:4:
D:/dfhv5/hello/build/jsb-default/frameworks/cocos2d-x/cocos/platform/CCPlatformMacros.h:206:0: warning: "CCLOGINFO" redefined
#define CCLOGINFO(...) do {} while (0)
^
In file included from jni/../../Classes/jsb_anysdk_basic_conversions.cpp:1:0:
jni/../../Classes/jsb_anysdk_basic_conversions.h:16:0: note: this is the location of the previous definition
#define CCLOGINFO(...)
^
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= manualanysdkbindings.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= jsb_anysdk_protocols_auto.cpp
[armeabi-v7a] Compile++ arm : cocos2d_js_static <= jsb_cocos2dx_extension_auto.cpp
In file included from D:/dfhv5/hello/build/jsb-default/frameworks/cocos2d-x/extensions/../extensions/assets-manager/AssetsManagerEx.h:38:0,
from D:/dfhv5/hello/build/jsb-default/frameworks/cocos2d-x/extensions/../extensions/cocos-ext.h:6,
from D:/dfhv5/hello/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/proj.android/../auto/jsb_cocos2dx_extension_auto.cpp:3:
D:/dfhv5/hello/build/jsb-default/frameworks/cocos2d-x/extensions/../extensions/assets-manager/Manifest.h:37:35: fatal error: json/document-wrapper.h: No such file or directory
#include "json/document-wrapper.h"
^
compilation terminated.
make.exe: *** [obj/local/armeabi-v7a/objs/cocos2d_js_static/__/auto/jsb_cocos2dx_extension_auto.o] Error 1
make.exe: *** Waiting for unfinished jobs....
jni/../../Classes/jsb_anysdk_protocols_auto.cpp: In function 'bool js_anysdk_framework_ProtocolUser_login(JSContext*, uint32_t, jsval*)':
jni/../../Classes/jsb_anysdk_protocols_auto.cpp:1090:33: warning: 'virtual void anysdk::framework::ProtocolUser::login(std::string, std::string)' is deprecated (declared at D:/dfhv5/hello/build/jsb-default/frameworks/cocos2d-x/external/android/armeabi-v7a/include/anysdk/ProtocolUser.h:90) [-Wdeprecated-declarations]
cobj->login(arg0);
^
jni/../../Classes/jsb_anysdk_protocols_auto.cpp:1113:35: warning: 'virtual void anysdk::framework::ProtocolUser::login(std::string, std::string)' is deprecated (declared at D:/dfhv5/hello/build/jsb-default/frameworks/cocos2d-x/external/android/armeabi-v7a/include/anysdk/ProtocolUser.h:90) [-Wdeprecated-declarations]
cobj->login(arg0, arg1);
^
make.exe: Leaving directory
执行命令出错,返回值:2。从github上弄的engine 和 cocos2d-x-lite 用的是v1.3分支,都按文档上的操作了
cocoscreator1.3.3
ndk sdk ant都是按照文档地址去下的最新的。不用定制引擎的情况下可以编译过打出包的。
这个编译出错是说找不到json/document-wrapper.h,这是怎么回事那?
帖子: 4
参与者: 1