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