[vtkusers] Re: How to embed C++ vtk screen/window/panel into Java, Swing Frame/Panel/Window? ----- build error when JavaWrapper is turned on

David Cole david.cole at kitware.com
Thu Apr 12 17:32:39 EDT 2007


Can you update VTK to the CVS main tree? Or do you need to use VTK 5.0...?

I would try CVS VTK first, then a newer Visual Studio second... :-)


On 4/12/07, Mei, Longyu <LMei at analogic.com> wrote:
>
> There is no change if keep building, same error messages without any
> move. I am wondering maybe I cannot use VC++ 6.0 to build java. But if
> not, what I should do next?
>
> -----Original Message-----
> From: David Cole [mailto:david.cole at kitware.com]
> Sent: Thursday, April 12, 2007 5:06 PM
> To: Mei, Longyu
> Cc: Sebastien Jourdain; vtkusers at vtk.org
> Subject: Re: [vtkusers] Re: How to embed C++ vtk screen/window/panel
> into Java, Swing Frame/Panel/Window? ----- build error when JavaWrapper
> is turned on
>
> What version of VTK?
> What version of CMake?
>
> There are some "dependency rule" problems with Java wrapping in the
> VTK-5-0 branch, but these should be fixed in the main CVS tree... If you
> can update to the main CVS tree, you'll have a better time trying to get
> VTK's Java wrappers to build.
>
> The dependency problems just affect building it properly the first time.
> If you keep trying to build incrementally, you should get further and
> further each time until you've got a good build. (If I recall corretly,
> from about a year ago, I had to build three times to get everything
> built with VTK 5.0...)
>
>
> HTH,
> David
>
>
> On 4/12/07, Mei, Longyu <LMei at analogic.com> wrote:
> >
> > I cannot build the VTK with the Java Wrapper turns on. I tried several
>
> > times. But if I turn off it, it got compiled.
> >
> > I use VC++ 6.0 on WindowsXP.  Do I need any special set up to do the
> > build with Java Wrapper turned on?  Or I should not use VC++ 6.0 to
> > compile the java wrapper? but it is included in ALL_BUILD project.
> >
> > Error Message is followed.  Please help:
> >
> >
> > --------------------Configuration: WidgetsCxxTests - Win32
> > Debug--------------------
> > Compiling...
> > WidgetsCxxTests.cxx
> > BoxWidget.cxx
> > TestImplicitPlaneWidget.cxx
> > TestOrientationMarkerWidget.cxx
> > ImagePlaneWidget.cxx
> > TestSplineWidget.cxx
> > TestScalarBarWidget.cxx
> > TestLineWidget.cxx
> > TestPlaneWidget.cxx
> > TestPointWidget.cxx
> > TestImageTracerWidget.cxx
> > Generating Code...
> > Linking...
> > --------------------Configuration: VTKBuildAll - Win32
> > Debug--------------------
> > Generating ../../java/vtk/vtkBuildAllDriver.class
> > C:\VTK\bin_withJavaWrapper\java\vtk\..\vtk\vtkVTKJavaCommonDriver.java
> > :1
> > 1: cannot find symbol
> > symbol  : class vtkAbstractArray
> > location: class vtk.vtkVTKJavaCommonDriver
> >     dummy = new vtkAbstractArray();
> >                 ^
> > C:\VTK\bin_withJavaWrapper\java\vtk\..\vtk\vtkVTKJavaCommonDriver.java
> > :1
> > 2: cannot find symbol
> > symbol  : class vtkAbstractTransform
> > location: class vtk.vtkVTKJavaCommonDriver
> >     dummy = new vtkAbstractTransform();
> >                 ^
> > C:\VTK\bin_withJavaWrapper\java\vtk\..\vtk\vtkVTKJavaCommonDriver.java
> > :1
> > 3: cannot find symbol
> > symbol  : class vtkAmoebaMinimizer
> > location: class vtk.vtkVTKJavaCommonDriver
> >     dummy = new vtkAmoebaMinimizer();
> >                 ^
> > C:\VTK\bin_withJavaWrapper\java\vtk\..\vtk\vtkVTKJavaCommonDriver.java
> > :1
> > 4: cannot find symbol
> > symbol  : class vtkAnimationCue
> > location: class vtk.vtkVTKJavaCommonDriver
> >     dummy = new vtkAnimationCue();
> >                 ^
> > C:\VTK\bin_withJavaWrapper\java\vtk\..\vtk\vtkVTKJavaCommonDriver.java
> > :1
> > 5: cannot find symbol
> > symbol  : class vtkAnimationScene
> > location: class vtk.vtkVTKJavaCommonDriver
> >     dummy = new vtkAnimationScene();
> >                 ^
> > C:\VTK\bin_withJavaWrapper\java\vtk\..\vtk\vtkVTKJavaCommonDriver.java
> > :1
> > 6: cannot find symbol
> > symbol  : class vtkAssemblyNode
> > location: class vtk.vtkVTKJavaCommonDriver
> >     dummy = new vtkAssemblyNode();
> >
> >
> >
> >
> >
> > -----Original Message-----
> > From: vtkusers-bounces+lmei=analogic.com at vtk.org
> > [mailto:vtkusers-bounces+lmei=analogic.com at vtk.org] On Behalf Of
> > Sebastien Jourdain
> > Sent: Wednesday, April 11, 2007 2:35 PM
> > To: vtkusers at vtk.org
> > Subject: [vtkusers] Re: How to embed C++ vtk screen/window/panel into
> > Java,Swing Frame/Panel/Window?
> >
> > Hello James Mei,
> >
> > As I understand, you don't want to use the java wrapping of vtk
> > because you are afraid of performance ?
> > What kind of performance lost could you get by using the Java wrapping
>
> > of VTK since all the data processing will still be done in C++ ?
> >
> > I might not understand your needs, but I think you will save time by
> > using the provided Java wrapping of VTK with no performance loss
> > compared to the C++ layer as you are already using a swing client
> > application.
> >
> > Regards,
> >
> > Seb
> >
> > > I am new to VTK. We are thinking of using C++ VTK as a image viewer
> > > in
> >
> > > our Java Swing application. We don't want to use Java VTK because we
>
> > > want to maxmaize the viewer's performance. There is no many
> > > information back and forth between Java side and the viewer (C++
> > > VTK) side. I think it may be a good idea to do so by using JNI to
> > > connect
> > them together.
> > >
> > > Anybody can help with detailed steps, sample code or related links?
> > >
> > > Thanks,
> > >
> > > James Mei
> > >
> > > ****************************************************************
> > > The information transmitted in this message is confidential and may
> > > be
> > privileged.  Any review, retransmission, dissemination, or other use
> > of this information by persons or entities other than the intended
> > recipient is prohibited.  If you are not the intended recipient,
> > please notify Analogic Corporation immediately - by replying to this
> > message or by sending an email to DeliveryErrors at analogic.com - and
> > destroy all copies of this information, including any attachments,
> > without reading or disclosing them.
> > >
> > > Thank you.
> > >
> >
> > _______________________________________________
> > 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
> >
> > ****************************************************************
> > The information transmitted in this message is confidential and may be
> privileged.  Any review, retransmission, dissemination, or other use of
> this information by persons or entities other than the intended
> recipient is prohibited.  If you are not the intended recipient, please
> notify Analogic Corporation immediately - by replying to this message or
> by sending an email to DeliveryErrors at analogic.com - and destroy all
> copies of this information, including any attachments, without reading
> or disclosing them.
> >
> > Thank you.
> > _______________________________________________
> > 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
> >
>
> ****************************************************************
> The information transmitted in this message is confidential and may be privileged.  Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited.  If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors at analogic.com - and destroy all copies of this information, including any attachments, without reading or disclosing them.
>
> Thank you.
>



More information about the vtkusers mailing list