[vtkusers] Very basic question on importing the .h files
Prabhu Ramachandran
prabhu at aero.iitm.ernet.in
Sat May 4 02:46:23 EDT 2002
>>>>> "MR" == Mike Robertson <fermion at mac.com> writes:
MR> How do I set up my system so that the c++, etc. compilers know
MR> where to find such files as ... ? example.c++:1:
MR> vtkQuadric.h: No such file or directory example.c++:2:
To build off CVS I have a trivial shell script called vtkcc that does
the job.
--------------------------------------------------
#!/bin/sh
# Edit this file to suit your needs
VTK_PATH=_path_to_/cvs/VTK
g++ -I$VTK_PATH -I$VTK_PATH/Common -I$VTK_PATH/Filtering \
-I$VTK_PATH/Graphics -I$VTK_PATH/Hybrid -I$VTK_PATH/IO \
-I$VTK_PATH/Imaging -I$VTK_PATH/Patented \
-I$VTK_PATH/Rendering -I/usr/X11R6/include/X11 \
-L $VTK_PATH/lib -lvtkCommon -lvtkFiltering -lvtkGraphics \
-lvtkHybrid -lvtkIO -lvtkImaging -lvtkPatented -lvtkRendering $@
--------------------------------------------------
Modify the -L $VTK_PATH/lib to the directory that contains the
libraries (libvtk*). Copy the above to a file, make it executable and
then compile away using vtkcc instead of cc. Something like so:
vtkcc test.c -o test -O2 -g
prabhu
More information about the vtkusers
mailing list