I am able to compile Bullet successfully using either CMake or premake for iOS when enabled armv7 and armv7s architectures. When adding arm64 architecture there is a compiler error(s), the error is related to inline assembly in LinearMath sub-project:
Code: Select all
src/LinearMath/btVector3.cpp:1465:24: error: identifier or immediate expression expected
float32x4_t vvec = vld1q_f32_aligned_postincrement( vec );
^
src/LinearMath/btVector3.cpp:887:73: note: expanded from macro 'vld1q_f32_aligned_postincrement'
#define vld1q_f32_aligned_postincrement( _ptr ) ({ float32x4_t _r; asm( "vld1.f32 {%0}, [%1, :128]!\n" : "=w" (_r), "+r" (_ptr) ); /*return*/ _r; })
^
<inline asm>:1:23: note: instantiated into assembly here
vld1.f32 {v0}, [x0, :128]!
Thanks.