问题描述
我正在尝试为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
合并了gsl
和cblas
.它对我来说很完美.要进行合并,您需要将mergelib
文件中的ar
和ranlib
分别更改为arm-linux-androideabi-ar
和arm-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
我希望它会有所帮助.
这篇关于有人为Androind编译了GSL吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!