[Insight-users] D'Arcy project build error....Have anybody ever
build this project?
wordon
m9421001 at gmail.com
Thu Feb 16 09:50:26 EST 2006
Hi,all:
I am building "Darcy0.1"(
http://www.cs.mu.oz.au/~gavinb/download.php?file=darcy-0.1.tar.gz ) now.
But it has some error as below:
--------------------Configuration: TestRenderMeshSource - Win32
Release--------------------
Compiling...
TestRenderMeshSource.cxx
D:\darcy01\darcy01\itkSeashellMeshSource.txx(216) : error C2065: 'M_PI' :
undeclared identifier
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xmemory(61) :
while compiling class-template member function 'void __thiscall
itk::SeashellMeshSource<class itk::Mesh<float,3,class
itk::DefaultStaticMeshTraits<float,3,3,float,float,floa
t> > >::GenerateData(void)'
itkTracer.cxx
Generating Code...
Error executing cl.exe.
ALL_BUILD - 1 error(s), 0 warning(s)
=================================================================
I can't find the define about M_PI , Have anybody can give me some help ?
My environment is on the win xp and VC 6.0.
And ITK,VTK,FLTK,SOViewer have been build with Cmake.
My CmakeLists.txt as below :
=================================================================
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 D:/SOViewer/SOViewer)
SET(SOV_BINARY_DIR ${SOV_SOURCE_DIR}/Build)
INCLUDE(${SOV_SOURCE_DIR}/DartConfig.cmake)
# 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
DarcyApp
DarcyBase
itkTracer )
TARGET_LINK_LIBRARIES(darcy
ITKCommon ITKIO ITKSpatialObject
SOViewer
${GLU_LIBRARY}
${GLUT_LIBRARY}
${FLTK_LIBRARY} )
FLTK_WRAP_UI(darcy DarcyGUI.fl)
#---------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20060216/39e7efba/attachment.htm
More information about the Insight-users
mailing list