Hi,all:<br><br><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">I am building "Darcy0.1"(</span></font> <a href="http://www.cs.mu.oz.au/~gavinb/download.php?file=darcy-0.1.tar.gz">
http://www.cs.mu.oz.au/~gavinb/download.php?file=darcy-0.1.tar.gz</a> <font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">) now.<br><br>But it has some error as below:<br></span></font>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">--------------------Configuration:
TestRenderMeshSource - Win32
Release--------------------</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">Compiling...</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">TestRenderMeshSource.cxx</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">D:\darcy01\darcy01\itkSeashellMeshSource.txx(216)
: error C2065: 'M_PI' : undeclared identifier</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> 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</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">t> >
>::GenerateData(void)'</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">itkTracer.cxx</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">Generating
Code...</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">Error executing
cl.exe.</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">ALL_BUILD - 1 error(s), 0
warning(s)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">=================================================================</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">I can't find the define about M_PI , Have anybody can give me some help ?</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">My environment is on the win xp and
VC 6.0.</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">And ITK,VTK,FLTK,SOViewer have been
build with Cmake.</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">My CmakeLists.txt as below
:</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">=================================================================</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">PROJECT(Darcy)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">#---------------------------------------------------------------------------</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">FIND_PACKAGE(ITK)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">IF(ITK_FOUND)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">
INCLUDE(${ITK_USE_FILE})</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">ELSE(ITK_FOUND)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> MESSAGE(FATAL_ERROR "Cannot build
without ITK. Please set ITK_DIR.")</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">ENDIF(ITK_FOUND)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">FIND_PACKAGE(FLTK)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">IF(FLTK_FOUND)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">
INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">ELSE(FLTK_FOUND)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> MESSAGE(FATAL_ERROR "Cannot build
without FLTK. Please set FLTK_DIR.")</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">ENDIF(FLTK_FOUND)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">FIND_PACKAGE(VTK)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">IF(VTK_FOUND)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> INCLUDE
(${VTK_USE_FILE})</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">ELSE(VTK_FOUND)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> MESSAGE(FATAL_ERROR "Cannot build
without ITK. Please set VTK_DIR.")</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">ENDIF(VTK_FOUND)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"># This should be found as a
package</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"># --> Change this to point to the
correct location</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">SET(SOV_SOURCE_DIR
D:/SOViewer/SOViewer)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">SET(SOV_BINARY_DIR
${SOV_SOURCE_DIR}/Build)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">INCLUDE(${SOV_SOURCE_DIR}/DartConfig.cmake)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"># Just so the generated GUI can find
the Base class</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">INCLUDE_DIRECTORIES(${Darcy_SOURCE_DIR})</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">#---------------------------------------------------------------------------</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">ADD_EXECUTABLE(TestTriangleCellWithNormalAndCentroid</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">
TestTriangleCellWithNormalAndCentroid.cxx)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">TARGET_LINK_LIBRARIES(TestTriangleCellWithNormalAndCentroid</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> ITKCommon
ITKIO)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">#---------------------------------------------------------------------------</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">ADD_EXECUTABLE(TestSeashellMeshSource
TestSeashellMeshSource.cxx itkTracer.cxx)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">TARGET_LINK_LIBRARIES(TestSeashellMeshSource</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> ITKCommon
ITKIO)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">#---------------------------------------------------------------------------</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">ADD_EXECUTABLE(TestRenderMeshSource
TestRenderMeshSource.cxx itkTracer.cxx)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">TARGET_LINK_LIBRARIES(TestRenderMeshSource</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> ITKCommon
ITKIO)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">#---------------------------------------------------------------------------</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">ADD_EXECUTABLE(darcy darcy
</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> DarcyApp
</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">
DarcyBase</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> itkTracer
)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">TARGET_LINK_LIBRARIES(darcy
</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> ITKCommon ITKIO
ITKSpatialObject</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">
SOViewer</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">
${GLU_LIBRARY}</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">
${GLUT_LIBRARY}</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> ${FLTK_LIBRARY}
)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">FLTK_WRAP_UI(darcy
DarcyGUI.fl)</span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></font></p>
<p class="MsoNormal"><font face="Arial" size="1"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">#---------------------------------------------------------------------------</span></font></p><br><br><br>