<html><body bgcolor="#FFFFFF"><div>It is a problem with your .cxx file.</div><div>Your first argument in the template instantiation may be of the wrong type.<br>Examine the class reference for that template and make sure you are using the write argument type.</div><div>Without see your .cxx file, I can't get more specific about the remIning errors.</div><div><br></div><div>John</div><div><br></div><div><br></div><div>Sent from my iPhone</div><div><br>On 2011-07-08, at 11:42 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>Thank you, files are found with :<br><br><font color="#0000FF">INCLUDE_DIRECTORIES(<br>"/.../.../Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/"<br>)</font><br><br>However, I have other errors :<br><br><em>/Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:50: error: template argument 1 is invalid<br>/Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:57: error: template argument 1 is invalid<br>/Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:84: error: expected nested-name-specifier before ‘MeasurementVectorPixelTraits’<br>/Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:84: error: expected ‘;’ before ‘<’ token<br>/Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:86: error: expected nested-name-specifier before ‘MeasurementVectorTraitsTypes’<br>/Users/mathildemerle/Documents/Dev/InsightToolkit-3.20.0/Code/Review/Statistics/itkImageToListSampleAdaptor.h:86: error: expected ‘;’ before ‘<’ token</em><br><br>etc... when the <em>#include <itkImageToHistogramFilter.h></em> is compiled !<br><br>Do you no why ?<br><br>Mathilde<br><br><br><br><blockquote style="padding-left: 5px; margin-left: 5px; border-left: 2px solid #ff0000">> Message du 08/07/11 16:16<br>> De : "John Jan Drozd" <br>> A : "mathilde.merle" <br>> Copie à : <a href="mailto:insight-users@itk.org"><a href="mailto:insight-users@itk.org">insight-users@itk.org</a></a><br>> Objet : Re: [Insight-users] itkImageToHistogramFilter.h<br>><br>> <p style="margin:0;padding:0;">Hi,</p><p style="margin:0;padding:0;"><br>> </p><p style="margin:0;padding:0;">I solve this problem by putting</p><p style="margin:0;padding:0;">include_directories( ... ) in my CMakeLists.txt file.</p><p style="margin:0;padding:0;">Where the ... are the paths to where the .h header files are located. <span class="Apple-style-span">I find these paths using linux's find command.</span></p><p style="margin:0;padding:0;"><br>> </p><p style="margin:0;padding:0;">John</p><p style="margin:0;padding:0;"><br>> <br>> Sent from my iPhone</p><p style="margin:0;padding:0;"><br>> On 2011-07-08, at 11:11 AM, "mathilde.merle" <<a href="mailto:mathilde.merle@laposte.net"><a href="mailto:mathilde.merle@laposte.net">mathilde.merle@laposte.net</a></a>> wrote:<br>> <br>> </p><blockquote><p style="margin:0;padding:0;"><br>> Both solutions don't work ... <br>> <br>> </p><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><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><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" 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 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><p></p></blockquote><blockquote><p style="margin:0;padding:0;"><span>_____________________________________</span><br>> <span>Powered by <a href="http://www.kitware.com"></a><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"><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></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"><a href="http://www.kitware.com/products/protraining.html">http://www.kitware.com/products/protraining.html</a></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"><a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a></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"><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a></a></span><br>> </p></blockquote></blockquote><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></body></html>