[vtkusers] vtk headers displays: file not found
Meehan, Bernard
MEEHANBT at nv.doe.gov
Thu Jul 31 19:09:45 EDT 2014
I'm not sure that anyone gets anything back when they type: `which vtk` - you might get something for `which vtkpython` if you built the Python wrappers though. I believe that the only issue I had with Mavericks was that there was an advanced option that I had to remove from an option. This is discussed here: http://public.kitware.com/pipermail/vtkusers/2014-March/083368.html. If you don't remove the -fobjc-gc from VTK_REQUIRED_OBJCXX_FLAGS, you'll have another confusing problem.
For what it's worth, my ccmake line was something like this:
ccmake .. -Wno_dev -DCMAKE_INSTALL_PREFIX=~/VTK
(and then I changed some stuff in the interface, mentioned in the link above)
The ccmake line you used doesn't look like there is anything wrong with it, but I didn't personally try it.
Probably the best way to check out if you're set up correctly is to download one of the example programs from the VTK wiki, such as:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/SolidClip
and just follow the directions. They're pretty painless to download and try, and it is probably the best way to start learning it. If you're very new - like me - I would also recommend the User's Guide. A few dollars spent now is probably worth many many many frustrating hours staring at your terminal.
http://www.vtk.org/VTK/help/book.html
From: the lily <the.1.lily at hotmail.com<mailto:the.1.lily at hotmail.com>>
Date: Thursday, July 31, 2014 3:53 PM
To: Tim Meehan <meehanbt at nv.doe.gov<mailto:meehanbt at nv.doe.gov>>, "vtkusers at vtk.org<mailto:vtkusers at vtk.org>" <vtkusers at vtk.org<mailto:vtkusers at vtk.org>>
Subject: RE: [vtkusers] vtk headers displays: file not found
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<mailto:MEEHANBT at nv.doe.gov>
To: the.1.lily at hotmail.com<mailto:the.1.lily at hotmail.com>; vtkusers at vtk.org<mailto: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<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/88d52c02/attachment.html>
More information about the vtkusers
mailing list