error when creating an archive of my cocos2d app
This is the error in kazmath if you just change in neon_matrix_impl.c only
Undefined symbols for architecture arm64:
"_NEON_Matrix4Mul", referenced from:
_kmMat4Multiply in libcocos2d-library.a(mat4.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You have to change ARM_NEON to ARMARCH_7 in two files:
- neon_matrix_impl.c
- mat4.c
In both files search for the #if and replace it.
#if defined(__ARM_NEON__)
With
#if defined(_ARM_ARCH_7)
64-bit should work fine after that.
I had to replace:
#if defined(__ARM_NEON__)
by:
#if defined(_ARM_ARCH_7)
in the file neon_matrix_impl.c
.