Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How can I solve this error while making OpenCV?

I am trying to compile OpenCV but I get this error almost at the end of running make.

[ 93%] Built target pch_Generate_opencv_videostab
[ 96%] Built target opencv_videostab
Linking CXX shared library ../../lib/cv2.so
/usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpython2.7.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [lib/cv2.so] 오류 1
make[1]: *** [modules/python2/CMakeFiles/opencv_python2.dir/all] 오류 2
make: *** [all] 오류 2

OS: CentOS 6.6