为什么编译的时候会出现这个报错

快乐的宅男 发布于 05/14 14:09
阅读 22
收藏 0

PS D:\developer\client\client\engine\app\wly_client_platform> cocos compile -p android
执行命令:compile
编译模式:debug
使用 Eclipse 工程:D:\developer\client\client\engine\app\wly_client_platform\frameworks\runtime-src\proj.android
未指定 Android 目标平台版本,自动查找一个可用版本...
正在执行:'"D:\android-tool\adt-bundle-windows-x86_64-20140702\sdk\tools\android" update project -t android-20 -p D:\developer\client\client\engine\app\wly_client_platform\frameworks\runtime-src\proj.android'

Updated project.properties
Updated local.properties
Updated file D:\developer\client\client\engine\app\wly_client_platform\frameworks\runtime-src\proj.android\proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.
未指定 Android 目标平台版本,自动查找一个可用版本...
正在执行:'"D:\android-tool\adt-bundle-windows-x86_64-20140702\sdk\tools\android" update lib-project -p D:\developer\client\client\engine\app\wly_client_platform\frameworks\runtime-src\proj.android\../../cocos2d-x/cocos/platform/android/java -t android-20'

Updated project.properties
Updated local.properties
Updated file D:\developer\client\client\engine\app\wly_client_platform\frameworks\runtime-src\proj.android\..\..\cocos2d-x\cocos\platform\android\java\proguard-project.txt
正在执行 ndk-build...
NDK 编译模式:debug
NDK_TOOLCHAIN_VERSION: 4.9
正在执行:'"D:\android-tool\android-ndk-r10c\ndk-build" -C D:\developer\client\client\engine\app\wly_client_platform\frameworks\runtime-src\proj.android -j8 NDK_MODULE_PATH=D:\developer\client\client\engine\app\wly_client_platform\frameworks\runtime-src\proj.android\../../cocos2d-x;D:\developer\client\client\engine\app\wly_client_platform\frameworks\runtime-src\proj.android\../../cocos2d-x/cocos/;D:\developer\client\client\engine\app\wly_client_platform\frameworks\runtime-src\proj.android\../../cocos2d-x/external;D:\developer\client\client\engine\app\wly_client_platform\frameworks\runtime-src\proj.android\../../cocos2d-x/cocos/scripting NDK_TOOLCHAIN_VERSION=4.9 NDK_DEBUG=1'

Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
make.exe: Entering directory `D:/developer/client/client/engine/app/wly_client_platform/frameworks/runtime-src/proj.android'
D:/android-tool/android-ndk-r10c/build/core/build-binary.mk:449: warning: overriding commands for target `obj/local/armeabi/objs-debug/bullet_static/BulletMultiThreaded/SpuLibspe2Support.o'
D:/android-tool/android-ndk-r10c/build/core/build-binary.mk:449: warning: ignoring old commands for target `obj/local/armeabi/objs-debug/bullet_static/BulletMultiThreaded/SpuLibspe2Support.o'
[armeabi] Compile++ thumb: cocos2dlua_shared <= AppDelegate.cpp
[armeabi] StaticLibrary  : libluacocos2d.a
[armeabi] StaticLibrary  : libsimulator.a
[armeabi] StaticLibrary  : libcocos2d.a
[armeabi] StaticLibrary  : libcocostudio.a
[armeabi] StaticLibrary  : libcocosbuilder.a
[armeabi] StaticLibrary  : libcocos3d.a
[armeabi] StaticLibrary  : libspine.a
[armeabi] StaticLibrary  : libnetwork.a
[armeabi] StaticLibrary  : libui.a
[armeabi] StaticLibrary  : libcocosdenshion.a
[armeabi] StaticLibrary  : flatbuffers.a
[armeabi] StaticLibrary  : libextension.a
[armeabi] StaticLibrary  : libaudioengine.a
In file included from jni/../../Classes/LuaWindModule.h:5:0,
                 from jni/../../Classes/AppDelegate.cpp:12:
jni/../../Classes/WindModule.h:13:1: warning: 'typedef' was ignored in this declaration
 };
 ^
jni/../../Classes/WindModule.h:22:1: warning: 'typedef' was ignored in this declaration
 };
 ^
jni/../../Classes/WindModule.h:31:1: warning: 'typedef' was ignored in this declaration
 };
 ^
jni/../../Classes/WindModule.h:41:1: warning: 'typedef' was ignored in this declaration
 };
 ^
jni/../../Classes/WindModule.h:84:17: error: 'UINT' has not been declared
  int callWndPro(UINT uMsg,WPARAM wParam,LPARAM lParam);
                 ^
jni/../../Classes/WindModule.h:84:27: error: 'WPARAM' has not been declared
  int callWndPro(UINT uMsg,WPARAM wParam,LPARAM lParam);
                           ^
jni/../../Classes/WindModule.h:84:41: error: 'LPARAM' has not been declared
  int callWndPro(UINT uMsg,WPARAM wParam,LPARAM lParam);
                                         ^
jni/../../Classes/WindModule.h:102:3: error: 'HWND' does not name a type
   HWND z_mod;
   ^
In file included from jni/../../Classes/LuaBitop.h:5:0,
                 from jni/../../Classes/AppDelegate.cpp:16:
jni/../../Classes/Bitop.h:10:20: error: expected unqualified-id before 'int'
  static int bitand(int p1, int p2); // &
                    ^
jni/../../Classes/Bitop.h:10:20: error: expected ')' before 'int'
jni/../../Classes/Bitop.h:10:19: error: expected ';' at end of member declaration
  static int bitand(int p1, int p2); // &
                   ^
jni/../../Classes/Bitop.h:10:28: error: expected unqualified-id before 'int'
  static int bitand(int p1, int p2); // &
                            ^
jni/../../Classes/Bitop.h:11:13: error: expected unqualified-id before 'bitor' token
  static int bitor(int p1,int p2); // |
             ^
In file included from jni/../../Classes/GamePackge.h:3:0,
                 from jni/../../Classes/LuaGamePackge.h:5,
                 from jni/../../Classes/AppDelegate.cpp:17:
D:\developer\client\client\engine\app\wly_client_platform\frameworks\runtime-src\proj.android\../../cocos2d-x/cocos//3d/../platform/PackgeMgr.h:12:16: error: variable 'dll_port CPackgeMgr' has initializer but incomplete type
 class dll_port CPackgeMgr
                ^
D:\developer\client\client\engine\app\wly_client_platform\frameworks\runtime-src\proj.android\../../cocos2d-x/cocos//3d/../platform/PackgeMgr.h:14:1: error: expected primary-expression before 'public'
 public:
 ^
D:\developer\client\client\engine\app\wly_client_platform\frameworks\runtime-src\proj.android\../../cocos2d-x/cocos//3d/../platform/PackgeMgr.h:14:1: error: expected '}' before 'public'
D:\developer\client\client\engine\app\wly_client_platform\frameworks\runtime-src\proj.android\../../cocos2d-x/cocos//3d/../platform/PackgeMgr.h:14:1: error: expected ',' or ';' before 'public'
D:\developer\client\client\engine\app\wly_client_platform\frameworks\runtime-src\proj.android\../../cocos2d-x/cocos//3d/../platform/PackgeMgr.h:17:1: error: expected unqualified-id before 'public'
 public:
 ^
D:\developer\client\client\engine\app\wly_client_platform\frameworks\runtime-src\proj.android\../../cocos2d-x/cocos//3d/../platform/PackgeMgr.h:24:9: error: 'CPackgeMgr' does not name a type
  static CPackgeMgr* GetInstance();
         ^
D:\developer\client\client\engine\app\wly_client_platform\frameworks\runtime-src\proj.android\../../cocos2d-x/cocos//3d/../platform/PackgeMgr.h:27:1: error: expected unqualified-id before 'private'
 private:
 ^
D:\developer\client\client\engine\app\wly_client_platform\frameworks\runtime-src\proj.android\../../cocos2d-x/cocos//3d/../platform/PackgeMgr.h:29:18: error: expected constructor, destructor, or type conversion before ';' token
  CPackgeMgr(void);
                  ^
D:\developer\client\client\engine\app\wly_client_platform\frameworks\runtime-src\proj.android\../../cocos2d-x/cocos//3d/../platform/PackgeMgr.h:31:1: error: expected unqualified-id before 'private'
 private:
 ^
D:\developer\client\client\engine\app\wly_client_platform\frameworks\runtime-src\proj.android\../../cocos2d-x/cocos//3d/../platform/PackgeMgr.h:37:1: error: expected declaration before '}' token
 };
 ^
[armeabi] StaticLibrary  : libcocos2dxinternal.a
[armeabi] StaticLibrary  : libbox2d.a
[armeabi] StaticLibrary  : libbullet.a
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/cocos2dlua_shared/__/__/Classes/AppDelegate.o] Error 1
make.exe: *** Waiting for unfinished jobs....
[armeabi] StaticLibrary  : librecast.a
[armeabi] StaticLibrary  : libluacocos2dandroid.a
make.exe: Leaving directory `D:/developer/client/client/engine/app/wly_client_platform/frameworks/runtime-src/proj.android'
执行命令出错,返回值:2。
PS D:\developer\client\client\engine\app\wly_client_platform>

加载中
返回顶部
顶部