Search code examples
cocos2d-iphone

error when creating an archive of my cocos2d app


I'm using cocos2d-iphone (develop-v2) and xcode 5 and have this error when trying to archive my app: (and not when I compile it)

libs/kazmath/src/neon_matrix_impl.c:64:15:

error: unknown register name 'q0' in asm
         : "memory", "q0", "q1", "q2", "q3", "q8", "q9", "q10", "q11", "q12", "q13", "q14", "q15" //clobber
                     ^
libs/kazmath/src/neon_matrix_impl.c:93:15: error: unknown register name 'q0' in asm
         : "memory", "q0", "q1", "q8", "q9", "q10", "q11" //clobber
                     ^
2 errors generated.

How to fix that?


Solution

  • I had to replace:

    #if defined(__ARM_NEON__)
    

    by:

    #if defined(_ARM_ARCH_7)
    

    in the file neon_matrix_impl.c.