mac编译cocos2d-x-3.2*的android工程报错

时间:2022-02-09 11:22:12

mac编译cocos2d-x-3.2*的android工程。。。。。。cocos巨坑啊。。。。换了几个ndk版本都没用。。。。用下面这篇文章的方式解决了

参考文章:

http://blog.csdn.net/wk3368/article/details/37829017

http://www.cocoachina.com/bbs/read.php?tid=215931


Assertion failed: (0 <= N && N < static_cast<int>(m_columnToByte.size() - 1)), function startOfNextColumn, file /Volumes/data/ndk-toolchain/src/llvm-3.4/llvm/tools/clang/lib/Frontend/TextDiagnostic.cpp, line 294.
2 warnings generated.
0  clang++                  0x000000010239cf05 llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) + 629
1  clang++                  0x000000010239db3b llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) + 3755
2  libsystem_platform.dylib 0x00007fff9441d5aa _sigtramp + 26
3  libsystem_platform.dylib 000000000000000000 _sigtramp + 1807624816
4  clang++                  0x000000010239ce5e llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) + 462
5  clang++                  0x000000010239cea5 llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) + 533
6  clang++                  0x00000001000c9b0a std::vector<llvm::BitstreamWriter::Block, std::allocator<llvm::BitstreamWriter::Block> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::BitstreamWriter::Block*, std::vector<llvm::BitstreamWriter::Block, std::allocator<llvm::BitstreamWriter::Block> > >, llvm::BitstreamWriter::Block const&) + 23690
7  clang++                  0x00000001000cabbd std::vector<llvm::BitstreamWriter::Block, std::allocator<llvm::BitstreamWriter::Block> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::BitstreamWriter::Block*, std::vector<llvm::BitstreamWriter::Block, std::allocator<llvm::BitstreamWriter::Bl

Traceback (most recent call last):
  File "build_native.py", line 159, in <module>
    build(opts.ndk_build_param,opts.android_platform,opts.build_mode)
  File "build_native.py", line 146, in build
    do_build(cocos_root, ndk_root, app_android_root,ndk_build_param,sdk_root,android_platform,build_mode)
  File "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 [ /Users/zhaoming/Documents/workspace/dmy/gameJumpWheel/proj.android ] fails!