[vtkusers] Build of VTKJavaClasses and VTKJavaJar fails

Marco Sambin m.sambin at gmail.com
Fri Mar 1 06:01:01 EST 2013


Hi all.
I made a GIT clone of the VTK 6.0 repository on Feb 27th, and now I am
trying to build VTK on Visual Studio 2010 - Win64.

I've enabled the following flags/groups on CMake (using CMake v2.8.10.2):

BUILD_SHARED_LIBS
VTK_Group_Imaging
VTK_Group_Rendering
VTK_Group_StandAlone
VTK_Group_Views
VTK_WRAP_JAVA

After configuring, then generating, I build the ALL_BUILD project within
the Visual Studio 2010 VTK solution.

Once the build process has finished, I obtain the following final summary:

========== Build: 383 succeeded, 2 failed, 0 up-to-date, 0 skipped
==========

Reviewing the previous error messages, I detected that the VTKJavaClasses
and the VTKJavaJar builds failed. The relevant error message for these
builds seems to be:

====
[...]
 C:\[...]\buildWin64\java\vtk\vtkJavaTesting.java:10: error: cannot find
symbol
382>  import vtk.vtkTesting;
382>            ^
382>    symbol:   class vtkTesting
382>    location: package vtk
[...]
====

Basically, it cannot find the vtkTesting symbol inside the vtk package.

Is this error message related to the fact I did not select the
"BUILD_TESTING" flag in CMake?
Is this behavior expected, or rather it should compile without trying to
import this symbol when the "BUILD_TESTING" flag is off on CMake?

Thanks for any hint on this.
Best regards,

Marco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130301/3ee78842/attachment.htm>


More information about the vtkusers mailing list