how to install extra modules for openCV 3.2.0?

asked 2017-05-10 13:01:15 -0600

Nihar Rao gravatar image

Hi,I downloaded the openCV-contrib repo and this is my cmake command cmake -DOPENCV_EXTRA_MODULES_PATH=/home/nihar/Desktop/opencv_contrib-master/modules .. the path is correct(I have cross checked 1000 times :)).I am in my build directory.

edit retag flag offensive close merge delete

Comments

and the problem is ?

berak gravatar imageberak ( 2017-05-10 13:10:34 -0600 )edit

I get an error while make command.I only need lopen_face,but it's not showing up when I type pkg-config --libs opencv

Nihar Rao gravatar imageNihar Rao ( 2017-05-10 13:51:49 -0600 )edit

the error occcurs at 96% due to wrong building of a python file.

Nihar Rao gravatar imageNihar Rao ( 2017-05-10 13:53:12 -0600 )edit

/usr/bin/ld: CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o: relocation R_X86_64_PC32 against undefined symbol `_Z13pyopencv_fromIN2cv4MatxIdLi4ELi4EEEEP7_objectRKT_' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status modules/python2/CMakeFiles/opencv_python2.dir/build.make:358: recipe for target 'lib/cv2.so' failed

Nihar Rao gravatar imageNihar Rao ( 2017-05-10 13:53:57 -0600 )edit

this is a error

Nihar Rao gravatar imageNihar Rao ( 2017-05-10 13:54:11 -0600 )edit

@berak,I only need lopencv_face,is there a way where I can add it manually?

Nihar Rao gravatar imageNihar Rao ( 2017-05-10 13:54:44 -0600 )edit

your opencv main version does not match the opencv_contrib one

see that you got latest github master version of both , clean your build folder, and try again.

berak gravatar imageberak ( 2017-05-10 23:52:20 -0600 )edit