<div dir="ltr"><div><div><div><div>I surpassed this error Matt,, I add all include directories with "itkImageRegistrationMethod.h" using this command line::<br><br></div>gcc RegMeth.cxx -IPathToDirectoriesMissing<br>
<br></div>The compilation was done succefully now!! <br><br></div>Thank you again!!<br><br></div>Regards!<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/16 Matt McCormick <span dir="ltr"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Hana,<br>
<br>
This looks good to me. The include(${ITK_USE_FILE}) should add all<br>
include directories, including the one that contains<br>
itkImageRegistrationMethod.h.<br>
<br>
To see the actual compile command, issue<br>
<br>
make VERBOSE=1<br>
<br>
There should be a -I flag that added the directory with<br>
itkImageRegistrationMethod.h.<br>
<br>
Thanks,<br>
Matt<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Oct 16, 2013 at 4:55 PM, Hana Cherif <<a href="mailto:hanacherif62@gmail.com">hanacherif62@gmail.com</a>> wrote:<br>
> Matt!!!<br>
><br>
> Here is my CMakeLists.txt ::<br>
><br>
> *********************************************************************************************************<br>
> # This project is designed to be built outside the Insight source tree.<br>
><br>
> cmake_minimum_required(VERSION 2.4)<br>
> if(COMMAND CMAKE_POLICY)<br>
> cmake_policy(SET CMP0003 NEW)<br>
> endif()<br>
> PROJECT(RegMeth)<br>
><br>
><br>
> # Find ITK.<br>
> FIND_PACKAGE(ITK)<br>
><br>
> IF(ITK_FOUND)<br>
><br>
> INCLUDE(${ITK_USE_FILE})<br>
><br>
> ELSE(ITK_FOUND)<br>
> MESSAGE(FATAL_ERROR "Cannot build without ITK. Please set ITK_DIR.")<br>
><br>
> ENDIF(ITK_FOUND)<br>
><br>
><br>
> ADD_EXECUTABLE(RegMeth RegMeth.cxx )<br>
><br>
> TARGET_LINK_LIBRARIES(RegMeth ${ITK_LIBRARIES} )<br>
><br>
> *******************************************************************************************************************<br>
><br>
> The problem is in the Target_LINK_LIBRARIES, may be??<br>
><br>
> Regards!!<br>
><br>
><br>
> 2013/10/16 Matt McCormick <<a href="mailto:matt.mccormick@kitware.com">matt.mccormick@kitware.com</a>><br>
>><br>
>> Hi Hana,<br>
>><br>
>> What does your CMakeLists.txt look like?<br>
>><br>
>> Thanks,<br>
>> Matt<br>
>><br>
>> On Wed, Oct 16, 2013 at 12:18 PM, Hana Cherif <<a href="mailto:hanacherif62@gmail.com">hanacherif62@gmail.com</a>><br>
>> wrote:<br>
>> > thank you Christin, I mean 'itkImageRegistrationMethod.h'!! This file<br>
>> > exists<br>
>> > in itk include's folder ,, This why i thought that i must add additional<br>
>> > include directories in my path,,<br>
>> ><br>
>> ><br>
>> > 2013/10/16 Chr. Rossmanith <<a href="mailto:cr@neuro.ma.uni-heidelberg.de">cr@neuro.ma.uni-heidelberg.de</a>><br>
>> ><br>
>> >> Try without 'e' -> itkImageRegistrationMethod.h not ...Methode.h<br>
>> >><br>
>> >> Christina Rossmanith<br>
>> >><br>
>> >> Am 16.10.2013 08:35, schrieb Hana Cherif:<br>
>> >><br>
>> >> I got this error Matt, when i try to compile my code by gcc compiler<br>
>> >> :''<br>
>> >> itkImageRegistrationMethode.h" No such file or directory compilation<br>
>> >> terminated!!!!!!<br>
>> >><br>
>> >> Although i have compiled itk and my project with RelWithDebInfo as type<br>
>> >> of<br>
>> >> CMakeBuild!!<br>
>> >><br>
>> >> Thanks,,<br>
>> >><br>
>> >><br>
>> >> 2013/10/15 Hana Cherif <<a href="mailto:hanacherif62@gmail.com">hanacherif62@gmail.com</a>><br>
>> >>><br>
>> >>> Thank you so much Matt,, for all these informations!!<br>
>> >>><br>
>> >>><br>
>> >>> 2013/10/15 Matt McCormick <<a href="mailto:matt.mccormick@kitware.com">matt.mccormick@kitware.com</a>><br>
>> >>>><br>
>> >>>> Hi Hana,<br>
>> >>>><br>
>> >>>> Adding additional include directories should not be necessary.<br>
>> >>>><br>
>> >>>> However, when compiling ITK and your project, make sure to set the<br>
>> >>>> CMAKE_BUILD_TYPE to Debug or RelWithDebInfo, which will add the "-g"<br>
>> >>>> flag when compiling. This adds the symbols (names of functions and<br>
>> >>>> variables) to the output executable so gdb knows what it is looking<br>
>> >>>> at.<br>
>> >>>><br>
>> >>>> HTH,<br>
>> >>>> Matt<br>
>> >>>><br>
>> >>>> PS. Please reply-to-all to keep messages on the list.<br>
>> >>>><br>
>> >>>> On Tue, Oct 15, 2013 at 7:29 PM, Hana Cherif <<a href="mailto:hanacherif62@gmail.com">hanacherif62@gmail.com</a>><br>
>> >>>> wrote:<br>
>> >>>> > Yes Matt,,i tried to do that [1] ,, but tell me please how can i<br>
>> >>>> > add<br>
>> >>>> > additional include directories to my path (I use gdb debuger) ?<br>
>> >>>> ><br>
>> >>>> > [1]: <a href="http://doc.ubuntu-fr.org/gdb" target="_blank">http://doc.ubuntu-fr.org/gdb</a><br>
>> >>>> ><br>
>> >>>> > Regards!!<br>
>> >>>> ><br>
>> >>>> ><br>
>> >>>> > 2013/10/15 Matt McCormick <<a href="mailto:matt.mccormick@kitware.com">matt.mccormick@kitware.com</a>><br>
>> >>>> >><br>
>> >>>> >> Hi Hana,<br>
>> >>>> >><br>
>> >>>> >> Examining the program in a debugger [1] like GDB should help.<br>
>> >>>> >><br>
>> >>>> >> Thanks,<br>
>> >>>> >> Matt<br>
>> >>>> >><br>
>> >>>> >> [1] <a href="http://software-carpentry.org/v3/debugging.html" target="_blank">http://software-carpentry.org/v3/debugging.html</a><br>
>> >>>> >><br>
>> >>>> >> On Tue, Oct 15, 2013 at 5:06 PM, Hana Cherif<br>
>> >>>> >> <<a href="mailto:hanacherif62@gmail.com">hanacherif62@gmail.com</a>><br>
>> >>>> >> wrote:<br>
>> >>>> >> > Hello every body!!<br>
>> >>>> >> ><br>
>> >>>> >> > When i tried to run the executable results from my own<br>
>> >>>> >> > registration<br>
>> >>>> >> > program,, I got this error :<br>
>> >>>> >> ><br>
>> >>>> >> > /usr/local/include/ITK-4.4/vnl/vnl_matrix.h:207: T&<br>
>> >>>> >> > vnl_matrix<T>::operator()(unsigned int, unsigned int) [with T =<br>
>> >>>> >> > double]:<br>
>> >>>> >> > Assertion `c<cols()' failed.<br>
>> >>>> >> > Aborted (core dumped)<br>
>> >>>> >> ><br>
>> >>>> >> > Note that the compilation of that program has been completed<br>
>> >>>> >> > successfully!!<br>
>> >>>> >> ><br>
>> >>>> >> > What can be the source of this error pleaaaase help!!<br>
>> >>>> >> ><br>
>> >>>> >> > Thank you in advance!!<br>
>> >>>> >> ><br>
>> >>>> >> ><br>
>> >>>> >> > _____________________________________<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://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
>> >>>> >> ><br>
>> >>>> >> > _______________________________________________<br>
>> >>>> >> > Community mailing list<br>
>> >>>> >> > <a href="mailto:Community@itk.org">Community@itk.org</a><br>
>> >>>> >> > <a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
>> >>>> >> ><br>
>> >>>> ><br>
>> >>>> ><br>
>> >>><br>
>> >>><br>
>> >><br>
>> >><br>
>> >><br>
>> >> _____________________________________<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://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
>> >><br>
>> >><br>
>> >><br>
>> >> _____________________________________<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://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
>> >><br>
>> ><br>
>> ><br>
>> > _____________________________________<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://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
>> ><br>
>> > _______________________________________________<br>
>> > Community mailing list<br>
>> > <a href="mailto:Community@itk.org">Community@itk.org</a><br>
>> > <a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br></div>