making OpenCV with VTK support

695 views
Skip to first unread message

Ho'jat Kaveh

unread,
Apr 12, 2017, 10:55:15 AM4/12/17
to opendetection
Hello

I have installed all the dependencies according to here except OpenCV.
This is the camke command I used for OpenCV:

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D WITH_VTK=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D ENABLE_FAST_MATH=1 -D CUDA_FAST_MATH=1 -D WITH_CUBLAS=1 -DOPENCV_EXTRA_MODULES_PATH=/home/tiestu/Documents/GitRepository/OpenCV3/opencv_contrib/modules /home/tiestu/Documents/GitRepository/OpenCV3/opencv

and I receive this error which I believe has something to do with VTK,
I have configured VTK using cmake-gui with the default settingsas per installation instruction. but this error says:

vtkGenericDataArrayLookupHelper.h:72:23: error: nullptr was not declared in this scope

Does it matter what version of compiler (11 or 0x) I've used? If so what version should I use?
Message has been deleted

Anuj Rathore

unread,
Apr 22, 2017, 2:10:19 PM4/22/17
to opendetection
For running OpenDetection besides installing openCV, you need to install opencv_contrib which contains some additional package which are essential for running openDetection.
I think for you here is a version mismatch in opencv and opencv_contrib.
Reply all
Reply to author
Forward
0 new messages