Ask Your Question

cacyss0807's profile - activity

2016-02-11 15:54:50 -0600 received badge  Student (source)
2015-08-03 03:35:50 -0600 commented question How can I solve this error while making OpenCV?

It does work if I remove it but I do need python wrappers. What can I do?

2015-07-29 21:07:47 -0600 commented question How can I solve this error while making OpenCV?

I first tried to add the -fPIC flag to /cmake/OpenCVCompilerOptions.cmake according to this link, but I still got the same errors. I then, disable the python wrappers as @mshabunin suggested and it finished the compilation without that error.

The final config file looks something like this.

2015-07-29 03:12:42 -0600 commented question How can I solve this error while making OpenCV?

Pardon my ignorance but regarding to OpenCV case, which file exactly should I add this flag? I created a release directory and runed cmake from there. You told me to add the -fPIC before cmake, but to which file?

2015-07-29 02:38:03 -0600 asked a question 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