如何使用 NDK-build 将 MLPack 库构建为静态库?
我可以使用 NDK-Build 构建一个像 mlpack 这样只有 .hpp 文件作为共享库的库吗? 我正在尝试使用 ndk-build 从 linux 为 android arm64 和armeabi-v7a 构建一个 API。但我的 API 依赖于 mlpack。但我无法使用我在开发环境中构建的 libmlpack.so,因为它是在我的桌面 Linux 环境中构建的。
ld: error: ~/jni/lib/libmlpack.so is incompatible with aarch64linux
所以,我想知道是否可以使用库的源文件为arm64构建libmlpack.so。以下是 mlpack 的 git 存储库:
https://github.com/mlpack/mlpack
能够使用以下 git repo 为 android 构建 boost 库,这似乎工作正常。
Can I build a library like mlpack which has only .hpp file as a shared library using NDK-Build?
I am trying to build an API using ndk-build from linux for android arm64 and armeabi-v7a. But my API has a dependency on mlpack. But I can't use the libmlpack.so that I have built in my development environment as it was built in my desktop linux environment.
ld: error: ~/jni/lib/libmlpack.so is incompatible with aarch64linux
So, I was wondering if I could build the libmlpack.so for arm64 by using the library's source files. The following is the git repo for mlpack:
https://github.com/mlpack/mlpack
I was able to build boost library for android using the following git repo which seems to work fine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论