Hi,
While compiling am getting the following error:
command used : make -j4
AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so.0.17.0
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libturbojpeg.a(libturbojpeg_la-turbojpeg.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libturbojpeg.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:600: recipe for target '.build_release/lib/libcaffe.so.0.17.0' failed
make: ** [.build_release/lib/libcaffe.so.0.17.0] Error 1
make: Waiting for unfinished jobs....**
Hi, While compiling am getting the following error: command used : make -j4
AR -o .build_release/lib/libcaffe.a LD -o .build_release/lib/libcaffe.so.0.17.0 /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libturbojpeg.a(libturbojpeg_la-turbojpeg.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libturbojpeg.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status Makefile:600: recipe for target '.build_release/lib/libcaffe.so.0.17.0' failed make: ** [.build_release/lib/libcaffe.so.0.17.0] Error 1 make: Waiting for unfinished jobs....**
Note: while compiling with cmake its fine.
Kindly share your comments to fix it. Thanks.