有没有人为安卓编译过GSL? [英] Did anyone compiled GSL for androind?

查看:37
本文介绍了有没有人为安卓编译过GSL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为 android 编译 gsl 但它给出了错误.我查看了他们的网站,他们说

I am trying to compile gsl for android but it is giving error. I checked on their website and they said that

据报道可以在以下其他平台上编译,

It has been reported to compile on the following other platforms,

SunOS 4.1.3 & Solaris 2.x (Sparc)
Alpha GNU/Linux, gcc
HP-UX 9/10/11, PA-RISC, gcc/cc
IRIX 6.5, gcc
m68k NeXTSTEP, gcc
Compaq Alpha Tru64 Unix, gcc
FreeBSD, OpenBSD & NetBSD, gcc
Cygwin
Apple Darwin 5.4
Hitachi SR8000 Super Technical Server, cc

我想为 armeabi 编译 gsl.以前有人这样做过吗?请提出一些解决方案.

I want to compile gsl for armeabi. Did anyone did this before? Please suggest some solutions.

推荐答案

我编译成功.我编译了static 库,然后使用mergelib 来合并gslcblas.它非常适合我.对于合并,您需要将 mergelib 文件中的 arranlib 更改为 arm-linux-androideabi-ararm-linux-androideabi-ranlib 分别.编译GSL,按照这个方法设置path.

I compiled Successfully. I compiled static libraries and then used the mergelib to merge gsl and cblas. It worked perfectly for me. For merging you need to change the ar and ranlib in the mergelib file to arm-linux-androideabi-ar and arm-linux-androideabi-ranlib respectively. For compiling GSL, follow this method to set the path.

$NDKROOT/build/tools/make-standalone-toolchain.sh --platform=android-21 --install-dir=$NDKROOT/android_armeabi   

export CC="$NDKROOT/android_armeabi/bin/arm-linux-androideabi-gcc --sysroot=$NDKROOT/android_armeabi/sysroot"
export CXX="$NDKROOT/android_armeabi/bin/arm-linux-androideabi-g++ --sysroot=$NDKROOT/android_armeabi/sysroot"
export AR="$NDKROOT/android_armeabi/bin/arm-linux-androideabi-ar"
export SYSROOT="$NDKROOT/android_armeabi/sysroot"
export PATH="$NDKROOT/android_armeabi/bin":$PATH

./configure --host=arm-linux-androideabi

我希望它会有所帮助.

这篇关于有没有人为安卓编译过GSL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆