OpenBLAS: Building for Android doesn't generate shared lib (.so)

I made a standalone NDK toolchain with Fortran support using the latest NDK (r14b) following these instructions: https://github.com/buffer51/android-gfortran

Using latest develop branch of OpenBLAS, followed this guide to build OpenBLAS with Fortran: https://github.com/xianyi/OpenBLAS/wiki/How-to-build-OpenBLAS-for-Android

The build itself seemingly goes fine (without error) but the install command says it can’t find the .so file - I checked, and it’s not generated for some reason (can’t find any .so files within the folders). So the install command only generates the header files and the static (.a) lib, but not the shared (.so) lib. Tried both arm and arm64, happens in both versions.

The relevant error message (when running the install command) :

Copying the shared library to /home/scrpn/blas/OpenBLAS/install/lib
install: cannot stat 'libopenblas_armv7p-r0.2.20.dev.so': No such file or directory
make[1]: *** [install] Error 1

Also attached build log. log.txt

Any ideas what’s wrong?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 41 (8 by maintainers)

Most upvoted comments

Looks as if your “make install” assumed NO_LAPACKE=1 for some reason (perhaps it did not find a fortran compiler if you omitted the FC= and other options from the build run ?). Try using all the options from the “make … all” on the “make … install” as well.