jblas-project / jblas

Linear Algebra for Java
http://jblas.org
BSD 3-Clause "New" or "Revised" License
590 stars 149 forks source link

java.lang.UnsatisfiedLinkError: #83

Closed ghost closed 4 years ago

ghost commented 7 years ago

java.lang.UnsatisfiedLinkError: No implementation found for void org.jblas.NativeBlas.sgemm(char, char, int, int, int, float, float[], int, int, float[], int, int, float, float[], int, int) (tried Java_org_jblas_NativeBlas_sgemm and Java_org_jblas_NativeBlas_sgemm__CCIIIF_3FII_3FIIF_3FII)

i compiled jblas in android and got this error on mmul operation. How to fix this error?

mikiobraun commented 4 years ago

Hey ghost, four years later, sorry for the late answer...

jblas depends on native libraries, unless you link against an Android version of BLAS and LAPACK, it probably won't work.

I recently did a release to 1.2.5 which now uses openblas, and that seems to compile for Android, so you could give that a try. https://github.com/xianyi/OpenBLAS/wiki/How-to-build-OpenBLAS-for-Android.

Closing the issue now (mostly because it is so old), feel free to reopen if it still matters.