[vtkusers] VTK and Eclipse

Steve M. Robbins steven.robbins at videotron.ca
Tue Jun 7 21:32:40 EDT 2005

On Tue, May 31, 2005 at 11:11:29AM -0400, Lauren Cohen wrote:
> I'm a new user to VTK, and I am attempting to develop C++ and/or Java 
> applications with it using the Eclipse IDE. The user's guide suggests to 
> compile binaries from the source code using CMake before beginning to program; 
> however, though Borland and MS Visual C++ compilers are represented in CMake, 
> Eclipse is not. Has anyone encountered such a problem before, and how would one 
> go about compiling or otherwise acquiring binaries?

I've used Eclipse to write VTK-based programs in java.  There are two
steps to the process.

1. Acquire VTK binaries: the libraries and vtk.jar.  I built mine for
linux with GCC.  I imagine it would work equally well to install
pre-built binaries from the website or CD.

2. Tell eclipse where to find them.  For the jar, I simply set it
as an "external jar" in the eclipse project "build path" options.  
For the libraries, I simply set LD_LIBRARY_PATH before running eclipse.
I imagine that there's an analogous procedure on windows.

Hope this helps,

More information about the vtkusers mailing list