[vtkusers] How to compile a simple vtk C++ code ?!!

luisc l.perez at iturribizia.com
Mon Nov 27 06:30:12 EST 2006


You can use cmake from command line. If you have any reason to avoid use
of cmake you will need add many -I /foo/header.h and -L /bar/... (I use
GNU c++) to help the compiler find the headers and the libraries. I
think this is a bad idea.

Regards.

Luis Claudio Pérez Tato.


El lun, 27-11-2006 a las 18:46 +0800, Davood Ansari escribió:
> Hi again
>  
> Actually I have just intalled vtk after I got cmake running under my
> Suse linux OS.
> During the build I asked the installer to build the examples as well.
> Now I am able to run
> the already compiled examples placed in vtk's bin directory. The
> existing problem is 
> that I cannot complie other examples by directly inviking gcc. The
> compiler fails to find 
> the header files (vtk.h etc). What should I do ?
>  
> Let's say I am willing to compile the step1 program in the tutorials
> directly using gcc and
> from the command line. How can I compile it without using cmake and by
> direct invokment of gcc?
>  
> Thanks in Advance
> Davood Ansari O.B.
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list