Coder Social home page Coder Social logo

simonlynen / android_libs Goto Github PK

View Code? Open in Web Editor NEW
67.0 67.0 30.0 10.02 MB

some useful android libraries

C 69.81% C++ 22.46% Objective-C 0.33% Java 1.85% Shell 1.98% Perl 0.01% Assembly 0.05% Awk 0.01% Python 1.11% Fortran 2.36% CSS 0.03% Vim Script 0.01% Emacs Lisp 0.01%

android_libs's People

Contributors

simonlynen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android_libs's Issues

cannot build libcvd

fatal error cvd/jni/../installfiles/cvd/runnable_batch.h:8:22 tr1/memory no such file or directory
compilation terminated

Build clapack as shared library instead of static?

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

Index issue in lapack *gemm

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?

Undefined modules tmglib

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

err for f2c.h

$ $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

Undefined reference to zgemv_. Defined reference to zgemv_f2c.

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>:

  • libblas.a
  • libclapack.a
  • libf2c.a
  • liblapack.a

...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?

libclapack.a Error

$ $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?

jni/clapack/SRC/dpotrf.c:172: error: undefined reference to 'f2c_dsyrk'

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.