<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=GB2312" http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi,<br>
    You have to ask cmake to build specifically the ITKOpenCVBridge.<br>
    In the "build" directory you created, after running "cmake ..", you
    need to edit CMakeCache.txt .<br>
    You can get some ideas on
    <a class="moz-txt-link-freetext" href="http://www.itk.org/Wiki/ITK_Configuring_and_Building">http://www.itk.org/Wiki/ITK_Configuring_and_Building</a><br>
    But the main thing you will need are (do a search for "opencv" 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 "ccmake .." to set them.<br>
    <br>
    Kind regards,<br>
    <br>
    Kevin<br>
    <br>
    Le 06/03/2012 12:16, 小刚 a écrit&nbsp;:
    <blockquote
cite="mid:CANJ6B_Vh=C_jh4E8h_aD=fpNbW9+X02v6r_wqjNXs9VyC7Km7A@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=GB2312">
      Hi all !
      <div>I'm new to ITK, but I'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'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't find
          headers in /usr/local/ITK4.0. I should put something there,
          but i think "make install" would do that.</div>
        <div>Hope someone could explain it, with a good solution.</div>
        <div>——<br>
          美丽有两种:<br>
          一是深刻又动人的方程,<br>
          一是你泛着倦意淡淡的笑容。<br>
        </div>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_____________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Kitware offers ITK Training Courses, for more information visit:
<a class="moz-txt-link-freetext" href="http://www.kitware.com/products/protraining.html">http://www.kitware.com/products/protraining.html</a>

Please keep messages on-topic and check the ITK FAQ at:
<a class="moz-txt-link-freetext" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>