<div dir="ltr">I think I just answered my own question. I forgot <span style="font-family:monospace,monospace"><b>sudo make install</b></span>. Now both <font face="monospace, monospace">itkOpenCVImageBridge </font>files are where they're supposed to be, in <font face="monospace, monospace">/usr/local/include/ITK-4.8</font>.<div><br></div><div>Matt, the chat with you totally helped. Sorry to interrupt your day, but -- Thanks very much. I really appreciate it. -- T<br><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote"><i>30 August 2016 at 19:52:</i><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Matt,<div><br></div><div>Thank you for the advice. You're right, in that I need not <span style="font-size:12.8px">include any OpenCV dirs; it's all about ITK.</span></div><div><span style="font-size:12.8px">The problem is, I'm already doing the:</span></div><div><span style="font-size:12.8px"><br></span></div><div><div><font face="monospace, monospace">find_package( ITK REQUIRED )</font></div><div><font face="monospace, monospace">include( ${ITK_USE_FILE} )</font><br></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>The compiler's not happy unless I physically copy the header and source files (itkOpenCVImageBridge.*) from [<font face="monospace, monospace">ITK-SOURCE-DIR]/Modules/<wbr>Video/BridgeOpenCV/include</font> to a location CMakeLists knows about (in an include directory). Which makes sense, but I would have thought when I built ITK with the <span style="color:rgb(0,0,0);font-family:verdana,sans-serif;font-size:13.44px">BridgeOpenCV</span> flag turned on that it would have been copied during that particular process. Oh well. At least it's working now.</div>
<div><br></div><div>Cheers, thanks a lot.</div><div>Tammy</div><div><br></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 30 August 2016 at 13:28, Matt McCormick <span dir="ltr"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Tammy,<br>
<br>
Your project's CMakeLists.txt needs:<br>
<br>
find_package(ITK)<br>
include(${ITK_USE_FILE})<br>
<br>
The "include(${ITK_USE_FILE})" command calls "include_directories"<br>
with the directories containing itkOpenCVImageBridge.h.<br>
<br>
HTH,<br>
Matt<br>
<br>
On Tue, Aug 30, 2016 at 12:35 PM, Tammy Diprima<br>
<<a href="mailto:tammy.diprima@stonybrook.edu" target="_blank">tammy.diprima@stonybrook.edu</a>> wrote:<br>
> OK I have an update. So, set() worked to reset the broken variable<br>
> (workaround). And then I had to locate itkOpenCVImageBridge.* and copy the<br>
> files to the location.<br>
><br>
> That worked.<br>
><br>
> But -- does anybody have an idea how I could have broken OpenCV_INCLUDE_DIRS<br>
> in the first place?<br>
> And also -- something tells me I shouldn't have had to copy the source files<br>
> to the OpenCV_INCLUDE_DIRS. What did I do wrong?<br>
><br>
> Thanks again.<br>
><br>
><br>
><br>
> 30 August 2016 at 12:25:<br>
><br>
>> I re-ran ccmake on ITK with Module_ITKVideoBridgeOpenCV:BO<wbr>OL=ON.<br>
>> I recompiled using make.<br>
>><br>
>> In my C++ program I'm including the headers:<br>
>> #include <opencv2/opencv.hpp><br>
>> #include "itkOpenCVImageBridge.h"<br>
>><br>
>> But it's saying "cannot find itkOpenCVImageBridge.h"<br>
>><br>
>> I put messaging output in my CMakeLists.txt:<br>
>> include_directories(${OpenCV_I<wbr>NCLUDE_DIRS})<br>
>> MESSAGE( STATUS "OpenCV_INCLUDE_DIRS " ${OpenCV_INCLUDE_DIRS} )<br>
>><br>
>> And the output shows that the directory is incorrect:<br>
>> OpenCV_INCLUDE_DIRS /usr/local/include/opencv/usr/<wbr>local/include<br>
>><br>
>> This might be what's causing the problem. I tried to do a set() but it<br>
>> didn't seem to fix it.<br>
>><br>
>> Can somebody please advise?<br>
>><br>
>> Thanks.<br>
><br>
><br>
><br>
> ______________________________<wbr>_______<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/product<wbr>s/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" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FA<wbr>Q</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/insight-users</a><br>
><br>
</blockquote></div><br></div></div>
</blockquote></div><br></div></div></div>