[vtkusers] Problem Building VTKJava project

David Cole david.cole at kitware.com
Mon Oct 6 16:59:24 EDT 2008


This is a dependency/build ordering issue which has since been fixed.
Upgrade to VTK 5.2.0 if you can.
If you must stick with VTK 5.0.4, just build and build again until
everything builds successfully.


On Thu, Sep 18, 2008 at 4:57 PM, Mark Henning <mdh at gldnrtvr.com> wrote:

> Good Day,
>
> I have failed to produce a Java wrapper for VTK at least half-a dozen
> times.
> I copied the code from the 5.0.4 toolkit CD.  I am using CMake 2.4 patch 3
> from the CD.
>
> I have tried VS 2005, VS 2003, JDK 1.5.0_16, 1.6.0_7, j2rel1.4.2_11 in
> multiple combinations.
>
> Each time I wipe out my binary directory (C:\VTKBin); run CMake 2.4 and set
> BUILD_SHARED_LIBS on,
> and VTK_WRAP_JAVA on.  I show advanced values and make all the paths for
> the Java version I am trying to use consistent, then configure and ok;  I
> load the visual studio version I indicated when I ran CMake, then use the
> Build->Build menu item.
>
> Each time I do this, for each permutation I get the following 3 errors:
>
> VTKJavaJar error PRJ0019: A tool returned an error code from "Generating
> ../../java/vtk/vtkCanvas.class"
> VTKBuildAll error PRJ0019: A tool returned an error code from "Generating
> ../../java/vtk/vtkBuildAllDriver.class"
> VTKJava error PRJ0019: A tool returned an error code from "Generating
> ../../java/vtk/vtkCanvas.class"
>
> If I look at the output, the first error is in the VTKJava project and
> spits out dozens of errors like those below:
>
> Generating ../../java/vtk/vtkCanvas.class
> C:/VTKBin/java/vtk/vtkCanvas.java:9: cannot resolve symbol
> symbol  : class vtkGenericRenderWindowInteractor
> location: class vtk.vtkCanvas
>  protected vtkGenericRenderWindowInteractor iren = new
> vtkGenericRenderWindowInteractor();
>            ^
> C:\VTKBin\java\vtk\..\vtk\vtk3DWidget.java:7: cannot resolve symbol
> symbol  : class vtkInteractorObserver
> location: class vtk.vtk3DWidget
> public class vtk3DWidget extends vtkInteractorObserver
>                                 ^
> C:/VTKBin/java/vtk/vtkCanvas.java:66: cannot resolve symbol
> symbol  : class vtkGenericRenderWindowInteractor
> location: class vtk.vtkCanvas
>  public vtkGenericRenderWindowInteractor getIren() {
>
> Does anyone have any advice?  This is really becoming frustrating.
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081006/4bb28a1f/attachment.htm>


More information about the vtkusers mailing list