[vtkusers] help

Baki Onur Gür (ARGE-VESTMAN) baki.gur at vestel.com.tr
Thu Aug 29 06:35:10 EDT 2002


> -----Original Message-----
> From:	vtkusers-request at public.kitware.com
> [SMTP:vtkusers-request at public.kitware.com]
> Sent:	Thursday, August 29, 2002 1:38 PM
> To:	vtkusers at public.kitware.com
> Subject:	vtkusers digest, Vol 1 #1214 - 6 msgs
> 
> Send vtkusers mailing list submissions to
> 	vtkusers at public.kitware.com
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://public.kitware.com/mailman/listinfo/vtkusers
> or, via email, send a message with subject or body 'help' to
> 	vtkusers-request at public.kitware.com
> 
> You can reach the person managing the list at
> 	vtkusers-admin at public.kitware.com
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of vtkusers digest..."
> 
> 
> Today's Topics:
> 
>    1. UnsatisfiedLinkError java +unix+solaris (Kumar, Preethish M (MED))
>    2. Re: Re: Re: Re: Building VTK with Kylix bc++ (Stefan Bruckner)
>    3. Antw: [vtkusers] 'Undefined Reference' while compiling? (Gregory
> Bleiker)
>    4. vtkRnendererCollection problem with java (Simon Chatelain)
>    5. About vtkDataObjectToDataSetFilter (Guangning Pei)
>    6. Re: Re: Re: Re: Re: Building VTK with Kylix bc++ (John Biddiscombe)
> 
> --__--__--
> 
> Message: 1
> From: "Kumar, Preethish M (MED)" <PreethishK at geind.ge.com>
> To: vtkusers at public.kitware.com
> Date: Thu, 29 Aug 2002 09:36:14 +0530
> Subject: [vtkusers] UnsatisfiedLinkError java +unix+solaris
> 
> hai,
> 
>    i installed the vtk with --with-java and --with-shared option and
> make.everything went fine.after that i set LD_LIBRARY_PATH to every *.so
> file generated and compiled  and ran Regression.java. i got the following
> unsatisfied link error.can any one help.thank u in advance
> 
> 
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no vtkJava in
> java.library.path
>         at java.lang.Throwable.fillInStackTrace(Native Method)
>         at java.lang.Throwable.fillInStackTrace(Compiled Code)
>         at java.lang.Throwable.<init>(Compiled Code)
>         at java.lang.Error.<init>(Error.java:50)
>         at java.lang.LinkageError.<init>(LinkageError.java:43)
>         at
> java.lang.UnsatisfiedLinkError.<init>(UnsatisfiedLinkError.java:42)
>         at java.lang.ClassLoader.loadLibrary(Compiled Code)
>         at java.lang.Runtime.loadLibrary0(Runtime.java:473)
>         at java.lang.System.loadLibrary(System.java:778)
>         at <Unloaded Method>
> 
> 
> "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
> ADDRESSEE and may contain confidential and privileged information.
> If the reader of this message is not the intended recipient,
> you are notified that any dissemination, distribution or copy of this 
> communication is strictly Prohibited. 
> If you have received this message by error, please notify us 
> immediately, return the original mail to the sender and delete the 
> message from your system."
> 
> 
> --__--__--
> 
> Message: 2
> From: Stefan Bruckner <stefan.bruckner at chello.at>
> To: vtkusers at public.kitware.com
> Date: 29 Aug 2002 07:13:32 +0200
> Subject: [vtkusers] Re: Re: Re: Re: Building VTK with Kylix bc++
> 
> Thanks for you help, I have managed to build VTK with Kylix (which also
> involved some source changes, because bc++ handles some things very
> differently than "usual" UNIX compilers ... additionally the command
> line syntax of the compiler is so much different from what cmake expects
> that manually editing the generated makefiles was the only solution I
> found).
> 
> However, since several other issues have arisen I have found that
> integrating VTK and Kylix is probably not feasable at the moment ... 
> 
> For other users who want to try this, I suggest to wait till bc++ and
> gcc produce ABI compatible libraries (which might take some time) ...
> 
> Thanks again for your support!
> 
> --
> Stefan Bruckner
> 
> 
> Am Mit, 2002-08-28 um 15.19 schrieb William A. Hoffman:
> > This does not look like any of those problems.
> > It looks like:
> > 
> > bcc++ mkg3states.o -L/usr/src/packages/SOURCES/VTK/bin -lpthread -ldl
> > -lm -Wl,-rpath,/usr/src/packages/SOURCES/VTK/bin  -o
> > /usr/src/packages/SOURCES/VTK/bin/mkg3states
> > 
> > Is trying to compile a .cpp file and not create an executable like one
> > would expect.
> > 
> > Can you try building an executable from the command line?
> > 
> > Start with the above command, and start removing things until it works.
> > Does this work:
> > bcc++ mkg3states.o -o mkg3states
> > 
> > What on the command line is causing it to fail?
> > 
> > -Bill
> > 
> > 
> > At 11:55 PM 8/27/2002 +0200, Stefan Bruckner wrote:
> > >I have tried the -tD flag for building shared libraries and the -VC
> flag
> > >for position independent code, but when I build I always get:
> > >
> > >Borland C++ 5.7 Open Edition Copyright (c) 1987, 2002 Borland
> > >/usr/src/packages/SOURCES/VTK/Utilities/tiff/mkg3states.c:
> > >Warning W8065 /usr/src/packages/SOURCES/VTK/Utilities/tiff/mkg3states.c
> > >383: Call to function 'getopt' with no prototype in function main
> > >bc++   mkg3states.o  -L/usr/src/packages/SOURCES/VTK/bin -lpthread -ldl
> > >-lm -Wl,-rpath,/usr/src/packages/SOURCES/VTK/bin  -o
> > >/usr/src/packages/SOURCES/VTK/bin/mkg3states
> > >Borland C++ 5.7 Open Edition Copyright (c) 1987, 2002 Borland
> > >Error E2194: Could not find file
> > >'/usr/src/packages/SOURCES/VTK/bin/mkg3states.cpp'
> > 
> 
> 
> 
> --__--__--
> 
> Message: 3
> Date: Thu, 29 Aug 2002 08:58:31 +0200
> From: "Gregory Bleiker" <gregory.bleiker at phonak.ch>
> To: <bertvansesamstraat at hotmail.com>, <vtkusers at public.kitware.com>
> Subject: Antw: [vtkusers] 'Undefined Reference' while compiling?
> 
> Hi Bert and all
> This is a rather annoying situation and there has been a few posts earlier
> =
> on revering to similar problems. Maybe a tutorial can be found somewhere?
> =
> Anyway, compiling and (especially) linking the VTK stuff is not as simple
> =
> as it looks. In your case, you include the vtkCommon library first and =
> that's why you will get the link errors. Including the libs in the =
> following way will probably help:
> 
> -lvtkIO  -lvtkRendering  -lvtkGraphics -IvtkImaging  -lvtkjpeg -lvtkpng =
> -lvtkzlib -lvtkFiltering -lvtkCommon -lopengl32
> 
> BUT: It is probably the best idea to use CMake to generate the makefile =
> for you (see page 31 of VTK User's Guide). This approach is good, but gets
> =
> you into a bit of trouble if you want to use the GNU autoconf/libtool =
> approach as you will have to if you want to use FOX, for example. If =
> anybody can tell me how to get past that rock I would highly appreciate =
> it.
> 
> Hope this helps
> Gregi
> 
> 
> 
> --__--__--
> 
> Message: 4
> From: "Simon Chatelain" <simon.chatelain at epfl.ch>
> To: "vtkmailinlist" <vtkusers at public.kitware.com>
> Date: Thu, 29 Aug 2002 09:23:00 +0200
> Subject: [vtkusers] vtkRnendererCollection problem with java
> 
> Hello,
> 
> I have an java/VTK application. I'm using jdk 1.4.0 and VTK 4.0.
> In my application, i have a vtkRenderWindow with some vtkRenderer with
> different viewport.
> Like in the vtkPanel class, i check the number of actors in the differents
> renderer.
> 
> I try with two different methods:
> 1)
> 
> 	vtkRendererCollection rcoll = this.rw.GetRenderers();
> 	rcoll.InitTraversal();
> 
> 	int nbren = rcoll.GetNumberOfItems();
> 	int nbActor = 0;
> 	for (int i=0;i<nbren;i++)
> 	{
> 		vtkRenderer ren = rcoll.GetNextItem();
> 		nbActor += ren.VisibleActorCount();
> 	}
> 	return nbActor;
> 
> this methods create (often but not always) the following exception:
> 
> 	An unexpected exception has been detected in native code outside the
> VM.
> 	Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at
> PC=0xAE3E4B0
> 	Function=vtkCollection::GetNumberOfItems+0x0
> 	Library=C:\WINDOWS\System32\vtkCommon.dll
> 
> 	Current Java thread:
>         at vtk.vtkCollection.GetNumberOfItems_8(Native Method)
>         at vtk.vtkCollection.GetNumberOfItems(vtkCollection.java:44)
>         at VTKPanel.visibleActor(VTKPanel.java:53)
>         - locked <02FF16F0> (a VTKPanel)
>         at VTKPanel.Render(VTKPanel.java:105)
>         - locked <02FF16F0> (a VTKPanel)
>         at vtk.vtkPanel.paint(vtkPanel.java:51)
>         at sun.awt.RepaintArea.paint(RepaintArea.java:180)
>         at
> sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260) ...
> 
> I try with an another method :
> 2)
> 	vtkRendererCollection rcoll = this.rw.GetRenderers();
> 	rcoll.InitTraversal();
> 	vtkRenderer ren = rcoll.GetNextItem();
> 
> 	int nbActor = 0;
> 	while (ren != null)
> 	{
> 		nbActor += ren.VisibleActorCount();
> 		ren = rcoll.GetNextItem();
> 	}
> 
> this methods create (often but not always) the following exception:
> 
> 	An unexpected exception has been detected in native code outside the
> VM.
> 	Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at
> PC=0xB65A3E6
> 	Function=Java_vtk_vtkRendererCollection_GetNextItem_13+0x16
> 	Library=C:\WINDOWS\system32\vtkRenderingJava.dll
> 
> 	Current Java thread:
> 	 at vtk.vtkRendererCollection.GetNextItem_3(Native Method)
> 	 at
> vtk.vtkRendererCollection.GetNextItem(vtkRendererCollection.java:24)
> 	 at VTKPanel.visibleActor(VTKPanel.java:56)
> 	 - locked <02FFE3C0> (a VTKPanel)
> 	 at VTKPanel.Render(VTKPanel.java:104)
> 	 - locked <02FFE3C0> (a VTKPanel)
> 	 at vtk.vtkPanel.paint(vtkPanel.java:51)
> 	 at sun.awt.RepaintArea.paint(RepaintArea.java:180) ...
> 
> This exception occurs only on during the second call to GetNextItem().
> 
> Can someone help ?
> 
> Thanks.
> 
> 
> --__--__--
> 
> Message: 5
> Date: Thu, 29 Aug 2002 11:57:36 +0200
> From: Guangning Pei <im01_peg at nada.kth.se>
> To: vtkusers at public.kitware.com
> Subject: [vtkusers] About vtkDataObjectToDataSetFilter
> 
> Hi all,
> I am a beginner of vtk. Follow the demo of finance.tcl, I use
> vtkProgramDataObjectSource to create Data object, then use
> vtkDataObjectToDataSetFilter to create the points and
> vtkFieldDataToAttributeDataFilter to assign the scalar.
> After I change the axis component by "set xAxis xxx", I found I can't
> just use commands " do2ds SetPointComponent 0 $xAxis 0 ..."! The
> dataobject has been destroyed! I have to create another
> vtkDataObjectToDataSetFilter or create the vtkProgramDataObjectSource
> again!
> Can anyone tell me if there is a convenience way to do it? or there is
> other filters I should use instead of vtkDataObjectToDataSetFilter?
> Thanks a lot!
> Regards/Grand
> 
> 
> --__--__--
> 
> Message: 6
> Reply-To: "John Biddiscombe" <jbiddiscombe at skippingmouse.co.uk>
> From: "John Biddiscombe" <jbiddiscombe at skippingmouse.co.uk>
> To: "Stefan Bruckner" <stefan.bruckner at chello.at>,
> 	<vtkusers at public.kitware.com>
> Subject: Re: [vtkusers] Re: Re: Re: Re: Building VTK with Kylix bc++
> Date: Thu, 29 Aug 2002 11:05:35 +0100
> 
> 
> > However, since several other issues have arisen I have found that
> > integrating VTK and Kylix is probably not feasable at the moment ...=20
> 
> Could you please elaborate? as a BCB6 user who's been working with vtk =
> for many years, I can't see why Kylix is going to be ruled out. What =
> problems do you refer to
> 
> > For other users who want to try this, I suggest to wait till bc++ and
> > gcc produce ABI compatible libraries (which might take some time) ...
> 
> Whats ABI?
> 
> thanks
> 
> JB
> 
> 
> 
> 
> --__--__--
> 
> _______________________________________________
> vtkusers mailing list
> vtkusers at public.kitware.com
> http://public.kitware.com/mailman/listinfo/vtkusers
> 
> 
> End of vtkusers Digest



More information about the vtkusers mailing list