[Insight-users] D'Arcy project build error....Have anybodyever
build this project?
Julien Jomier
julien.jomier at kitware.com
Thu Feb 16 12:31:38 EST 2006
The M_PI problem can be fixed by adding the following lines at the
beginning of itkSeashellMeshSource.h:
#ifndef M_PI
#define M_PI 3.1415926535897932384626433832795
#endif
Regarding SOViewer, I have attached a CMakeLists.txt for darcy-0.1,
assuming that you are using SOViewer from cvs.
To download SOViewer via cvs please refer to this page:
http://public.kitware.com/Wiki/SOViewer
Hope that helps,
Julien
wordon wrote:
> I think maybe the problem due to the CMakeList.
> Especially in :
> # This should be found as a package
> # --> Change this to point to the correct location SET(SOV_SOURCE_DIR
> D:/SOViewer/SOViewer) SET(SOV_BINARY_DIR ${SOV_SOURCE_DIR}/Build)
> INCLUDE(${SOV_SOURCE_DIR}/DartConfig.cmake)
>
> The original CMakeList by author is :
>
> # This should be found as a package
> # --> Change this to point to the correct location SET(SOV_SOURCE_DIR
> /home/gavinb/projects/ITK/SOViewer)
> SET(SOV_BINARY_DIR ${SOV_SOURCE_DIR}/Build)
> INCLUDE(${SOV_SOURCE_DIR}/sovCMakeOptions.cmake)
> # Just so the generated GUI can find the Base class
> INCLUDE_DIRECTORIES(${Darcy_SOURCE_DIR})
>
> I don't know what FILE and DIR should I do in these lines.
> Have anybody give me some suggestion?
>
> Thanks.. :)
>
>
> -----Original Message-----
> From: Kevin H. Hobbs [mailto:kevin.hobbs.1 at ohiou.edu]
> Sent: Thursday, February 16, 2006 11:35 PM
> To: wordon
> Cc: insight-users at itk.org
> Subject: Re: [Insight-users] D'Arcy project build error....Have anybodyever
> build this project?
>
> On Thu, 2006-02-16 at 22:50 +0800, wordon wrote:
>
> <snip>
>
>> I can't find the define about M_PI , Have anybody can give me some
>> help ?
>
> I think M_PI should be defined in math.h.
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
PROJECT(Darcy)
#---------------------------------------------------------------------------
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)
FIND_PACKAGE(FLTK)
IF(FLTK_FOUND)
INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})
ELSE(FLTK_FOUND)
MESSAGE(FATAL_ERROR "Cannot build without FLTK. Please set FLTK_DIR.")
ENDIF(FLTK_FOUND)
FIND_PACKAGE(VTK)
IF(VTK_FOUND)
INCLUDE (${VTK_USE_FILE})
ELSE(VTK_FOUND)
MESSAGE(FATAL_ERROR "Cannot build without ITK. Please set VTK_DIR.")
ENDIF(VTK_FOUND)
# This should be found as a package
# --> Change this to point to the correct location
#SET(SOV_SOURCE_DIR /home/gavinb/projects/ITK/SOViewer)
#SET(SOV_BINARY_DIR ${SOV_SOURCE_DIR}/Build)
#INCLUDE(${SOV_SOURCE_DIR}/sovCMakeOptions.cmake)
FIND_PACKAGE(SOV)
IF(SOV_FOUND)
INCLUDE (${SOV_USE_FILE})
ELSE(SOV_FOUND)
MESSAGE(FATAL_ERROR "Cannot build without SOV. Please set SOV_DIR.")
ENDIF(SOV_FOUND)
# Just so the generated GUI can find the Base class
INCLUDE_DIRECTORIES(${Darcy_SOURCE_DIR})
#---------------------------------------------------------------------------
ADD_EXECUTABLE(TestTriangleCellWithNormalAndCentroid
TestTriangleCellWithNormalAndCentroid.cxx)
TARGET_LINK_LIBRARIES(TestTriangleCellWithNormalAndCentroid
ITKCommon ITKIO)
#---------------------------------------------------------------------------
ADD_EXECUTABLE(TestSeashellMeshSource TestSeashellMeshSource.cxx itkTracer.cxx)
TARGET_LINK_LIBRARIES(TestSeashellMeshSource
ITKCommon ITKIO)
#---------------------------------------------------------------------------
ADD_EXECUTABLE(TestRenderMeshSource TestRenderMeshSource.cxx itkTracer.cxx)
TARGET_LINK_LIBRARIES(TestRenderMeshSource
ITKCommon ITKIO)
#---------------------------------------------------------------------------
ADD_EXECUTABLE(darcy darcy.cxx
DarcyApp.cxx
DarcyBase.cxx
itkTracer.cxx )
TARGET_LINK_LIBRARIES(darcy
ITKCommon ITKIO ITKSpatialObject
SOViewer
${GLU_LIBRARY}
${GLUT_LIBRARY}
${FLTK_LIBRARY} )
FLTK_WRAP_UI(darcy DarcyGUI.fl)
#---------------------------------------------------------------------------
More information about the Insight-users
mailing list