<p dir="auto">When I install OpenCV 3.1 (HEAD) with homebrew OpenCV not detect VTK. When I tried without QT 5 that is detect.<br>
Also says <code class="notranslate">Your PYTHONPATH points to a site-packages dir for Python 2.x but you are running Python 3.x!</code> and does not detect python3.<br>
my installation code is;<br>
<code class="notranslate">brew -v install --with-contrib --with-cuda --with-ffmpeg --with-gphoto2 --with-gstreamer --with-java --with-libdc1394 --with-opengl --with-openni2 --with-python3 --with-qt --with-qt5 --with-vtk --with-tbb --without-tests --without-python  --HEAD opencv3</code></p>
<h3 dir="auto">my system</h3>
<ul dir="auto">
<li>OpenCV version: 3.1(HEAD)</li>
<li>Host OS: Mac OS X 10.11.3</li>
<li>VTK Version : 7.1</li>
<li>QT Version : 5</li>
</ul>
<p dir="auto">What is wrong and have any idea?</p>
<p dir="auto">Configuring with <code class="notranslate">-DWITH_VTK=ON</code> fails with VTK7. The message is</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="  Requested modules not available:

    vtkRenderingOpenGL"><pre class="notranslate"><code class="notranslate">  Requested modules not available:

    vtkRenderingOpenGL
</code></pre></div>
<p dir="auto">Any ideas?</p>