I'm trying to install Caffe on Debian, but when i do make all
i get this error:
/usr/bin/ld: /usr/local/lib/libglog.a(logging.cc.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libglog.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status make: *** [.build_release/lib/libcaffe.so] Error 1
where should i add the -fPIC
flag?
I also read that it wasn't enough for gflags
.
Any suggestions?
CFLAGS
-like variable? You might also want to report to them that their build is broken (because it is) and that they should be handling this themselves.CFLAGS
glog
library. (I assume you compiled that yourself.) You might need to recompile that library with-fPIC
.glog
andgflags
with-fPIC
thank you :)glog
people.