2 qq 18738333 qq_18738333 于 2015.06.06 01:09 提问

Cocos2d-X3.4 打包apk时出错,大神快来帮帮我吧

make: *** [obj/local/armeabi/objs-debug/cocos2dcpp_shared/__/__/Classes/InitReco
rd.o] Error 1
jni/../../Classes/RiverCrossingScene.cpp: In member function 'virtual bool River
CrossingScene::init()':
jni/../../Classes/RiverCrossingScene.cpp:37:98: warning: 'void cocos2d::ui::Widg
et::addTouchEventListener(cocos2d::Ref*, cocos2d::ui::SEL_TouchEvent)' is deprec
ated (declared at E:\TTSNJ_2.0\TTSNJ_2.0\proj.android../cocos2d/cocos/3d/../ui/
UIWidget.h:239) [-Wdeprecated-declarations]
goBackBtn->addTouchEventListener(this, toucheventselector(RiverCrossingScene::
toHelloWorldScene));

              ^

At global scope:
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat" [e
nabled by default]
jni/../../Classes/RiverCrossingScene.cpp:53:83: warning: 'void cocos2d::ui::Widg
et::addTouchEventListener(cocos2d::Ref*, cocos2d::ui::SEL_TouchEvent)' is deprec
ated (declared at E:\TTSNJ_2.0\TTSNJ_2.0\proj.android../cocos2d/cocos/3d/../ui/
UIWidget.h:239) [-Wdeprecated-declarations]
moveBtn->addTouchEventListener(this, toucheventselector(RiverCrossingScene::mo
ve));

^
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat" [e
nabled by default]
jni/../../Classes/RiverCrossingScene.cpp:66:20: warning: 'cocos2d::Color3B cocos
2d::ccc3(GLubyte, GLubyte, GLubyte)' is deprecated (declared at E:\TTSNJ_2.0\TTS
NJ_2.0\proj.android../cocos2d/cocos/3d/../deprecated/CCDeprecated.h:415) [-Wdep
recated-declarations]
timeLab->setColor(ccc3(0, 0, 0));
^
jni/../../Classes/RiverCrossingScene.cpp:66:32: warning: 'cocos2d::Color3B cocos
2d::ccc3(GLubyte, GLubyte, GLubyte)' is deprecated (declared at E:\TTSNJ_2.0\TTS
NJ_2.0\proj.android../cocos2d/cocos/3d/../deprecated/CCDeprecated.h:415) [-Wdep
recated-declarations]
timeLab->setColor(ccc3(0, 0, 0));
^
jni/../../Classes/RiverCrossingScene.cpp:71:21: warning: 'cocos2d::Color3B cocos
2d::ccc3(GLubyte, GLubyte, GLubyte)' is deprecated (declared at E:\TTSNJ_2.0\TTS
NJ_2.0\proj.android../cocos2d/cocos/3d/../deprecated/CCDeprecated.h:415) [-Wdep
recated-declarations]
timeLab1->setColor(ccc3(0, 0, 0));
^
jni/../../Classes/RiverCrossingScene.cpp:71:33: warning: 'cocos2d::Color3B cocos
2d::ccc3(GLubyte, GLubyte, GLubyte)' is deprecated (declared at E:\TTSNJ_2.0\TTS
NJ_2.0\proj.android../cocos2d/cocos/3d/../deprecated/CCDeprecated.h:415) [-Wdep
recated-declarations]
timeLab1->setColor(ccc3(0, 0, 0));
^
jni/../../Classes/RiverCrossingScene.cpp:115:86: warning: 'void cocos2d::ui::Wid
get::addTouchEventListener(cocos2d::Ref*, cocos2d::ui::SEL_TouchEvent)' is depre
cated (declared at E:\TTSNJ_2.0\TTSNJ_2.0\proj.android../cocos2d/cocos/3d/../ui
/UIWidget.h:239) [-Wdeprecated-declarations]
human[0]->addTouchEventListener(this, toucheventselector(RiverCrossingScene::h
uman1));

  ^

jni/../../Classes/RiverCrossingScene.cpp:116:86: warning: 'void cocos2d::ui::Wid
get::addTouchEventListener(cocos2d::Ref*, cocos2d::ui::SEL_TouchEvent)' is depre
cated (declared at E:\TTSNJ_2.0\TTSNJ_2.0\proj.android../cocos2d/cocos/3d/../ui
/UIWidget.h:239) [-Wdeprecated-declarations]
human[1]->addTouchEventListener(this, toucheventselector(RiverCrossingScene::h
uman2));

  ^

jni/../../Classes/RiverCrossingScene.cpp:117:86: warning: 'void cocos2d::ui::Wid
get::addTouchEventListener(cocos2d::Ref*, cocos2d::ui::SEL_TouchEvent)' is depre
cated (declared at E:\TTSNJ_2.0\TTSNJ_2.0\proj.android../cocos2d/cocos/3d/../ui
/UIWidget.h:239) [-Wdeprecated-declarations]
human[2]->addTouchEventListener(this, toucheventselector(RiverCrossingScene::h
uman3));

  ^

jni/../../Classes/RiverCrossingScene.cpp:118:86: warning: 'void cocos2d::ui::Wid
get::addTouchEventListener(cocos2d::Ref*, cocos2d::ui::SEL_TouchEvent)' is depre
cated (declared at E:\TTSNJ_2.0\TTSNJ_2.0\proj.android../cocos2d/cocos/3d/../ui
/UIWidget.h:239) [-Wdeprecated-declarations]
ghost[0]->addTouchEventListener(this, toucheventselector(RiverCrossingScene::g
host1));

  ^

jni/../../Classes/RiverCrossingScene.cpp:119:86: warning: 'void cocos2d::ui::Wid
get::addTouchEventListener(cocos2d::Ref*, cocos2d::ui::SEL_TouchEvent)' is depre
cated (declared at E:\TTSNJ_2.0\TTSNJ_2.0\proj.android../cocos2d/cocos/3d/../ui
/UIWidget.h:239) [-Wdeprecated-declarations]
ghost[1]->addTouchEventListener(this, toucheventselector(RiverCrossingScene::g
host2));

  ^

make:jni/../../Classes/RiverCrossingScene.cpp:120:86: warning: 'void cocos2d::ui
::Widget::addTouchEventListener(cocos2d::Ref*, cocos2d::ui::SEL_TouchEvent)' is
deprecated (declared at E:\TTSNJ_2.0\TTSNJ_2.0\proj.android../cocos2d/cocos/3d/
../ui/UIWidget.h:239) [-Wdeprecated-declarations]
ghost[2]->addTouchEventListener(this, toucheventselector(RiverCrossingScene::g
host3));

  ^

*** [obj/local/armeabi/objs-debug/cocos2dcpp_shared/__/__/Classejni/../../Class
es/RiverCrossingScene.cpp: In member function 'void RiverCrossingScene::losePlay
()':
jni/../../Classes/RiverCrossingScene.cpp:270:86: warning: 'void cocos2d::ui::Wid
get::addTouchEventListener(cocos2d::Ref*, cocos2d::ui::SEL_TouchEvent)' is depre
cated (declared at E:\TTSNJ_2.0\TTSNJ_2.0\proj.android../cocos2d/cocos/3d/../ui
/UIWidget.h:239) [-Wdeprecated-declarations]
goMain->addTouchEventListener(this, toucheventselector(RiverCrossingScene::try
Again));

  ^

s/Recorjni/../../Classes/RiverCrossingScene.cpp:274:19: warning: 'cocos2d::Color
3B cocos2d::ccc3(GLubyte, GLubyte, GLubyte)' is deprecated (declared at E:\TTSNJ
_2.0\TTSNJ_2.0\proj.android../cocos2d/cocos/3d/../deprecated/CCDeprecated.h:415
) [-Wdeprecated-declarations]
tryLab->setColor(ccc3(0, 0, 0));
^
d.o]jni/../../Classes/RiverCrossingScene.cpp:274:31: warning: 'cocos2d::Color3B
cocos2d::ccc3(GLubyte, GLubyte, GLubyte)' is deprecated (declared at E:\TTSNJ_2.
0\TTSNJ_2.0\proj.android../cocos2d/cocos/3d/../deprecated/CCDeprecated.h:415) [
-Wdeprecated-declarations]
tryLab->setColor(ccc3(0, 0, 0));
^
Error 1
At global scope:
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat" [e
nabled by default]
cc1plus.exe: warning: unrecognized command line option "-Wno-extern-c-compat" [e
nabled by default]
make: Leaving directory `E:/TTSNJ_2.0/TTSNJ_2.0/proj.android'
Ndk build failed!
E:\TTSNJ_2.0\TTSNJ_2.0>

1个回答

LogicTeamLeader
LogicTeamLeader   2015.06.06 12:25

没有源代码,只有错误信息,这谁能帮你?

Csdn user default icon
上传中...
上传图片
插入图片