Skip to content

Compiling OpenBLAS for Android #2005

Closed
Closed
@santo4ul

Description

@santo4ul

Hi,

Im using OpenBLAS version v0.3.5.

I tried following instructions from here. I also tried followed discussion from #804. All these seemed quite complicated to build libopenblas.so for Android. I got errors like, "crtbegin_so.o not found", etc.

Later I built libopenblas.so using the below simple commands, and libopenblas.so was built like a charm.

Step 1: Install standalone toolchain as given here (Choose your API level accordingly)
Step 2: export PATH=$PATH:/your/toolchain_dir/bin/
Step 3: Make OpenBLAS using the below make command
make TARGET=ARMV8 ONLY_CBLAS=1 AR=aarch64-linux-android-ar CC="aarch64-linux-android-clang" HOSTCC=gcc -j4

No errors while building libopenblas.so.

I believe this is the right way to build libopenblas.so for Android. Request you to review the above commans and upate the Android build Wiki instructions accordingly.

Thanks,
San

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions