[vtkusers] vtk headers displays: file not found

the lily the.1.lily at hotmail.com
Thu Jul 31 18:53:28 EDT 2014


Hi,
How can I know that I installed vtk right?I'm typing which vtk and I'm not getting anything back.
this is how I installed vtk
ccmake . -G "UNIX Makefiles" -DVTK_USE_QVTK:BOOL=ON -DVTK_USE_COCOA:BOOL=ON -DVTK_USE_CARBON:BOOL=OFF -DCMAKE_OSX_ARCHITECTURES:STRING=x86_64 -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_SHARED_LIBS:BOOL=OFF
I installed version 6.1
Thanks
From: MEEHANBT at nv.doe.gov
To: the.1.lily at hotmail.com; vtkusers at vtk.org
Subject: Re: [vtkusers] vtk headers displays: file not found
Date: Thu, 31 Jul 2014 20:49:39 +0000






It sounds like you don't have your environment set up correctly.
I run OS X Lion, and I have VTK installed in "~/VTK" and I do both C++ and Python development using VTK.



My ".bash_profile" is:




export VTK=~/VTK
export PATH=$PATH:$VTK/bin
export PYTHONPATH=$PYTHONPATH:$VTK/lib/python2.7/site-packages
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$VTK/lib



export PATH=$PATH:/Applications/CMake.app/Contents/bin
export MANPATH=$MANPATH:/Applications/CMake.app/Contents/man




If that doesn't work, let us see your environment setup, and where you put VTK at. I tried to load your link and couldn't get to the page. It is VERY likely that the problem is on my end.





From: the lily <the.1.lily at hotmail.com>

Date: Thursday, July 31, 2014 12:47 PM

To: "vtkusers at vtk.org" <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/20140801/09f4fc5f/attachment.html>


More information about the vtkusers mailing list