cocos2d 编译问题? 求大神帮忙?

peakerlu 2017-03-13 04:13:28

[armeabi] Compile++ thumb: cocos2dxandroid_static <= Java_org_cocos2dx_lib_Cocos
2dxBitmap.cpp
F:\Android\textdemo\master\XianLaiGame-master\XianLGame\cocos2d\cocos/platform/a
ndroid/javaactivity-android.cpp: In function 'void Java_org_cocos2dx_lib_Cocos2d
xRenderer_nativeInit(JNIEnv*, jobject, jint, jint)':
F:\Android\textdemo\master\XianLaiGame-master\XianLGame\cocos2d\cocos/platform/a
ndroid/javaactivity-android.cpp:77:34: warning: 'void cocos2d::DrawPrimitives::i
nit()' is deprecated (declared at F:\Android\textdemo\master\XianLaiGame-master\
XianLGame\cocos2d\cocos/platform/android/../../2d/CCDrawingPrimitives.h:88) [-Wd
eprecated-declarations]
cocos2d::DrawPrimitives::init();
^
F:\Android\textdemo\master\XianLaiGame-master\XianLGame\cocos2d\cocos/platform/a
ndroid/javaactivity-android.cpp:77:39: warning: 'void cocos2d::DrawPrimitives::i
nit()' is deprecated (declared at F:\Android\textdemo\master\XianLaiGame-master\
XianLGame\cocos2d\cocos/platform/android/../../2d/CCDrawingPrimitives.h:88) [-Wd
eprecated-declarations]
cocos2d::DrawPrimitives::init();
^
[armeabi] Compile++ thumb: cocos2dxandroid_static <= Java_org_cocos2dx_lib_Cocos
2dxHelper.cpp
At global scope:
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat"
[armeabi] Compile++ thumb: cocos2dxandroid_static <= Java_org_cocos2dx_lib_Cocos
2dxRenderer.cpp
[armeabi] Compile++ thumb: cocos2dxandroid_static <= JniHelper.cpp
[armeabi] Compile++ thumb: cocos2dxandroid_static <= TouchesJni.cpp
[armeabi] Compile++ thumb: cocos2dxandroid_static <= CocosPlayClient.cpp
[armeabi] Compile thumb : cpufeatures <= cpu-features.c
[armeabi] StaticLibrary : libcocostudio.a
[armeabi] StaticLibrary : libcocosbuilder.a
[armeabi] StaticLibrary : libcocos3d.a
[armeabi] StaticLibrary : libspine.a
[armeabi] StaticLibrary : libui.a
[armeabi] StaticLibrary : libcocosdenshion.a
[armeabi] StaticLibrary : flatbuffers.a
[armeabi] StaticLibrary : libextension.a
[armeabi] StaticLibrary : libaudioengine.a
[armeabi] StaticLibrary : libnetwork.a
[armeabi] StaticLibrary : libbox2d.a
[armeabi] StaticLibrary : libcocos2dxinternal.a
[armeabi] StaticLibrary : librecast.a
[armeabi] StaticLibrary : libbullet.a
[armeabi] StaticLibrary : libcpufeatures.a
[armeabi] StaticLibrary : libcocos2dandroid.a
[armeabi] SharedLibrary : libcocos2dcpp.so
jni/../../../Classes/AppDelegate.cpp:115: error: undefined reference to 'JzLog::
shareLog()'
jni/../../../Classes/AppDelegate.cpp:115: error: undefined reference to 'JzLog::
setWritePath(char const*)'
jni/../../../Classes/AppDelegate.cpp:116: error: undefined reference to 'JzLog::
shareLog()'
jni/../../../Classes/AppDelegate.cpp:116: error: undefined reference to 'JzLog::
setWriteToFile(bool)'
jni/../../../Classes/AppDelegate.cpp:117: error: undefined reference to 'JzLog::
shareLog()'
jni/../../../Classes/AppDelegate.cpp:117: error: undefined reference to 'JzLog::
setLogLevel(LogLevel)'
jni/../../../Classes/AppDelegate.cpp:118: error: undefined reference to 'JzLog::
shareLog()'
jni/../../../Classes/AppDelegate.cpp:118: error: undefined reference to 'JzLog::
setWriteCache(int)'
jni/../../../Classes/AppDelegate.cpp:124: error: undefined reference to 'LoginLa
yer::createScene()'
jni/../../../Classes/GamePrompt.h:22: error: undefined reference to 'GamePromptL
ayer::GamePromptLayer()'
jni/../../../Classes/LoadingScene.cpp:77: error: undefined reference to 'YZGameC
reator::getInstance()'
jni/../../../Classes/LoadingScene.cpp:77: error: undefined reference to 'YZGameC
reator::startGameClient(unsigned int, unsigned char, bool)'
jni/../../../Classes/LoadingScene.cpp:80: error: undefined reference to 'YZ::YZC
onverCode::GB2312ToUtf8(char const*)'
jni/../../../Classes/LoadingScene.cpp:80: error: undefined reference to 'GamePro
mptLayer::showPrompt(std::string const&)'
collect2.exe: error: ld returned 1 exit status
make.exe: *** [obj/local/armeabi/libcocos2dcpp.so] Error 1
make.exe: Leaving directory `F:/Android/textdemo/master/XianLaiGame-master/XianL
Game/proj.android-studio/app'
执行命令出错,返回值:2。
F:\Android\textdemo\master\XianLaiGame-master\XianLGame>

...全文
159 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

80,337

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧