Xcode 5.0.2 升级到5.1的相关问题(64bit)

 

1、Redefinition of ‘__ccContentScaleFactor’ with a different type: ‘CGFloat’ (aka ‘double’) vs ‘float’

解决:
在cocos2d/Platforms/iOS/CCDirectorIOS.h 
把该行:
extern CGFloat __ccContentScaleFactor;
替换为:
extern float __ccContentScaleFactor;
在.h和.m文件中都要改。
 
2、libs/kazmath/src/neon_matrix_impl.c 文件出错:
error: unknown register name 'q0' in asm : "memory", "q0", "q1", "q2", "q3", "q8", "q9", "q10", "q11", "q12", "q13", "q14", "q15"
error: unknown register name 'q0' in asm : "memory", "q0", "q1", "q8", "q9", "q10", "q11" 
  "_NEON_Matrix4Mul", referenced from:
解决:

if defined(ARM_NEON)

替换为:

if defined(_ARM_ARCH_7)

在 neon_matrix_impl.c  和 mat4.c 2个文件中都要替换。
 

发表评论

*

* 绝不会泄露


Design By Inzaghi | 京ICP备16047555号-1