Ask Your Question

RezaOptic's profile - activity

2016-11-06 03:12:12 -0600 received badge  Student (source)
2016-11-01 02:50:04 -0600 commented question Problem with make

ops sorry :) i hope anybody can help me :)

2016-11-01 02:40:18 -0600 commented question Problem with make

i add text version but is not have a good vision

2016-11-01 02:38:26 -0600 received badge  Editor (source)
2016-11-01 01:56:53 -0600 asked a question Problem with make

hi i use this cmake

 cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D INSTALL_C_EXAMPLES=OFF \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \ -D BUILD_EXAMPLES=ON ..



 Python 2:
--     Interpreter:                 /usr/bin/python2.7 (ver 2.7.12)
-- 
>--   Python 3:
--     Interpreter:                 /usr/local/bin/python3 (ver 3.5.2)
--     Libraries:                   /usr/local/lib/libpython3.5m.a (ver 3.5.2)
--     numpy:                       /home/rezaoptic/.local/lib/python3.5/site-packages/numpy/core/include (ver 1.11.2)
--     packages path:               lib/python3.5/site-packages

but when i want use make -j4 in 100% show me this error

 [100%] Linking CXX shared module ../../lib/python3/cv2.cpython-35m-x86_64-linux-gnu.so
/usr/bin/ld: /usr/local/lib/libpython3.5m.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.5m.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
modules/python3/CMakeFiles/opencv_python3.dir/build.make:224: recipe for target 'lib/python3/cv2.cpython-35m-x86_64-linux-gnu.so' failed
make[2]: *** [lib/python3/cv2.cpython-35m-x86_64-linux-gnu.so] Error 1
CMakeFiles/Makefile2:6985: recipe for target 'modules/python3/CMakeFiles/opencv_python3.dir/all' failed
make[1]: *** [modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

where is problem and how can i fix it ? i use python 3.5.2 and opencv 3.1 in ubuntu 64 bit