使用superLU安装Armadillo 9.2

时间:2018-11-19 20:32:44

标签: c++ makefile cmake armadillo

我已经安装了armadillo 8(Ubuntu 18.04),但是我发现必须为稀疏矩阵安装带有superLU的9.2版。我已经安装了superLU 5.2,但是在制作犰狳9时出现以下错误:

usr/bin/ld: /usr/local/lib/libsuperlu.a(util.c.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
CMakeFiles/armadillo.dir/build.make:98: recipe for target 'libarmadillo.so.9.200.4' failed
make[2]: *** [libarmadillo.so.9.200.4] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/armadillo.dir/all' failed
make[1]: *** [CMakeFiles/armadillo.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

该如何解决?

0 个答案:

没有答案