<html><body bgcolor="#FFFFFF"><div>Hi,</div><div><br></div><div>I solve this problem by putting</div><div>include_directories( ... ) in my CMakeLists.txt file.</div><div>Where the ... are the paths to where the .h header files are located.&nbsp;<span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">I find these paths using linux's find command.</span></div><div><br></div><div>John</div><div><br><br>Sent from my iPhone</div><div><br>On 2011-07-08, at 11:11 AM, "mathilde.merle" &lt;<a href="mailto:mathilde.merle@laposte.net">mathilde.merle@laposte.net</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div><br>&nbsp;Both solutions don't work ... <br><br><blockquote style="padding-left: 5px; margin-left: 5px; border-left: 2px solid #ff0000">&gt; Message du 08/07/11 16:03<br>&gt; De : "David Doria" <br>&gt; A : "mathilde.merle" , "ITK" <br>&gt; Copie à : <br>&gt; Objet : Re: [Insight-users] itkImageToHistogramFilter.h<br>&gt;<br>&gt;  <br>&gt; <br>&gt; <p style="margin: 0pt; padding: 0pt" class="gmail_quote">On Fri, Jul 8, 2011 at 10:59 AM, mathilde.merle <span>&lt;<a href="mailto:mathilde.merle@laposte.net"><a href="mailto:mathilde.merle@laposte.net">mathilde.merle@laposte.net</a></a>&gt;</span> wrote:<br>&gt; </p><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex"> <p style="margin: 0pt; padding: 0pt" align="left"><br>&gt; </p><br>&gt; Thanks for the answer,<br>&gt; <br>&gt; I use InsightToolkit-3.20.0.<br>&gt; <br>&gt; I found the file in the ITK directory, but if I copy it into my current directory, I have other errors :<br>&gt;  <em>error: itkImageToListSampleAdaptor.h: No such file or directory<br>&gt; error: itkSampleToHistogramFilter.h: No such file or directory<br>&gt; error: itkDenseFrequencyContainer2.h: No such file or directory <br>&gt; error: itkImageToHistogramFilter.txx: No such file or directory</em><br>&gt;  <br>&gt; <blockquote style="padding-left: 5px; margin-left: 5px; border-left: 2px solid #ff0000">&gt; Message du 08/07/11 15:43<br>&gt; &gt; De : "David Doria" <br>&gt; &gt; A : "mathilde.merle" <br>&gt; &gt; Copie à : "insight-users itk org" <br>&gt;  &gt; Objet : Re: [Insight-users] itkImageToHistogramFilter.h<br>&gt; &gt;<br>&gt; &gt;  <br>&gt; &gt; <br>&gt; &gt; <p style="margin: 0pt; padding: 0pt" class="gmail_quote">&nbsp;</p><p style="margin: 0pt; padding: 0pt" class="im">On Fri, Jul 8, 2011 at 10:35 AM, mathilde.merle <span>&lt;<a href="mailto:mathilde.merle@laposte.net" target="_blank"><a href="mailto:mathilde.merle@laposte.net">mathilde.merle@laposte.net</a></a>&gt;</span> wrote:<br>&gt;  &gt; </p><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex"><p style="margin: 0pt; padding: 0pt" class="im">&nbsp;</p><p style="margin: 0pt; padding: 0pt" align="left"><br>&gt; &gt; </p>Hello all,<br>&gt; &gt; <br>&gt;  &gt; I have this error :<br>&gt; &gt; <br>&gt; &gt; <em>error: itkImageToHistogramFilter.h: No such file or directory</em><br>&gt; &gt; <br>&gt; &gt; in the CMakeLists.txt I have :<br>&gt; &gt; <br>&gt; &gt; <em>TARGET_LINK_LIBRARIES(test-ivtk ${ITK_LIBRARIES} ITKStatistics ITKBasicFilters ITKCommon ITKIO vtkCommon<br>&gt;  &gt;  vtkRendering vtkGraphics vtkHybrid vtkImaging vtkIO vtkFiltering vtkWidgets vtkVolumeRendering)</em><br>&gt; &gt; <br>&gt; &gt; I include in my file :<br>&gt; &gt; <em>#include </em><br>&gt; &gt; <br>&gt; <p>&nbsp;</p><p style="margin: 0pt; padding: 0pt" class="im">&gt; Do you know how to do ?<br>&gt;  &gt; <br>&gt; &gt;  Thanks<br>&gt; &gt; <font color="#888888"><br>&gt; &gt; Mathilde</font><br>&gt; &gt; </p></blockquote><p style="margin: 0pt; padding: 0pt" class="im">&nbsp;</p><p style="margin: 0pt; padding: 0pt"><br>&gt; &gt; Which version of ITK are you using?<br>&gt; &gt; <br>&gt; &gt; In git master, it exists here:<br>&gt;  &gt; Modules/Numerics/Statistics/include/itkImageToHistogramFilter.h<br>&gt; &gt;   <br>&gt; &gt; Also, you should not need anything more than ${ITK_LIBRARIES} for the ITK part of your linking line.<br>&gt; &gt; <br>&gt; &gt; David <br>&gt; &gt; </p> <p>&nbsp;</p></blockquote></blockquote><p style="margin: 0pt; padding: 0pt"><br>&gt; I'm assuming you have:<br>&gt;  FIND_PACKAGE(ITK REQUIRED)<br>&gt;  INCLUDE(${ITK_USE_FILE})<br>&gt; <br>&gt; in your CMakeLists.txt?<br>&gt; <br>&gt; Also, you could try<br>&gt; <em>#include "itkImageToHistogramFilter.h"<br>&gt; <br>&gt; instead of<br>&gt; <br>&gt; </em><em>#include <br>&gt;  </em><br>&gt; David <br>&gt; </p><p>&nbsp;</p> </blockquote><br><br><a href="https://compte.laposte.net/inscription/index.do?jeux=2011FOOTER_generique" target="_blank"><img src="http://webmail.laposte.net/webmail/fr_FR/panels/images/pied-page-generique_2.jpg"></a><br><br><a target="_blank" href="https://compte.laposte.net/inscription/index.do?jeux=2011FOOTER_generique"><img style="margin: 0pt;" src="http://webmail.laposte.net/webmail/fr_FR/panels/images/pied-page-generique_2.jpg" alt=""></a><a></a></div></blockquote><blockquote type="cite"><div><span>_____________________________________</span><br><span>Powered by <a href="http://www.kitware.com"><a href="http://www.kitware.com">www.kitware.com</a></a></span><br><span></span><br><span>Visit other Kitware open-source projects at</span><br><span><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></span><br><span></span><br><span>Kitware offers ITK Training Courses, for more information visit:</span><br><span><a href="http://www.kitware.com/products/protraining.html">http://www.kitware.com/products/protraining.html</a></span><br><span></span><br><span>Please keep messages on-topic and check the ITK FAQ at:</span><br><span><a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a></span><br><span></span><br><span>Follow this link to subscribe/unsubscribe:</span><br><span><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a></span><br></div></blockquote></body></html>