[问答交流] 客户端编译错误MathUtilNeon::addMatrix(const float* m, float scalar, fl..

[复制链接]
作者
智能圆方   发布于2022-8-13 23:34:30
问答交流
适用版本: 8.0.0.1 
[armeabi-v7a] Compile++ arm  : cc_core <= CCGeometry.cpp
In file included from E:/N2n1GAME/Client/frameworks/runtime-src/proj.android-studio/../../
cocos2d-x/cocos/math/MathUtil.cpp:63:0:
E:/N2n1GAME/Client/frameworks/runtime-src/proj.android-studio/../../cocos2d-x/cocos/math/M
athUtilNeon.inl:46:79: error: attributes are not allowed on a function-definition
inline void MathUtilNeon::addMatrix(const float* m, float scalar, float* dst) __attribute
__((optnone))
                                                                               ^
E:/N2n1GAME/Client/frameworks/runtime-src/proj.android-studio/../../cocos2d-x/cocos/math/M
athUtilNeon.inl:69:83: error: attributes are not allowed on a function-definition
inline void MathUtilNeon::addMatrix(const float* m1, const float* m2, float* dst) __attri
bute__((optnone))
                                                                                   ^
E:/N2n1GAME/Client/frameworks/runtime-src/proj.android-studio/../../cocos2d-x/cocos/math/M
athUtilNeon.inl:90:88: error: attributes are not allowed on a function-definition
inline void MathUtilNeon::subtractMatrix(const float* m1, const float* m2, float* dst) __
attribute__((optnone))
                                                                                        ^
E:/N2n1GAME/Client/frameworks/runtime-src/proj.android-studio/../../cocos2d-x/cocos/math/M
athUtilNeon.inl:111:84: error: attributes are not allowed on a function-definition
inline void MathUtilNeon::multiplyMatrix(const float* m, float scalar, float* dst) __attr
ibute__((optnone))
                                                                                    ^
E:/N2n1GAME/Client/frameworks/runtime-src/proj.android-studio/../../cocos2d-x/cocos/math/M
athUtilNeon.inl:131:88: error: attributes are not allowed on a function-definition
inline void MathUtilNeon::multiplyMatrix(const float* m1, const float* m2, float* dst) __
attribute__((optnone))
                                                                                        ^
E:/N2n1GAME/Client/frameworks/runtime-src/proj.android-studio/../../cocos2d-x/cocos/math/M
athUtilNeon.inl:168:68: error: attributes are not allowed on a function-definition
inline void MathUtilNeon::negateMatrix(const float* m, float* dst) __attribute__((optnone
))
                                                                    ^
E:/N2n1GAME/Client/frameworks/runtime-src/proj.android-studio/../../cocos2d-x/cocos/math/M
athUtilNeon.inl:187:71: error: attributes are not allowed on a function-definition
inline void MathUtilNeon::transposeMatrix(const float* m, float* dst) __attribute__((optn
one))
                                                                       ^
E:/N2n1GAME/Client/frameworks/runtime-src/proj.android-studio/../../cocos2d-x/cocos/math/M
athUtilNeon.inl:203:105: error: attributes are not allowed on a function-definition
inline void MathUtilNeon::transformVec4(const float* m, float x, float y, float z, float
w, float* dst) __attribute__((optnone))

               ^
[armeabi-v7a] Compile++ arm  : cc_core <= CCVertex.cpp
In file included from E:/N2n1GAME/Client/frameworks/runtime-src/proj.android-studio/../../
cocos2d-x/cocos/math/MathUtil.cpp:63:0:
E:/N2n1GAME/Client/frameworks/runtime-src/proj.android-studio/../../cocos2d-x/cocos/math/M
athUtilNeon.inl:226:85: error: attributes are not allowed on a function-definition
inline void MathUtilNeon::transformVec4(const float* m, const float* v, float* dst) __att
ribute__((optnone))
                                                                                     ^
E:/N2n1GAME/Client/frameworks/runtime-src/proj.android-studio/../../cocos2d-x/cocos/math/M
athUtilNeon.inl:246:83: error: attributes are not allowed on a function-definition
inline void MathUtilNeon::crossVec3(const float* v1, const float* v2, float* dst) __attri
bute__((optnone))
                                                                                   ^
make.exe: *** [obj/local/armeabi-v7a/objs/cc_core/math/MathUtil.o] Error 1
make.exe: *** Waiting for unfinished jobs....
make.exe: Leaving directory `E:/N2n1GAME/Client/frameworks/runtime-src/proj.android-studio
/app'
执行命令出错,返回值:2。

使用命令编译的时候出现这个问题帮忙看一下!
回复

使用道具 举报

超哥    回复于08月14日 12:47
你用的最初客户端源代码编译的吧,最新版本没这个问题!
下面是补丁根据说明使用即可!

游客,该附件需要登录后下载! 登录 下载

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 创建账号

本版积分规则

Archiver|小黑屋|( 冀ICP备2021005463号 )

GMT+8, 2024-4-24 06:10 , Processed in 0.126356 second(s), 29 queries , Gzip On.

N2N1 It社区 n2n1.cn

Copyright © 2001-2021,MeiCheng.

快速回复 返回顶部 返回列表