[vtkusers] vtk in c++ question (fwd)

Galen Wilkerson galen at compbio.washington.edu
Wed Jan 15 18:45:22 EST 2003


Don't mean to fill your inbox, but it looks like the * does work, but for 
some reason it still isn't finding them when I compile.   Here's my 
environment variable:

PATH=.:/home/galen/bin:/usr/java/j2sdk1.4.1/bin:/home/galen/bin/RealPlayer8/:/tmp_mnt/singularity/maxa/home/galen/j2sdk1.4.0_02/bin:/bin:/sbin:/etc:/usr/bin:/usr/ucb:/usr/sbin:/usr/bsd:/usr/local/bin:/usr/bin/X11:/usr/etc:/maxa/home/galen/src/cmake-new/bin:/maxa/home/galen/src/vtk/VTK/CMake:/maxa/home/galen/src/vtk/VTK/CMakeCache.txt:/maxa/home/galen/src/vtk/VTK/CMakeLists.txt:/maxa/home/galen/src/vtk/VTK/Common:/maxa/home/galen/src/vtk/VTK/Copyright.txt:/maxa/home/galen/src/vtk/VTK/DartConfig.cmake:/maxa/home/galen/src/vtk/VTK/Examples:/maxa/home/galen/src/vtk/VTK/Filtering:/maxa/home/galen/src/vtk/VTK/Graphics:/maxa/home/galen/src/vtk/VTK/Hybrid:/maxa/home/galen/src/vtk/VTK/Imaging:/maxa/home/galen/src/vtk/VTK/IO:/maxa/home/galen/src/vtk/VTK/Parallel:/maxa/home/galen/src/vtk/VTK/Patented:/maxa/home/galen/src/vtk/VTK/README.html:/maxa/home/galen/src/vtk/VTK/Rendering:/maxa/home/galen/src/vtk/VTK/TestingLogo.gif:/maxa/home/galen/src/vtk/VTK/Testing.txt:/maxa/home/galen/src/v!
tk/VTK/UseVTK.cmake.in:/maxa/home/galen/src/vtk/VTK/Utilities:/maxa/home/galen/src/vtk/VTK/vtkCMakeOptions.cmake:/maxa/home/galen/src/vtk/VTK/vtkConfigure.h.in:/maxa/home/galen/src/vtk/VTK/vtkLogo.jpg:/maxa/home/galen/src/vtk/VTK/vtkToolkits.h.in:/maxa/home/galen/src/vtk/VTK/Wrapping


the vtk stuff appears at the end.

but when I use g++, it still gives the error:

galen at singularity%g++ sphere.cc 
sphere.cc:1:29: vtkSphereSource.h: No such file or directory
sphere.cc:2:31: vtkPolyDataMapper.h: No such file or directory
sphere.cc:3:22: vtkActor.h: No such file or directory
sphere.cc:4:29: vtkRenderWindow.h: No such file or directory
sphere.cc:5:25: vtkRenderer.h: No such file or directory
sphere.cc:6:39: vtkRenderWindowInteractor.h: No such file or directory

thanks,
Galen











On Wed, 15 Jan 2003, Henry Zhang wrote:

> 
> This depends on what shell you are using.
> step 1: echo $SHELL
>  	  could be csh or bsh
> 
> step 2: if csh, open .cshrc file, use
>        set path = ($path /usr/vtk40/...)
>        where /usr/vtk40/.... is assumed to be the path to your .h files.
>        maybe you use different one.
> 
>        if bsh, open .bashrc file, do the same thing
>        PATH=$PATH\:path_name_to_your_dot_h_files
> 	 export PATH
> 
> step 3: source .bashrc or source .cshrc to tell the system your changes.
> 
> Henry
> 
> 
> 
> -----Original Message-----
> From: vtkusers-admin at public.kitware.com
> [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Galen Wilkerson
> Sent: January 15, 2003 2:58 PM
> To: vtkusers at public.kitware.com
> Subject: [vtkusers] vtk in c++ question
> 
> 
> 
> Hi,
> 
> Pardon my ignorance, but I've been using vtk with python up until now.
> 
> How do I compile a vtk c++ program?
> 
> I have vtk version 4.0, and redhat 7.3.  when I compile the sphere example
> with g++, I get the following errors.  I think I just need to set some
> environment variables -
> 
> %g++ sphere.cc
> sphere.cc:1:29: vtkSphereSource.h: No such file or directory
> sphere.cc:2:31: vtkPolyDataMapper.h: No such file or directory
> sphere.cc:3:22: vtkActor.h: No such file or directory
> sphere.cc:4:29: vtkRenderWindow.h: No such file or directory
> sphere.cc:5:25: vtkRenderer.h: No such file or directory
> sphere.cc:6:39: vtkRenderWindowInteractor.h: No such file or directory
> 
> 
> thanks!
> 
> -Galen
> 
> Computational Biology Research Group
> http://compbio.washington.edu/
> phone: 206 732 6127
> fax: 206 732 6055
> 
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
> 

-Galen

Computational Biology Research Group
http://compbio.washington.edu/
phone: 206 732 6127
fax: 206 732 6055





More information about the vtkusers mailing list