Skip to content

Box2D not building on armeabi-v7a #813

@bostick

Description

@bostick

I am using Box2D for an Android project and with the latest commit on main branch (b864f53), I get an error when building on armeabi-v7a.

/Users/brenton/development/github/raylib-experiment/raymob/app/.cxx/Debug/q5f4v4e5/armeabi-v7a/_deps/box2d-src/src/contact_solver.c:670:9: error: call to undeclared function 'vzip1q_f32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        return vzip1q_f32( a, b );
               ^
/Users/brenton/development/github/raylib-experiment/raymob/app/.cxx/Debug/q5f4v4e5/armeabi-v7a/_deps/box2d-src/src/contact_solver.c:670:9: note: did you mean 'vzipq_f32'?
/Users/brenton/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/lib/clang/17/include/arm_neon.h:32079:20: note: 'vzipq_f32' declared here
__ai float32x4x2_t vzipq_f32(float32x4_t __p0, float32x4_t __p1) {
                   ^

vzip1q_f32 is A64 and not available on armeabi-v7a.

armeabi-v7a is a supported ABI:
https://developer.android.com/ndk/guides/abis

But this is not specific to Android, but this is the easiest way to demonstrate the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions