[vtkusers] UnsatisfiedLinkError: VTKInit in vtk 5.0.2 java libs
ThorPrime
thorprime at gmail.com
Wed Feb 7 20:51:51 EST 2007
Actually, I already had that exact function copied over from the samples.
Right now almost everything works (I can generate Isosurfaces just fine) but
volume mapping just doesn't seem to work.
On 2/7/07, Bartlomiej Wilkowski <wilku_83 at o2.pl> wrote:
>
> Load these libraries in the beginning of your MAIN class in the way I
> describe below. Just after* public class XXX {*
>
> // in the static contructor we load in the native code
> // The libraries must be in your path to work
> *static {
> System.loadLibrary("vtkCommonJava");
> System.loadLibrary("vtkFilteringJava");
> System.loadLibrary("vtkIOJava");
> System.loadLibrary("vtkImagingJava");
> System.loadLibrary("vtkGraphicsJava");
> System.loadLibrary("vtkRenderingJava");*
> * }*
> (...)
> *}*
>
> I had this problem and it works now thanks to the vtk community.
>
> Bartek
>
>
> On 2/7/07, thorprime <thorprime at gmail.com> wrote:
> >
> >
> >
> >
> > Sean McBride wrote:
> > >
> > > On 2007-02-07 11:16, thorprime said:
> > >
> > >>
> > >>When attempting to create a vtkVolumeRayCastMapper or
> > >>vtkVolumeTextureMapper2D simply initializing the class with
> > >>" vtkVolumeTextureMapper2D volumeMapper = new
> > vtkVolumeTextureMapper2D();"
> > >>creates the following error:
> > >>
> > >>Exception in thread "main" java.lang.UnsatisfiedLinkError: VTKInit
> > >> at vtk.vtkVolumeTextureMapper2D.VTKInit(Native Method)
> > >> at vtk.vtkObject.<init>(vtkObject.java:90)
> > >> at vtk.vtkAlgorithm.<init>(vtkAlgorithm.java:246)
> > >> at vtk.vtkAbstractMapper.<init>(vtkAbstractMapper.java:58)
> > >> at vtk.vtkAbstractMapper3D.<init>(vtkAbstractMapper3D.java:46)
> > >> at vtk.vtkAbstractVolumeMapper.<init>(
> > vtkAbstractVolumeMapper.java:30)
> > >> at vtk.vtkVolumeMapper.<init>(vtkVolumeMapper.java :122)
> > >> at vtk.vtkVolumeTextureMapper.<init>(vtkVolumeTextureMapper.java
> > :34)
> > >> at vtk.vtkVolumeTextureMapper2D.<init>(
> > vtkVolumeTextureMapper2D.java:46)"
> > >>
> > >>this is using th 5.0.2 release under OSX compiled to use carbon and
> > cocoa.
> > I
> > >
> > > Carbon *and* Cocoa? I'm pretty sure cmake forbids trying to set those
> > > both to ON. In any case, you must set one to ON and the other to OFF.
> >
> > >
> > >>am going to try it again with the CVS later.
> > >
> > > As I said earlier today, I'm pretty sure VTK using Java is currently
> > > broken on the Mac, at least on Intel. There was a long thread on this
> >
> > > recently, you might want to check the archives.
> > >
> > > --
> > > ____________________________________________________________
> > > Sean McBride, B. Eng sean at rogue-research.com
> > > Rogue Research www.rogue-research.com
> > > Mac Software Developer Montréal, Québec, Canada
> > >
> > >
> >
> > What I meant by Carbon and Cocoa is that I built both versions
> > separately
> > and tried both version with the same result.
> >
> > I'll go ahead and check the archives, but I think I'll just try
> > continuing
> > my work under windows for now.
> > --
> > View this message in context: http://www.nabble.com/UnsatisfiedLinkError%3A-VTKInit-in-vtk-5.0.2-java-libs-tf3189036.html#a8853860
> >
> > Sent from the VTK - Users mailing list archive at Nabble.com<http://nabble.com/>
> > .
> >
> > _______________________________________________
> > 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/20070207/eecf5954/attachment.htm>
More information about the vtkusers
mailing list