[vtkusers] vtk headers displays: file not found

Meehan, Bernard MEEHANBT at nv.doe.gov
Thu Jul 31 17:06:30 EDT 2014


Ok - I'm not proficient at MPI development, but I tried to hack together a CMakeLists.txt file that worked on my system.
I used the CMakeLists.txt here as an example:
http://www.cmake.org/pipermail/cmake/2011-June/045037.html

I then tried to get an example to compile (http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filtering/Delaunay2D)

I used this as a CMakeLists.txt, and when I ran it with mpiexec, I got 8 copies of the tutorial:

cmake_minimum_required(VERSION 2.8)

project(Delaunay2D)

find_package(MPI REQUIRED)
find_package(VTK REQUIRED)

include_directories(${MPI_INCLUDE_PATH})
include(${VTK_USE_FILE})

add_executable(Delaunay2D MACOSX_BUNDLE Delaunay2D)

target_link_libraries(Delaunay2D ${MPI_LIBRARIES})

if(MPI_COMPILE_FLAGS)
  set_target_properties(Delaunay2D PROPERTIES COMPILE_FLAGS "${MPI_COMPILE_FLAGS}")
endif()

if(MPI_LINK_FLAGS)
  set_target_properties(Delaunay2D PROPERTIES LINK_FLAGS "${MPI_LINK_FLAGS}")
endif()

if(VTK_LIBRARIES)
  target_link_libraries(Delaunay2D ${VTK_LIBRARIES})
else()
  target_link_libraries(Delaunay2D vtkHybrid vtkWidgets)
endif()

From: the lily <the.1.lily at hotmail.com<mailto:the.1.lily at hotmail.com>>
Date: Thursday, July 31, 2014 12:47 PM
To: "vtkusers at vtk.org<mailto:vtkusers at vtk.org>" <vtkusers at vtk.org<mailto:vtkusers at vtk.org>>
Subject: [vtkusers] vtk headers displays: file not found


Hi,


I'm using mac osx 10.9 " Mavericks", Im trying to run a code that include the following headers,

#include "vtkConeSource.h"
#include "vtkCylinderSource.h"

#include "vtkPolyData.h"
#include "vtkPolyDataMapper.h"
#include "vtkRenderWindow.h"
#include "vtkCamera.h"
#include "vtkActor.h"
#include "vtkRenderer.h"
#include "vtkRenderWindowInteractor.h"
#include "vtkProperty.h"
#include "vtkCallbackCommand.h"
#include "vtkCommand.h"
#include "vtkRendererCollection.h"
#include "vtkFloatArray.h"
#include "vtkCellArray.h"


When I try to run the code it displays the following


mpicxx -c -g -Wno-deprecated -I../../../include -I/Users/lab/software/VTK/include/vtk-5.8  d3.cpp

d3.cpp:20:10: fatal error: 'vtkCylinderSource.h' file not found

#include "vtkCylinderSource.h"

         ^

1 error generated.

make: *** [d3.o] Error 1


I installed vtk by following the steps in this link http://www.developers-life.com/configuring-and-compiling-vtk-6-1-on-mac-os-x-simple-example-of-vtk-usage.html


I do not know what is going wrong and I was not lucky to find any solution online. I hope someone can help me.



Thanks.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140731/738df9fc/attachment.html>


More information about the vtkusers mailing list