Error compiling opencv 3 with python 3.4 support

asked 2015-05-21 01:14:14 -0600

dez gravatar image

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/] 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?

edit retag flag offensive close merge delete


Having the same issue on Ubuntu 14.04. Any luck resolving this??

apodemus gravatar imageapodemus ( 2015-05-29 06:18:56 -0600 )edit

should put error in a code block so is readable

hoju gravatar imagehoju ( 2015-06-06 23:43:40 -0600 )edit