Thanks for the response, I guess I&#39;ll try compiling everything under 32 bit Visual Studios and see how that goes.  Should I turn on/off any other CMake flags?<br><br><div class="gmail_quote">On Wed, Sep 1, 2010 at 6:17 PM, Jim Peterson <span dir="ltr">&lt;<a href="mailto:jimcp@cox.net">jimcp@cox.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Mark Roden wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
A friend of mine is attempting to build vtk from source with Java wrappers on win64, and encountered some pretty horrendous failures right out of the box. <br>
Any ideas on what to fix here?  For some reason, he&#39;s being blocked from posting on the list.<br>
<br>
<br>
<br>
---------- Forwarded message ----------<br></div><div class="im">
From: *Jonathan Morra* &lt;<a href="mailto:jonmorra@gmail.com" target="_blank">jonmorra@gmail.com</a> &lt;mailto:<a href="mailto:jonmorra@gmail.com" target="_blank">jonmorra@gmail.com</a>&gt;&gt;<br>
Date: Wed, Sep 1, 2010 at 9:33 AM<br>
Subject: VTK Compiling with errors<br></div><div><div></div><div class="h5">
To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a> &lt;mailto:<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
<br>
<br>
I&#39;m attempting to compile VTK from source with the Java wrappers on in 64bit Visual Studios 2008.  I&#39;ve downloaded version 5.6.0 and ran CMake with the following parameters:<br>
<br>
BUILD_SHARED_LIBS<br>
VTK_USE_N_WAY_ARRAYS<br>
VTK_USE_RENDERING<br>
VTK_WRAP_JAVA<br>
I set all other flags off, also I changed the CMAKE_INSTALL_PREFIX to a directory in My Documents.<br>
<br>
The compilation did result in creating vtk.jar and some dlls, however 67 projects compiled successfully and 7 failed.  I tried to make a very simple project in NetBeans 6.9.1 where I added the vtk.jar library and then set the java path with -Djava.library.path=&quot;path/to/vtk/dlls&quot; and then had the following Java<br>

<br>
import vtk.vtkSphereSource;<br>
import vtk.vtkPolyDataMapper;<br>
import vtk.vtkActor;<br>
import vtk.vtkRenderer;<br>
import vtk.vtkRenderWindow;<br>
import vtk.vtkRenderWindowInteractor;<br>
<br>
/**<br>
 *<br>
 * @author jmorra<br>
 */<br>
public class Application {<br>
<br>
    static {<br>
        System.loadLibrary(&quot;vtkCommonJava&quot;);<br>
        System.loadLibrary(&quot;vtkFilteringJava&quot;);<br>
        System.loadLibrary(&quot;vtkIOJava&quot;);<br>
        System.loadLibrary(&quot;vtkImagingJava&quot;);<br>
        System.loadLibrary(&quot;vtkGraphicsJava&quot;);<br>
        System.loadLibrary(&quot;vtkRenderingJava.&quot;);<br>
    }<br>
<br>
    public static void main(String[] args) {<br>
         // create sphere geometry<br>
        vtkSphereSource sphere = new vtkSphereSource();<br>
    }<br>
}<br>
<br>
The program threw the following exception on the first System.loadLibrary call<br>
<br>
java.lang.UnsatisfiedLinkError: C:\Users\jmorra\Documents\vtk-binaries\bin\Release\vtkCommonJava.dll: Can&#39;t find dependent libraries<br>
<br>
I ran dependency walker on vtkCommonJava.dll and it didn&#39;t look like anything was missing.   This leads me to assume the error is somewhere the projects that failed to compile under VS 2008.<br>
<br>
Please let me know what I&#39;m doing wrong or if this is a VTK error.<br>
<br>
Thanks,<br>
Jon<br>
<br></div></div>
------------------------------------------------------------------------<div class="im"><br>
<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>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
</div><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
  <br>
</blockquote>
I built and used vtk 5.6.0 on 32bit windows with shared libraries and Java wrappers using Visual Studio 2008. taking a quick look at the vtk Java wrappers, I am not sure the mechanism for dereferencing object pointers between the java wrappers and the shared libraries is 64bit capable, the Java wrappers appear to pass a long as a vtk object pointer.  The specific error actually looks like the vtk java wrapper dll was found, but the corresponding  vtk shared libraries are not in the library path.<br>

<br>
Hope that helps,<br>
<br>
Jim<div class="im"><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>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
</div><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>