[Insight-users] Trouble using itk Refactoring Statistic classes
Ricardo Ferrari
rjf.araraquara at gmail.com
Wed Jan 6 08:10:17 EST 2010
Hi Itk-Users,
Sorry for bothering you again with the same issue, but anyone could please
tell me what the hell is wrong with the attached code. I tried to provide a
very simple code to illustrate the problem. Running this program I got the
following result.
ferrari at ferrari-workstation:~/Desktop/Test$ bin/test
1a
1b
Segmentation fault
ferrari at ferrari-workstation:~/Desktop/Test$
I really appreciate any help or suggestion.
Ricardo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100106/dad22ea3/attachment-0001.htm>
-------------- next part --------------
CMAKE_MINIMUM_REQUIRED(VERSION 2.7)
SET( ProgramName "test" )
PROJECT( ${ProgramName} )
FIND_PACKAGE (ITK REQUIRED)
IF (ITK_FOUND)
INCLUDE( ${USE_ITK_FILE} )
SET(ITK_LIBRARIES ITKCommon ITKBasicFilters ITKIO ITKMetaIO ITKNumerics ITKStatistics itkvnl)
ENDIF(ITK_FOUND)
FIND_PACKAGE (VTK REQUIRED)
IF (VTK_FOUND)
INCLUDE( ${USE_VTK_FILE} )
SET(VTK_LIBRARIES vtkRendering vtkGraphics vtkWidgets vtkHybrid vtkImaging vtkIO vtkFiltering vtkCommon)
ENDIF( VTK_FOUND)
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}
)
SET( SRCS
)
ADD_EXECUTABLE( ${ProgramName}
main.cpp
${SRCS}
)
TARGET_LINK_LIBRARIES( ${ProgramName}
${VTK_LIBRARIES}
${ITK_LIBRARIES}
)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: text/x-c++src
Size: 4578 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100106/dad22ea3/attachment-0001.cpp>
More information about the Insight-users
mailing list