[vtkusers] VTK Java help

Fatima Zahra El Filali felfilali at dons.usfca.edu
Tue Feb 17 20:47:12 EST 2015


Hey Seb,

Thanks for the links.

I am trying to run the cone example from the link you sent me.

I set my env var to:
DYLD_LIBRARY_PATH=/usr/local/natives-Darwin-x86_64/graphviz/

also tried it with : DYLD_LIBRARY_PATH=/usr/local/natives-Darwin-x86_64/


Since my find */dylib returned filed in both directories.


However when I run the program I get the following exception:

Exception in thread "main" java.lang.UnsatisfiedLinkError:
vtk.vtkRenderWindow.VTKInit()J

at vtk.vtkRenderWindow.VTKInit(Native Method)

at vtk.vtkObjectBase.<init>(vtkObjectBase.java:43)

at vtk.vtkObject.<init>(vtkObject.java:94)

at vtk.vtkWindow.<init>(vtkWindow.java:182)

at vtk.vtkRenderWindow.<init>(vtkRenderWindow.java:602)

at vtk.vtkPanel.<init>(vtkPanel.java:27)

 at VTKSample.main(VTKSample.java:22)


Any ideas? I have a feeling its the env var that is not right but there are
no other locations that contain the vtk dylib files.


Thanks again

Fatima


On Thu, Feb 12, 2015 at 7:41 AM, Sebastien Jourdain <
sebastien.jourdain at kitware.com> wrote:

> Hi Fatima,
>
> Please keep the mailing list in the loop.
>
> Ok so I guess your OS is OS X and not iOS.
> This link is a bit old and outdated but it should give you some hints on
> how to setup your Eclipse.
>
> http://dev.artenum.com/projects/cassandra/forum/how-to-use-eclipse-and-vtk
>
> So remember to set DYLD_LIBRARY_PATH instead of PATH.
>
> You can also download the binaries from our dashboard here:
>
> https://open.cdash.org/viewFiles.php?buildid=3689913
>
> Don't forget to unzip the native jar file.
>
> On a side note, you will have to use JOGL as a dependency for rendering.
> You may find some mention on that in the mailing list archive.
>
> Seb
>
> On Wed, Feb 11, 2015 at 8:25 PM, Fatima Zahra El Filali <
> felfilali at dons.usfca.edu> wrote:
>
>> Hello Seb,
>> I basically installed cmake, used it to generate make files, run make and
>> make install. My OS is iOS. Ideally I would like to run my code on Eclipse,
>> but I dont mind vi-ing and running java on command line.
>> The thing is I don't know where to start at this point. All I want to do
>> is run some of the examples that came with vtk so that I can learn from
>> them and write my own.
>> Thanks so much for your help.
>> Fatima
>>
>> On Wed, Feb 11, 2015 at 5:59 PM, Sebastien Jourdain <
>> sebastien.jourdain at kitware.com> wrote:
>>
>>> Depending on your OS, you will have to set a system variable with the
>>> path of the directory that contains the VTK library, before launching your
>>> application.
>>>
>>> Windows: set PATH=%PATH%;c:\[path-to-vtk-which-contains-*.dll]
>>> Linux: export LD_LIBRARY_PATH=[path-to-vtk-which-contains-*.so]
>>> OS X: export DYLD_LIBRARY_PATH =[path-to-vtk-which-contains-*.dylib]
>>>
>>> For more help, you will need to explain more your actions and what was
>>> the error.
>>>
>>> Seb
>>>
>>> On Wed, Feb 11, 2015 at 2:46 PM, Fatima Zahra El Filali <
>>> felfilali at dons.usfca.edu> wrote:
>>>
>>>> Hello,
>>>> I was able to install vtk with the Examples but I am having trouble
>>>> running them.
>>>> I am very new to vtk but comfortable with Java.
>>>> Any how-tos you can direct me to?
>>>> Thanks
>>>> Fatima
>>>>
>>>> _______________________________________________
>>>> Powered by www.kitware.com
>>>>
>>>> Visit other Kitware open-source projects at
>>>> http://www.kitware.com/opensource/opensource.html
>>>>
>>>> Please keep messages on-topic and check the VTK FAQ at:
>>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>>
>>>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://public.kitware.com/mailman/listinfo/vtkusers
>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150217/a0b4ba5e/attachment.html>


More information about the vtkusers mailing list