<div dir="ltr">Yes, you do need to enable "<span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">Module_</span><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">ITKVideoBridgeOpenCV" when you build ITK. </span><div><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">I am not familiar with OpenCV installations on Mac. Do projects build fine when you use OpenCV alone?</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 26, 2014 at 4:28 PM, elena bresciani <span dir="ltr"><<a href="mailto:elena.bresciani87@gmail.com" target="_blank">elena.bresciani87@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I get the CMake error " Error in configuration files. Project Files may be invalid " <div><br></div><div>I think that my problem is with the module <span style="font-family:arial,sans-serif;font-size:13px">"Module_ITKVideoBridgeOpenCV", I have to rebuild ITK by checking that option (I don't think I had done this when I compiled ITK), and I hope that then it will work. </span></div><div><span style="font-family:arial,sans-serif;font-size:13px">I installed OpenCV with brew on Mac, you suggest to recompile it from source or it should be good as well?</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Thank you so much</span></div><span class="HOEnZb"><font color="#888888"><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Elena</span></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2014-09-26 16:35 GMT+02:00 Girish Mallya Udupi <span dir="ltr"><<a href="mailto:indianzeppelin@gmail.com" target="_blank">indianzeppelin@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Elena,<div><br></div><div>I use OpenCV and ITK together. The general procedure is to build OpenCV from source using CMake, and then build ITK from source using CMake, checking the "Module_ITKVideoBridgeOpenCV" option so that it is built. During both the builds you generally do not have to modify the CMakeLists.txt</div><div><br></div><div>For a project which uses the libraries, the CMakeLists.txt would simply look like -</div><div><br></div><div>----</div><div><div>cmake_minimum_required(VERSION 2.8)</div><div><br></div><div>project(myProject)</div><div><br></div><div>find_package(ITK REQUIRED)</div><div>find_package(OpenCV REQUIRED)</div><div><br></div><div>include(${ITK_USE_FILE})</div><div><br></div><div>add_executable(myProject test.cpp)</div><div><br></div><div>target_link_libraries(myProject ${ITK_LIBRARIES} ${OpenCV_LIBS})</div></div><div>----</div><div><br></div><div>Is there a specific problem you are facing while trying this? <br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Fri, Sep 26, 2014 at 3:23 PM, elena bresciani <span dir="ltr"><<a href="mailto:elena.bresciani87@gmail.com" target="_blank">elena.bresciani87@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hello to everybody,<div><br></div><div>for the project I'm working on I need to integrate ITK and OpenCV. </div><div>I've read the dedicated tutorial <a href="http://www.na-mic.org/Wiki/images/4/4a/ITKOpenCVBridgeTutorial.pdf" target="_blank">here</a>, but I can't find informations on how the CmakeList.txt file should be created or if I have to change some kind of building configuration of ITK and/or OpenCV.</div><div><br></div><div>Can you please explain me what I have to do? </div><div><br></div><div>Cheers</div><span><font color="#888888"><div>Elena</div></font></span></div>
<br></div></div>_____________________________________<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.php" target="_blank">http://www.kitware.com/products/protraining.php</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://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Regards,<br>Girish</div>
</font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Regards,<br>Girish</div>
</div>