jblas android错误

时间:2012-11-20 16:33:33

标签: java android android-ndk

我有jblas 1.0.2并且有这个错误:

The library 'jblas-1.2.0.jar' contains native libraries that will not run on the device.
[2012-11-20 17:37:36 - com.hexar.filebroswer.activities.FileBroswerActivity] Additionally some of those libraries will interfer with the installation of the application because of their location in lib/
[2012-11-20 17:37:36 - com.hexar.filebroswer.activities.FileBroswerActivity] lib/ is reserved for NDK libraries.
[2012-11-20 17:37:36 - com.hexar.filebroswer.activities.FileBroswerActivity] The following libraries were found:
[2012-11-20 17:37:36 - com.hexar.filebroswer.activities.FileBroswerActivity]  - lib/static/Mac OS X/x86_64/libjblas_arch_flavor.jnilib
[2012-11-20 17:37:36 - com.hexar.filebroswer.activities.FileBroswerActivity]  - lib/static/Mac OS X/x86_64/sse3/libjblas.jnilib
[2012-11-20 17:37:36 - com.hexar.filebroswer.activities.FileBroswerActivity]  - lib/static/Linux/i386/sse2/libjblas.so
[2012-11-20 17:37:36 - com.hexar.filebroswer.activities.FileBroswerActivity]  - lib/static/Linux/i386/sse3/libjblas.so
[2012-11-20 17:37:36 - com.hexar.filebroswer.activities.FileBroswerActivity]  - lib/static/Linux/i386/libjblas_arch_flavor.so
[2012-11-20 17:37:36 - com.hexar.filebroswer.activities.FileBroswerActivity]  - lib/static/Linux/amd64/sse2/libjblas.so
[2012-11-20 17:37:36 - com.hexar.filebroswer.activities.FileBroswerActivity]  - lib/static/Linux/amd64/sse3/libjblas.so
[2012-11-20 17:37:36 - com.hexar.filebroswer.activities.FileBroswerActivity]  - lib/static/Linux/amd64/libjblas_arch_flavor.so
[2012-11-20 17:37:36 - com.hexar.filebroswer.activities.FileBroswerActivity]  - lib/dynamic/Linux/amd64/sse3/libjblas.so
[2012-11-20 17:37:36 - com.hexar.filebroswer.activities.FileBroswerActivity]  - lib/dynamic/Linux/amd64/libjblas_arch_flavor.so
[2012-11-20 17:37:36 - com.hexar.filebroswer.activities.FileBroswerActivity] Unknown error: org.eclipse.core.runtime.OperationCanceledException

我只使用FloatMatrix和特征向量类。

我必须安装NDK吗?未来稳定会有问题吗?

1 个答案:

答案 0 :(得分:0)

看起来您使用的jblas版本不是为Android编译的。看一下错误抱怨的不同路径:它们都被命名为“Mac OS X / something”,或“Linux / i386 / something”等......

快速浏览一下jblas.org后,目前显然还没有适用于Android的预编译版本:

  

存在预先打包的jar文件,其中包含预构建的本机库。目前,涵盖了Linux(i386 / amd64),Mac OS X(i386 / x86_64)和Windows(i386)。目前,对Windows上的amd64只有有限的支持(完整功能,但性能不一样)。