<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Georgia, sans-serif; ">
<div>Ok - I'm not proficient at MPI development, but I tried to hack together a CMakeLists.txt file that worked on my system.</div>
<div>I used the CMakeLists.txt here as an example:</div>
<div><a href="http://www.cmake.org/pipermail/cmake/2011-June/045037.html">http://www.cmake.org/pipermail/cmake/2011-June/045037.html</a></div>
<div><br>
</div>
<div>I then tried to get an example to compile (<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filtering/Delaunay2D">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filtering/Delaunay2D</a>)</div>
<div><br>
</div>
<div>I used this as a CMakeLists.txt, and when I ran it with mpiexec, I got 8 copies of the tutorial:</div>
<div><br>
</div>
<div>
<div>cmake_minimum_required(VERSION 2.8)</div>
<div><br>
</div>
<div>project(Delaunay2D)</div>
<div><br>
</div>
<div>find_package(MPI REQUIRED)</div>
<div>find_package(VTK REQUIRED)</div>
<div><br>
</div>
<div>include_directories(${MPI_INCLUDE_PATH})</div>
<div>include(${VTK_USE_FILE})</div>
<div><br>
</div>
<div>add_executable(Delaunay2D MACOSX_BUNDLE Delaunay2D)</div>
<div><br>
</div>
<div>target_link_libraries(Delaunay2D ${MPI_LIBRARIES})</div>
<div><br>
</div>
<div>if(MPI_COMPILE_FLAGS)</div>
<div> set_target_properties(Delaunay2D PROPERTIES COMPILE_FLAGS "${MPI_COMPILE_FLAGS}")</div>
<div>endif()</div>
<div><br>
</div>
<div>if(MPI_LINK_FLAGS)</div>
<div> set_target_properties(Delaunay2D PROPERTIES LINK_FLAGS "${MPI_LINK_FLAGS}")</div>
<div>endif()</div>
<div><br>
</div>
<div>if(VTK_LIBRARIES)</div>
<div> target_link_libraries(Delaunay2D ${VTK_LIBRARIES})</div>
<div>else()</div>
<div> target_link_libraries(Delaunay2D vtkHybrid vtkWidgets)</div>
<div>endif()</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>the lily <<a href="mailto:the.1.lily@hotmail.com">the.1.lily@hotmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, July 31, 2014 12:47 PM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
<span style="font-weight:bold">Subject: </span>[vtkusers] vtk headers displays: file not found<br>
</div>
<div><br>
</div>
<div><style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div class="hmmessage">
<div dir="ltr">
<div><br>
</div>
<div>Hi, </div>
<div><br>
</div>
<div><br>
</div>
<div>I'm using mac osx 10.9 " Mavericks", Im trying to run a code that include the following headers, </div>
<div><br>
</div>
<div>
<div>#include "vtkConeSource.h"</div>
<div>#include "vtkCylinderSource.h"</div>
<div><br>
</div>
<div>#include "vtkPolyData.h"</div>
<div>#include "vtkPolyDataMapper.h"</div>
<div>#include "vtkRenderWindow.h"</div>
<div>#include "vtkCamera.h"</div>
<div>#include "vtkActor.h"</div>
<div>#include "vtkRenderer.h"</div>
<div>#include "vtkRenderWindowInteractor.h"</div>
<div>#include "vtkProperty.h"</div>
<div>#include "vtkCallbackCommand.h"</div>
<div>#include "vtkCommand.h"</div>
<div>#include "vtkRendererCollection.h"</div>
<div>#include "vtkFloatArray.h"</div>
<div>#include "vtkCellArray.h"</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>When I try to run the code it displays the following </div>
<div><br>
</div>
<div>
<p class="p1">mpicxx -c -g -Wno-deprecated -I../../../include -I/Users/lab/software/VTK/include/vtk-5.8 d3.cpp</p>
<p class="p2">d3.cpp:20:10: <span class="s1">fatal error: </span>'vtkCylinderSource.h' file not found</p>
<p class="p1">#include "vtkCylinderSource.h"</p>
<p class="p3"> ^</p>
<p class="p1">1 error generated.</p>
<p class="p1">make: *** [d3.o] Error 1</p>
<p class="p1"><br>
</p>
<p class="p1">I installed vtk by following the steps in this link <a href="http://www.developers-life.com/configuring-and-compiling-vtk-6-1-on-mac-os-x-simple-example-of-vtk-usage.html" target="_blank" style="font-size: 12pt;">http://www.developers-life.com/configuring-and-compiling-vtk-6-1-on-mac-os-x-simple-example-of-vtk-usage.html</a></p>
<p class="p1"><br>
</p>
<p class="p1">I do not know what is going wrong and I was not lucky to find any solution online. I hope someone can help me.</p>
<p class="p1"><br>
</p>
<p class="p1"><br>
</p>
<p class="p1">Thanks.</p>
<p class="p1"><br>
</p>
<p class="p1"><br>
</p>
</div>
</div>
</div>
</div>
</span>
</body>
</html>