[vtkusers] VTK 4.2 on RedHat 9

Craig N. Scott craig.scott at csiro.au
Wed Aug 25 23:17:08 EDT 2004


You still need to do a "make install" after the "make". The "make
install" step needs to be done as root if you are installing into
/usr/local but the "make" step can be done as a regular user if you have
write access to the build area.


On Thu, 2004-08-26 at 11:15, Juan Aja wrote:
> Hi.
> I've been struggling with the vtk installation on RedHat 9.
> I downloaded the file VTK-4.2-LatestRelease.tar.gz from vtk.org, untared and 
> basically followed the instructions on Readme.html.
> I ran cmake -i and answered the questions one by one (I'm trying to do a 
> basic install, just the right things to work with vtk in C and C++), then as 
> root I did make, everything went perfect.
> 
> But when I tried to look for the vtk directory in /usr/local or in /us/lib I 
> didn't found anything, somehow the installation was made in the VTK source 
> directory (and I specifically told cmake to build it in /usr/local). Any 
> ideas?.
> 
> Also I can't manage to compile a simple example taken from: 
> http://public.kitware.com/VTK/example-code.php
> 
> #include "vtkSphereSource.h"
> #include "vtkPolyDataMapper.h"
> #include "vtkActor.h"
> #include "vtkRenderWindow.h"
> #include "vtkRenderer.h"
> #include "vtkRenderWindowInteractor.h"
> 
> void main ()
> {
> 
>   // create sphere geometry
>   vtkSphereSource *sphere = vtkSphereSource::New();
>   sphere->SetRadius(1.0);
>   sphere->SetThetaResolution(18);
>   sphere->SetPhiResolution(18);
> 
>   // map to graphics library
>   vtkPolyDataMapper *map = vtkPolyDataMapper::New();
>   map->SetInput(sphere->GetOutput());
> 
>   // actor coordinates geometry, properties, transformation
>   vtkActor *aSphere = vtkActor::New();
>   aSphere->SetMapper(map);
>   aSphere->GetProperty()->SetColor(0,0,1); // sphere color blue
> 
>   // a renderer and render window
>   vtkRenderer *ren1 = vtkRenderer::New();
>   vtkRenderWindow *renWin = vtkRenderWindow::New();
>   renWin->AddRenderer(ren1);
> 
>   // an interactor
>   vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();
>   iren->SetRenderWindow(renWin);
> 
>   // add the actor to the scene
>   ren1->AddActor(aSphere);
>   ren1->SetBackground(1,1,1); // Background color white
> 
>   // render an image (lights and cameras are created automatically)
>   renWin->Render();
> 
>   // begin mouse interaction
>   iren->Start();
> }
> 
> It appears that the libraries needed can't be found, so could you tell me 
> how could I compile this simple example?
> 
> Thanks a lot.
> 
> _________________________________________________________________
> Add photos to your messages with MSN 8. Get 2 months FREE*. 
> http://join.msn.com/?page=features/featuredemail
> 
> _______________________________________________
> 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://www.vtk.org/mailman/listinfo/vtkusers
-- 
Craig Scott, CSIRO (CMIS)
Ph:  +613 9545 8096

Computers are easy to reboot. Attitudes are much harder.




More information about the vtkusers mailing list