Skip to content

Compile OpenBLAS for Android problem #804

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Mar 15, 2016 · 2 comments
Closed

Compile OpenBLAS for Android problem #804

ghost opened this issue Mar 15, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 15, 2016

Hi, xianyi,

I am using Ubuntu to compile OpenBLAS for Android platform, and follow exactly the command:

export PATH=/tmp/my-android-toolchain/bin:$PATH

make HOSTCC=gcc CC=arm-linux-androideabi-gcc NO_LAPACK=1 TARGET=ARMV7

by changing the right toolchain path. But make complains that it cannot find "stdio.h" which I think is located in NDK Android platform folder, in my case, is android-ndk-r10e/platforms/android-19/arch-arm/usr.

Could you tell me how to modify the Makefile to let it find the right Android platform dependency? It is too complicated for me to do it myself. Thanks a lot.

@ghost
Copy link
Author

ghost commented Mar 15, 2016

I think I have found the answer [1]. Do not know how to delete this issue. Sorry.

[1] http://developer.android.com/intl/zh-cn/ndk/guides/standalone_toolchain.html

@santo4ul
Copy link

santo4ul commented Feb 7, 2019

I was able to build libopenblas.so for Android using the below simple commands,

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

Thanks,
San

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants