cocos2dx 3.2 NDK编译不过

SharedLibrary : libcocos2dcpp.so
jni/…/…/Classes/PlayLayer.cpp:48: error: undefined reference to ‘cocos2d::Spri
teBatchNode::create(std::__1::basic_string<char, std::1::char_traits, st
d::1::allocator > const&, long)’
./obj/local/armeabi/objs-debug/cocos2dcpp_shared/
/
/Classes/SushiSprite.o:jni
/…/…/Classes/SushiSprite.cpp:function vtable for SushiSprite: error: undefined
reference to ‘cocos2d::Sprite::setDisplayFrameWithAnimationName(std::__1::basic
_string<char, std::__1::char_traits, std::__1::allocator > const&, l
ong)’
jni/…/…/cocos2d/cocos/./2d/CCActionManager.cpp:81: error: undefined reference
to ‘cocos2d::ccArrayNew(int)’
jni/…/…/cocos2d/cocos/./2d/CCActionManager.cpp:100: error: undefined reference
to ‘cocos2d::ccArrayRemoveObjectAtIndex(cocos2d::_ccArray*, int, bool)’
jni/…/…/cocos2d/cocos/./2d/CCAtlasNode.cpp:93: error: undefined reference to ’
cocos2d::TextureAtlas::initWithTexture(cocos2d::Texture2D*, int)’
jni/…/…/cocos2d/cocos/./2d/CCAtlasNode.cpp:138: error: undefined reference to
‘cocos2d::QuadCommand::init(float, unsigned int, cocos2d::GLProgramState*, cocos
2d::BlendFunc, cocos2d::V3F_C4B_T2F_Quad*, int, cocos2d::Mat4 const&)’
jni/…/…/cocos2d/cocos/./2d/CCFontAtlas.cpp:76: error: undefined reference to ’
cocos2d::Texture2D::initWithData(void const*, int, cocos2d::Texture2D::PixelForm
at, int, int, cocos2d::Size const&)’
jni/…/…/cocos2d/cocos/./2d/CCFontAtlas.cpp:268: error: undefined reference to
‘cocos2d::Texture2D::initWithData(void const*, int, cocos2d::Texture2D::PixelFor
mat, int, int, cocos2d::Size const&)’
jni/…/…/cocos2d/cocos/./2d/CCFontAtlas.cpp:312: error: undefined reference to
‘cocos2d::Texture2D::initWithData(void const*, int, cocos2d::Texture2D::PixelFor
mat, int, int, cocos2d::Size const&)’
jni/…/…/cocos2d/cocos/./2d/CCGrid.cpp:133: error: undefined reference to ‘coco
s2d::Texture2D::initWithData(void const*, int, cocos2d::Texture2D::PixelFormat,
int, int, cocos2d::Size const&)’
jni/…/…/cocos2d/cocos/./2d/CCLabel.cpp:1326: error: undefined reference to ‘co
cos2d::TextureAtlas::updateQuad(cocos2d::V3F_C4B_T2F_Quad*, int)’
jni/…/…/cocos2d/cocos/./2d/CCLabelAtlas.cpp:208: error: undefined reference to
‘cocos2d::TextureAtlas::increaseTotalQuadsWith(int)’
jni/…/…/cocos2d/cocos/./2d/CCLabelAtlas.cpp:219: error: undefined reference to
‘cocos2d::TextureAtlas::resizeCapacity(int)’
jni/…/…/cocos2d/cocos/./2d/CCLabelAtlas.cpp:250: error: undefined reference to
‘cocos2d::TextureAtlas::updateQuad(cocos2d::V3F_C4B_T2F_Quad*, int)’
jni/…/…/cocos2d/cocos/./2d/CCParallaxNode.cpp:68: error: undefined reference t
o ‘cocos2d::ccArrayNew(int)’
jni/…/…/cocos2d/cocos/./2d/CCParallaxNode.cpp:126: error: undefined reference
to ‘cocos2d::ccArrayRemoveObjectAtIndex(cocos2d::_ccArray*, int, bool)’
jni/…/…/cocos2d/cocos/./2d/CCParticleBatchNode.cpp:100: error: undefined refer
ence to ‘cocos2d::TextureAtlas::initWithTexture(cocos2d::Texture2D*, int)’
jni/…/…/cocos2d/cocos/./2d/CCParticleBatchNode.cpp:459: error: undefined refer
ence to ‘cocos2d::TextureAtlas::fillWithEmptyQuadsFromIndex(int, int)’
jni/…/…/cocos2d/cocos/./2d/CCParticleBatchNode.cpp:465: error: undefined refer
ence to ‘cocos2d::TextureAtlas::moveQuadsFromIndex(int, int)’
jni/…/…/cocos2d/cocos/./2d/CCParticleBatchNode.cpp:469: error: undefined refer
ence to ‘cocos2d::TextureAtlas::increaseTotalQuadsWith(int)’
jni/…/…/cocos2d/cocos/./2d/CCParticleBatchNode.cpp:291: error: undefined refer
ence to ‘cocos2d::TextureAtlas::moveQuadsFromIndex(int, int, int)’
jni/…/…/cocos2d/cocos/./2d/CCParticleBatchNode.cpp:379: error: undefined refer
ence to ‘cocos2d::TextureAtlas::removeQuadsAtIndex(int, int)’
jni/…/…/cocos2d/cocos/./2d/CCParticleBatchNode.cpp:382: error: undefined refer
ence to ‘cocos2d::TextureAtlas::fillWithEmptyQuadsFromIndex(int, int)’
jni/…/…/cocos2d/cocos/./2d/CCParticleBatchNode.cpp:433: error: undefined refer
ence to ‘cocos2d::TextureAtlas::resizeCapacity(int)’
jni/…/…/cocos2d/cocos/./2d/CCParticleExamples.cpp:52: error: undefined referen
ce to ‘cocos2d::Image::initWithImageData(unsigned char const*, int)’
jni/…/…/cocos2d/cocos/./2d/CCParticleSystem.cpp:403: error: undefined referenc
e to ‘cocos2d::ZipUtils::inflateMemory(unsigned char*, int, unsigned char**)’
jni/…/…/cocos2d/cocos/./2d/CCParticleSystem.cpp:409: error: undefined referenc
e to ‘cocos2d::Image::initWithImageData(unsigned char const*, int)’
jni/…/…/cocos2d/cocos/./2d/CCParticleSystemQuad.cpp:377: error: undefined refe
rence to ‘cocos2d::QuadCommand::init(float, unsigned int, cocos2d::GLProgramStat
e*, cocos2d::BlendFunc, cocos2d::V3F_C4B_T2F_Quad*, int, cocos2d::Mat4 const&)’
jni/…/…/cocos2d/cocos/./2d/CCRenderTexture.cpp:526: error: undefined reference
to ‘cocos2d::Image::initWithRawData(unsigned char const*, int, int, int, int, b
ool)’
jni/…/…/cocos2d/cocos/./2d/CCRenderTexture.cpp:530: error: undefined reference
to ‘cocos2d::Image::initWithRawData(unsigned char const*, int, int, int, int, b
ool)’
jni/…/…/cocos2d/cocos/./2d/CCSprite.cpp:336: error: undefined reference to ‘co
cos2d::Image::initWithRawData(unsigned char const*, int, int, int, int, bool)’
jni/…/…/cocos2d/cocos/./2d/CCSprite.cpp:568: error: undefined reference to ‘co
cos2d::TextureAtlas::updateQuad(cocos2d::V3F_C4B_T2F_Quad*, int)’
jni/…/…/cocos2d/cocos/./2d/CCSprite.cpp:595: error: undefined reference to ‘co
cos2d::QuadCommand::init(float, unsigned int, cocos2d::GLProgramState*, cocos2d:
:BlendFunc, cocos2d::V3F_C4B_T2F_Quad*, int, cocos2d::Mat4 const&)’
jni/…/…/cocos2d/cocos/./2d/CCSprite.cpp:913: error: undefined reference to ‘co
cos2d::TextureAtlas::updateQuad(cocos2d::V3F_C4B_T2F_Quad*, int)’
jni/…/…/cocos2d/cocos/./2d/CCSpriteBatchNode.cpp:99: error: undefined referenc
e to ‘cocos2d::TextureAtlas::initWithTexture(cocos2d::Texture2D*, int)’
jni/…/…/cocos2d/cocos/./2d/CCSpriteBatchNode.cpp:548: error: undefined referen
ce to ‘cocos2d::TextureAtlas::insertQuad(cocos2d::V3F_C4B_T2F_Quad*, int)’
jni/…/…/cocos2d/cocos/./2d/CCSpriteBatchNode.cpp:560: error: undefined referen
ce to ‘cocos2d::TextureAtlas::removeQuadAtIndex(int)’
jni/…/…/cocos2d/cocos/./2d/CCSpriteBatchNode.cpp:405: error: undefined referen
ce to ‘cocos2d::TextureAtlas::resizeCapacity(int)’
jni/…/…/cocos2d/cocos/./2d/CCSpriteBatchNode.cpp:639: error: undefined referen
ce to ‘cocos2d::TextureAtlas::insertQuad(cocos2d::V3F_C4B_T2F_Quad*, int)’
jni/…/…/cocos2d/cocos/./2d/CCTMXLayer.cpp:91: error: undefined reference to ‘c
ocos2d::ccCArrayNew(int)’
jni/…/…/cocos2d/cocos/./2d/CCTMXLayer.cpp:448: error: undefined reference to ’
cocos2d::ccCArrayInsertValueAtIndex(cocos2d::_ccCArray*, void*, int)’
jni/…/…/cocos2d/cocos/./2d/CCTMXLayer.cpp:384: error: undefined reference to ’
cocos2d::ccCArrayInsertValueAtIndex(cocos2d::_ccCArray*, void*, int)’
jni/…/…/cocos2d/cocos/./2d/CCTMXLayer.cpp:585: error: undefined reference to ’
cocos2d::ccCArrayRemoveValueAtIndex(cocos2d::_ccCArray*, int)’
jni/…/…/cocos2d/cocos/./2d/CCTMXLayer.cpp:595: error: undefined reference to ’
cocos2d::TextureAtlas::removeQuadAtIndex(int)’
jni/…/…/cocos2d/cocos/./2d/CCTMXLayer.cpp:565: error: undefined reference to ’
cocos2d::ccCArrayRemoveValueAtIndex(cocos2d::_ccCArray*, int)’
jni/…/…/cocos2d/cocos/./2d/CCTMXXMLParser.cpp:646: error: undefined reference
to ‘cocos2d::ZipUtils::inflateMemoryWithHint(unsigned char*, int, unsigned char*
, int)’
jni/…/…/cocos2d/cocos/./2d/CCTileMapAtlas.cpp:226: error: undefined reference
to ‘cocos2d::TextureAtlas::increaseTotalQuadsWith(int)’
jni/…/…/cocos2d/cocos/./3d/CCBundle3D.cpp:451: error: undefined reference to ’
cocos2d::BundleReader::init(char
, int)’
jni/…/…/cocos2d/cocos/./3d/CCBundle3D.cpp:456: error: undefined reference to ’
cocos2d::BundleReader::read(void*, int, int)’
jni/…/…/cocos2d/cocos/./3d/CCBundle3D.cpp:465: error: undefined reference to ’
cocos2d::BundleReader::read(void*, int, int)’
jni/…/…/cocos2d/cocos/./3d/CCBundle3D.cpp:484: error: undefined reference to ’
cocos2d::BundleReader::read(void*, int, int)’
jni/…/…/cocos2d/cocos/./3d/CCBundle3D.cpp:497: error: undefined reference to ’
cocos2d::BundleReader::read(void*, int, int)’
clang++.exe: error: linker command failed with exit code 1 (use -v to see invoca
tion)
make.exe: *** Error 1
make.exe: Leaving directory `E:/Mycode/cocos2d-x-3.2/xxlgame/MyCppGame/proj.andr
oid’
Traceback (most recent call last):
File “E:\Mycode\cocos2d-x-3.2\xxlgame\MyCppGame\proj.android\build_native.py”,
line 159, in
build(opts.ndk_build_param,opts.android_platform,opts.build_mode)
File “E:\Mycode\cocos2d-x-3.2\xxlgame\MyCppGame\proj.android\build_native.py”,
line 146, in build
do_build(cocos_root, ndk_root, app_android_root,ndk_build_param,sdk_root,and
roid_platform,build_mode)
File “E:\Mycode\cocos2d-x-3.2\xxlgame\MyCppGame\proj.android\build_native.py”,
line 82, in do_build
raise Exception(“Build dynamic library for project " + app_android_root +
" ] fails!”)
Exception: Build dynamic library for project E:\Mycode\cocos2d-x-3.2\xxlgame\M
yCppGame\proj.android ] fails!