Error compiling opencv 3 with python 3.4 support
Hi! I am trying to compile opencv3. I got the last sources from the git repo. I got the following error on the last step of the process : usr/local/lib/libpython3.4m.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libpython3.4m.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status make2: * [lib/python3/cv2.cpython-34m.so] Error 1 make1: [modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2 make: ** [all] Error 2 What do i have to recompile with the -fPIC, python3.4? Is -fpic a cmake option or a make install option?
Having the same issue on Ubuntu 14.04. Any luck resolving this??
should put error in a code block so is readable