<div dir="ltr">Hi,<div><br></div><div style>I would appreciate some pointers on compiling ITK 4.4 with the Java wrapper.</div><div style><br></div><div style>I have been using the SimpleITK Java binary successfully within Matlab but want to try out some of the level set filters in ITK that are not yet available in SimpleITK.  Since Matlab supports Java natively it would be the easiest way of using ITK.</div>
<div style><br></div><div style>I am entirely new to the process of using Cmake and compiling with Visual Studio 2012</div><div style><br></div><div style>System: Win 8 x64 Professional, Cmake 2.8.11.2, VS 2012 with all updates.</div>
<div style><br></div><div style>I have succesfully compiled ITK with the TESTING and EXAMPLES Cmake flags off and BUILD_SHARED_LIBS on.  I find a ITKCommon-4.4.dll in the /bin/debug subdirectory of my build folder.  Having said this I don&#39;t know exactly what I should expect to find after a succesful build, but VS does not report any errors.  (Incidental question - does the above dll contain all the ITK functions?  Is there a header file for this?)</div>
<div style><br></div><div style>If I turn on the ITK_WRAP_JAVA flag I get a Cmake error: </div><div style><br></div><div style><p style="margin:0px"><span style="color:rgb(255,0,0)">CMake Error at Wrapping/Generators/Java/CMakeLists.txt:39 (list):</span></p>

<p style="margin:0px"><span style="color:rgb(255,0,0)">  list sub-command REMOVE_ITEM requires list to be present.</span></p><p style="margin:0px"><span style="color:rgb(255,0,0)"><br></span></p><p style="margin:0px"><font color="#000000" style="background-color:rgb(255,255,255)">As mentioned in another thread I&#39;ve inspected the CMakeLists.txt in the error message and there is a &quot;To-do&quot; comment! - is Java wrapping simply broken currently?</font></p>
<p style="margin:0px"><font color="#000000" style="background-color:rgb(255,255,255)"><br></font></p><p style="margin:0px"><font color="#000000" style="background-color:rgb(255,255,255)">NB Cmake correctly finds all elements of the JDK as far as I can see.</font></p>
<p style="margin:0px"><br></p><p style="margin:0px"><font color="#000000">I have generated the build despite the above error and then run the compilation in VS.  Everything works well for a while and then I get a whole series of errors of the same form</font></p>
<p style="margin:0px"><br></p><p style="margin:0px"><font color="#000000"></font></p><p style="margin:0px"><font color="#000000">Error<span class="" style="white-space:pre">        </span>469<span class="" style="white-space:pre">        </span>error MSB6006: &quot;cmd.exe&quot; exited with code 1.<span class="" style="white-space:pre">        </span>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets<span class="" style="white-space:pre">        </span>172<span class="" style="white-space:pre">        </span>5<span class="" style="white-space:pre">        </span>ITKFastMarchingJavaJar</font></p>
<div><br></div><div style>In each of these (481 in total) the file mentioned at the end is different but otherwise the message is the same.</div><div style><br></div><div style>Can anyone direct me to a way of resolving this?</div>
<div style><br></div><div style>Cheers</div><div style>Mat</div></div></div>