title: Compiling OpenCV with VTK support for Open Detection
body: <p>I'm trying to install OpenDetection on Ubuntu 16.04.
  I have installed all the dependencies according to <a href="http://opendetection.com/installation_instruction.html" rel="noreferrer" title="here">here</a> except OpenCV.
  This is the camke command I used for OpenCV:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>but when I try to <code>make</code> OpenCV, I receive <a href="https://pastebin.com/MzqS4xvU" rel="noreferrer" title="this error">this error</a> which I believe has something to do with VTK!<br>
  I have configured VTK using latest prebuilt binary version of cmake with the default settings, as per installation instructions. but this error says:</p>
  
  <pre><code>vtkGenericDataArrayLookupHelper.h:72:23: error: ‘nullptr’ was not declared in this scope
  </code></pre>
  
  <p>Does it matter what version of compiler (11 or 0x) I've used? If so what version should I use?</p>