simonlynen / android_libs Goto Github PK
View Code? Open in Web Editor NEWsome useful android libraries
some useful android libraries
fatal error cvd/jni/../installfiles/cvd/runnable_batch.h:8:22 tr1/memory no such file or directory
compilation terminated
See title.
In Android.mk, I tried replacing uncommenting these lines on the bottom of the file:
include $(CLEAR_VARS)
LOCAL_MODULE:= testlapack
LOCAL_SRC_FILES:= testclapack.cpp
LOCAL_STATIC_LIBRARIES := lapack
include $(BUILD_SHARED_LIBRARY)
But when executing ndk-build
, I get the error:
/home/djacobs/Android/Sdk/ndk/23.1.7779620/build/core/build-binary.mk:643: Android NDK: Module lapack depends on undefined modules: tmglib
/home/djacobs/Android/Sdk/ndk/23.1.7779620/build/core/build-binary.mk:656: *** Android NDK: Note that old versions of ndk-build silently ignored this error case. If your project worked on those versions, the missing libraries were not needed and you can remove those dependencies from the module to fix your build. Alternatively, set APP_ALLOW_MISSING_DEPS=true to allow missing dependencies. . Stop.
If I add APP_ALLOW_MISSING_DEPS := true
to Android.mk, it builds liblapack.so, but I still have no libclapack.so
Thanks for your helpful library! I noticed that the Fortran port of the gemm functions weren't working as I expected though. Fortran has column-major ordering where as C has row-major ordering, therefore the calls won't work correctly unless the lda and ldb values passed into the function are the number of rows (instead of the number of columns as is more typical, I think). Is this the intention, or is this a bug?
Hi,
I am trying to build this project using Android Studio 2.3.3 on Mac Os. But I am getting following error: Module testlapack depends on undefined modules: tmglib
$ $NDK/ndk-build
Compile thumb : clapack <= sgbbrd.c
In file included from F:/rtkgps/jni/simonlynen_android_libs/lapack/jni/clapack/SRC/sgbbrd.c:13:0:
F:/rtkgps/jni/simonlynen_android_libs/lapack/jni/clapack/SRC/f2c.h:1:1: error: expected identifier or '(' before '.' token
The header file lapack/jni/clapack/INCLUDE/clapack.h
declares functions zgemv_
etc., but are these routines defined?
When I include android_libs
in my Android project, indeed the following libraries get built in app/build/intermediates/ndkBuild/debug/obj/local/<architecture>
:
...but when I use nm
to examine the symbols they contain, none of them defines zgemv_
. I see that libblas.a
and libclapack.a
include the symbol f2c_zgemv
.
Indeed, when I try to build my Android project, the linker raises an error because zgemv_
is undefined. What am I to do, please?
$ $NDK/ndk-build
StaticLibrary : libclapack.a
make: execvp: /cygdrive/C/AndroidNDK/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/arm-linux-androideabi-ar: Argument list too long
/cygdrive/C/AndroidNDK/build/core/build-binary.mk:385: recipe for target `obj/local/armeabi-v7a/libclapack.a' failed
make: *** [obj/local/armeabi-v7a/libclapack.a] Error 127
Is that "..\RtkGps\jni\simonlynen_android_libs\lapack\jni\clapack\SRC\Config.mk" contain too much C files?
I compiled the lapack project, tried to use the libs in another project, and resulted in the following errors during linkage....
jni/clapack/SRC/dpotrf.c:172: error: undefined reference to 'f2c_dsyrk'
jni/clapack/SRC/dpotrf.c:184: error: undefined reference to 'f2c_dgemm'
jni/clapack/SRC/dpotrf.c:189: error: undefined reference to 'f2c_dtrsm'
jni/clapack/SRC/dpotrf.c:211: error: undefined reference to 'f2c_dsyrk'
jni/clapack/SRC/dpotrf.c:223: error: undefined reference to 'f2c_dgemm'
jni/clapack/SRC/dpotrf.c:227: error: undefined reference to 'f2c_dtrsm'
jni/clapack/SRC/zpotrf.c:173: error: undefined reference to 'f2c_zherk'
jni/clapack/SRC/zpotrf.c:186: error: undefined reference to 'f2c_zgemm'
jni/clapack/SRC/zpotrf.c:191: error: undefined reference to 'f2c_ztrsm'
jni/clapack/SRC/zpotrf.c:213: error: undefined reference to 'f2c_zherk'
jni/clapack/SRC/zpotrf.c:226: error: undefined reference to 'f2c_zgemm'
jni/clapack/SRC/zpotrf.c:230: error: undefined reference to 'f2c_ztrsm'
jni/clapack/SRC/dpotf2.c:157: error: undefined reference to 'f2c_ddot'
jni/clapack/SRC/dpotf2.c:171: error: undefined reference to 'f2c_dgemv'
jni/clapack/SRC/dpotf2.c:176: error: undefined reference to 'f2c_dscal'
jni/clapack/SRC/dpotf2.c:190: error: undefined reference to 'f2c_ddot'
jni/clapack/SRC/dpotf2.c:204: error: undefined reference to 'f2c_dgemv'
jni/clapack/SRC/dpotf2.c:209: error: undefined reference to 'f2c_dscal'
jni/clapack/SRC/zpotf2.c:159: error: undefined reference to 'f2c_zdotc'
jni/clapack/SRC/zpotf2.c:180: error: undefined reference to 'f2c_zgemv'
jni/clapack/SRC/zpotf2.c:187: error: undefined reference to 'f2c_zdscal'
jni/clapack/SRC/zpotf2.c:203: error: undefined reference to 'f2c_zdotc'
jni/clapack/SRC/zpotf2.c:223: error: undefined reference to 'f2c_zgemv'
jni/clapack/SRC/zpotf2.c:230: error: undefined reference to 'f2c_zdscal'
Any idea?
Hi Simon,
I am wondering if your CLAPACK can be compiled and linked with google's ScriptIntrinsicBLAS(BLAS implementation of RenderScript;https://developer.android.com/reference/android/renderscript/ScriptIntrinsicBLAS.html).
I am about to try it. If you have any advice or opinion, please let me know.
Regards,
Gus Doh
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.