cocos2dx旧版本支持arm64修改

时间:2024-08-15 23:03:26

修改的版本是cocos2dx.2.2

1.在neon_matrix_impl.c中修改

#if defined(__ARM_NEON__)
为 #if defined(_ARM_ARCH_7)

2.在mat4.c中修改

#if defined(__ARM_NEON__)
为 #if defined(_ARM_ARCH_7)

3. "__curl_rule_01__ "  下载 libcurl for iOS 7.36.0
找到cocos2dx/platform/third_party/ios/
替换 curl/libraries/libcurl.a
替换curl文件夹下的所有.h文件

4."Cast from pointer to smaller type 'int' loses information"
(int)转变为(long)   注:此方法稍微有点暴力,转换后有类型警告,不过不影响程序运行

5.把cocos2dx 3.0中的libwebp.a 替换 cocos2dx/platform/third_party/ios/libraries/libwebp.a