0

我有 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吗?以后稳定性会不会有问题?

4

1 回答 1

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 的支持有限(功能完整,但性能不同)。

于 2012-11-21T09:01:57.123 回答