<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. <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" <<a href="mailto:mathilde.merle@laposte.net">mathilde.merle@laposte.net</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><br> Both solutions don't work ... <br><br><blockquote style="padding-left: 5px; margin-left: 5px; border-left: 2px solid #ff0000">> Message du 08/07/11 16:03<br>> De : "David Doria" <br>> A : "mathilde.merle" , "ITK" <br>> Copie à : <br>> Objet : Re: [Insight-users] itkImageToHistogramFilter.h<br>><br>> <br>> <br>> <p style="margin: 0pt; padding: 0pt" class="gmail_quote">On Fri, Jul 8, 2011 at 10:59 AM, mathilde.merle <span><<a href="mailto:mathilde.merle@laposte.net"><a href="mailto:mathilde.merle@laposte.net">mathilde.merle@laposte.net</a></a>></span> wrote:<br>> </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>> </p><br>> Thanks for the answer,<br>> <br>> I use InsightToolkit-3.20.0.<br>> <br>> I found the file in the ITK directory, but if I copy it into my current directory, I have other errors :<br>> <em>error: itkImageToListSampleAdaptor.h: No such file or directory<br>> error: itkSampleToHistogramFilter.h: No such file or directory<br>> error: itkDenseFrequencyContainer2.h: No such file or directory <br>> error: itkImageToHistogramFilter.txx: No such file or directory</em><br>> <br>> <blockquote style="padding-left: 5px; margin-left: 5px; border-left: 2px solid #ff0000">> Message du 08/07/11 15:43<br>> > De : "David Doria" <br>> > A : "mathilde.merle" <br>> > Copie à : "insight-users itk org" <br>> > Objet : Re: [Insight-users] itkImageToHistogramFilter.h<br>> ><br>> > <br>> > <br>> > <p style="margin: 0pt; padding: 0pt" class="gmail_quote"> </p><p style="margin: 0pt; padding: 0pt" class="im">On Fri, Jul 8, 2011 at 10:35 AM, mathilde.merle <span><<a href="mailto:mathilde.merle@laposte.net" target="_blank"><a href="mailto:mathilde.merle@laposte.net">mathilde.merle@laposte.net</a></a>></span> wrote:<br>> > </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"> </p><p style="margin: 0pt; padding: 0pt" align="left"><br>> > </p>Hello all,<br>> > <br>> > I have this error :<br>> > <br>> > <em>error: itkImageToHistogramFilter.h: No such file or directory</em><br>> > <br>> > in the CMakeLists.txt I have :<br>> > <br>> > <em>TARGET_LINK_LIBRARIES(test-ivtk ${ITK_LIBRARIES} ITKStatistics ITKBasicFilters ITKCommon ITKIO vtkCommon<br>> > vtkRendering vtkGraphics vtkHybrid vtkImaging vtkIO vtkFiltering vtkWidgets vtkVolumeRendering)</em><br>> > <br>> > I include in my file :<br>> > <em>#include </em><br>> > <br>> <p> </p><p style="margin: 0pt; padding: 0pt" class="im">> Do you know how to do ?<br>> > <br>> > Thanks<br>> > <font color="#888888"><br>> > Mathilde</font><br>> > </p></blockquote><p style="margin: 0pt; padding: 0pt" class="im"> </p><p style="margin: 0pt; padding: 0pt"><br>> > Which version of ITK are you using?<br>> > <br>> > In git master, it exists here:<br>> > Modules/Numerics/Statistics/include/itkImageToHistogramFilter.h<br>> > <br>> > Also, you should not need anything more than ${ITK_LIBRARIES} for the ITK part of your linking line.<br>> > <br>> > David <br>> > </p> <p> </p></blockquote></blockquote><p style="margin: 0pt; padding: 0pt"><br>> I'm assuming you have:<br>> FIND_PACKAGE(ITK REQUIRED)<br>> INCLUDE(${ITK_USE_FILE})<br>> <br>> in your CMakeLists.txt?<br>> <br>> Also, you could try<br>> <em>#include "itkImageToHistogramFilter.h"<br>> <br>> instead of<br>> <br>> </em><em>#include <br>> </em><br>> David <br>> </p><p> </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>