<div>Thanks to Kevin !</div><div>Sorry for my mistake, the problem is quit simple: use the &quot;Advanced&quot; option, and you can configure it now.</div><div><br></div><div>Well, in fact I use cmake-gui sometime, and use it to configure some options before. Previously, I had tried it, fail to find anything, and I thought it was a unfriendly mistake.&nbsp;After I had tries to modify CMakeCache.txt file, as Kevin said, I found I missed the &quot;Advanced&quot; options on the GUI. Yes, &nbsp;I could configure it now.</div>


<div><br></div><div>This tell me that I should use CMake more!<br clear="all">&mdash;&mdash;<br>美丽有两种:<br>一是深刻又动人的方程,<br>一是你泛着倦意淡淡的笑容。<br>
<br><br><div class="gmail_quote">On Tue, Mar 6, 2012 at 10:44 PM, Kevin Keraudren <span dir="ltr">&lt;<a href="mailto:kevin.keraudren10@imperial.ac.uk" target="_blank">kevin.keraudren10@imperial.ac.uk</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>

  
    
    
  
  <div bgcolor="#ffffff" text="#000000">
    Hi,<br>
    You have to ask cmake to build specifically the ITKOpenCVBridge.<br>
    In the &quot;build&quot; directory you created, after running &quot;cmake ..&quot;, you
    need to edit CMakeCache.txt .<br>
    You can get some ideas on
    <a href="http://www.itk.org/Wiki/ITK_Configuring_and_Building" target="_blank">http://www.itk.org/Wiki/ITK_Configuring_and_Building</a><br>
    But the main thing you will need are (do a search for &quot;opencv&quot; in
    CMakeCache.txt):<br>
    <br>
    //Request building ITKVideoBridgeOpenCV<br>
    Module_ITKVideoBridgeOpenCV:BOOL=ON<br>
    <br>
    //The directory containing a CMake configuration file for OpenCV.<br>
    OpenCV_DIR:PATH=/usr/local/share/opencv<br>
    <br>
    Maybe you could also use &quot;ccmake ..&quot; to set them.<br>
    <br>
    Kind regards,<br>
    <br>
    Kevin<br>
    <br>
    Le 06/03/2012 12:16, 小刚 a écrit&nbsp;:
    <blockquote type="cite"><div><div>
      
      Hi all !
      <div>I&#39;m new to ITK, but I&#39;m quit familiar with OpenCV. I want to
        use OpenCV and ITK together, so I installed ITK. But when I ran
        the ITK-OpenCV-Bridge-Tutorial, it complains that can&#39;t find
        some headers, just like this:</div>
      <div><br>
      </div>
      <div>
        <div>/home/zeta/ITK-OpenCV-Bridge-Tutorial/Exercises/ITKOpenCVBridge/exercise1/BasicFilteringITKOpenCVBridge.cxx:25:34:
          fatal error: itkOpenCVImageBridge.h: No such file or directory</div>
        <div>compilation terminated.</div>
        <div>make[2]: ***
          [Exercises/ITKOpenCVBridge/exercise1/CMakeFiles/BasicFilteringITKOpenCVBridge.dir/BasicFilteringITKOpenCVBridge.cxx.o]
          Error 1</div>
        <div>make[1]: ***
          [Exercises/ITKOpenCVBridge/exercise1/CMakeFiles/BasicFilteringITKOpenCVBridge.dir/all]
          Error 2</div>
        <div>make: *** [all] Error 2</div>
      </div>
      <div>
        <div><br>
        </div>
        <div>I think I had installed ITK the usual way, like :</div>
        <div>cd /path/to/ITK/source</div>
        <div>mkdir build</div>
        <div>cmake ..</div>
        <div>make</div>
        <div>make install</div>
        <div><br>
        </div>
        <div>I could find the Video module in the source, But can&#39;t find
          headers in /usr/local/ITK4.0. I should put something there,
          but i think &quot;make install&quot; would do that.</div>
        <div>Hope someone could explain it, with a good solution.</div>
        <div>&mdash;&mdash;<br>
          美丽有两种:<br>
          一是深刻又动人的方程,<br>
          一是你泛着倦意淡淡的笑容。<br>
        </div>
      </div>
      </div></div><pre><fieldset></fieldset>
_____________________________________
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>

Visit other Kitware open-source projects at
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>

Kitware offers ITK Training Courses, for more information visit:
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a>

Please keep messages on-topic and check the ITK FAQ at:
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>