<div dir="ltr">Te java.library.path is not enough and you need to add into your environment PATH the following directory, <span style="font-size:13px">C:\VTK\bin\Release.</span><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">set PATH=</span><span style="font-size:13px">C:\VTK\bin\Release</span><span style="font-size:13px">;%PATH%</span></div><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">Seb</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 21, 2015 at 10:33 AM, CSharpdotcom . <span dir="ltr"><<a href="mailto:csharpdotcom@gmail.com" target="_blank">csharpdotcom@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I'm new to VTK and this is my first posting here or on any other forum<br>
related to VTK.<br>
<br>
I've been trying for about a week to get VTK installed and running on<br>
my computer. The project I'm working on is to use Java with VTK to<br>
represent 3D graphics, which I hope to use with NetBeans 8.0.2. I<br>
also have Visual Studio Pro 2010.<br>
<br>
After failed attempts in installing VTK 6.2.0 and the latest version<br>
of CMake, from the link<br>
<a href="http://www5.cs.fau.de/en/conrad/tutorials/itk-and-vtk-wrapping/wrap-vtk" target="_blank">http://www5.cs.fau.de/en/conrad/tutorials/itk-and-vtk-wrapping/wrap-vtk</a><br>
I downloaded and unzipped VTK 6.1.0 and CMake 3.0.0, then installed<br>
them.<br>
<br>
I then ran CMake according to the instructions on that link and<br>
installed the generated code in the folder C:\VTK. I then clicked on<br>
the file VTK.sin in that folder, which opened up Visual Studio and<br>
started compiling the code with a large number of modules in the<br>
project. This took about an hour, and on completion, generated the<br>
line at the end:<br>
<br>
Build: 387 succeeded, 1 failed, 0 up-to-date, 0 skipped<br>
<br>
I saved this in a file, which is very long, and after some effort<br>
found the error message:<br>
<br>
112>C:\VTK\bin\Release\vtkRenderingCoreJava.dll : fatal error LNK1120:<br>
1 unresolved externals<br>
<br>
In the mean time I attempted to recompile the project, which was much<br>
quicker, and got the same message. In recompiled I checked the<br>
"INSTALL" option, which had not previously been checked, although I<br>
don't know if that is significant.<br>
<br>
Located in the folder \VTK\java\sample\rendering is the source file<br>
AwTConeRendering.java, which apparently has not been compiled. I<br>
created a NetBeans project and copied that file into it, then linked<br>
vtk.jar in the folder \VTK\bin to the project, and all imports were<br>
satisfied. In setting the Windows path to point to the dll files in<br>
\VTK\bin\Release, the application appears to pick up the dll files<br>
correctly, however, I get the following error message:<br>
<br>
java.lang.UnsatisfiedLinkError:<br>
C:\VTK\bin\Release\vtkChartsCoreJava.dll: Can't find dependent<br>
libraries<br>
<br>
repeated for many dll files. Incidentally, as Visual Studio dlls are<br>
all 32 bits, as far as I know, I set up NetBeans to use a 32 bit JVM.<br>
This had previously been tested successfully with a test dll I created<br>
with Visual Studio and could execute with NetBeans.<br>
<br>
This problem is presumably related to the first error mentioned above,<br>
and would be most grateful in getting this issue resolved. As I said,<br>
I'm new to VTK, and in fact only in the last couple of weeks have<br>
tried for the first time to call a dll file from a Java application on<br>
a Windows computer.<br>
<br>
In the Java code I added the statement:<br>
<br>
System.out.println(System.getProperty("java.library.path"));<br>
<br>
to check that the path was correct, which is the case.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br></div>