我们刚刚更新到Xcode6,我们使用glkit框架构建应用程序时,在arm_neon.h中出现了很多错误。
在这里,arm_neon.h中的错误:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:69:24: Neon矢量大小必须为64位或128位/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:978:47: C-样式,从矢量'float16x4_t‘到不同大小/应用程序/xcode.app/Content/Developer的矢量'int64x1_t’。/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:1001:10: C-样式从标量'uint64_t‘(又称’无符号长‘)到不同大小的矢量'float16x4_t’从矢量'attribute((vector_size转换为C-样式(8 * size of ( signed Char)将char‘转到大小不同的/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:1032:51: C类型的矢量'float16x4_t’--从矢量'float16x4_t‘到大小不同的float16x4_t的矢量'int8x8_t’。:1297:10: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:1389:10:的前两个参数必须是向量,__builtin_shufflevector的前两个参数必须是向量/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:3120:10: C-样式的矢量'float16x4_t‘。对不同尺寸/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:3142:10: C型矢量'int8x8_t‘-从矢量'float16x4_t’到不同尺寸的矢量'int16x4_t‘从矢量'float16x4_’转换成矢量‘int16x4_t’。从t‘到不同大小的矢量’/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:3186:10: C‘类型的向量'int32x2_t’-从矢量'float16x4_t‘到不同大小的矢量'int64x1_t’-从矢量转换到矢量‘float16x4_t’。不同大小的/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:3230:10: C样式的矢量'uint8x8_t‘从矢量'float16x4_t’到不同大小的/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:3252:10: C-样式的矢量'uint16x4_t‘向量'float16x4_t‘到不同尺寸/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:3282:10: C风格的矢量'uint32x2_t’-从矢量'float16x4_t‘到不同尺寸的矢量'uint64x1_t’从矢量'int8x8_t‘到不同大小/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:3286:10: C的矢量'float16x4_t’--从矢量'int16x4_t‘到不同尺寸float16x4_t C的矢量'float16x4_t’从矢量‘/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include/arm_neon.h:3288:10:’到不同大小的矢量'float16x4_t‘的-style -从矢量'int64x1_t’到不同尺寸的矢量'float16x4_t‘
只有当我们试图在设备中构建它时,它才会在模拟器上构建得很好。
谢谢。
发布于 2015-01-17 06:57:57
我对此做了临时修复,直接编辑arm_neon.h,将__fp16更改为短数据类型。
编辑:
最终,我们发现我们的项目是将__fp16定义为其他导致问题的东西。
https://stackoverflow.com/questions/26172422
复制相似问题