<div dir="ltr">Is anyone maintaining the VTK Java wrapper on OS X?<div><br></div><div>I was able to compile by replacing vtkJavaAwt.h with an empty file, although now the demo programs do not work when they try to open a window. </div><div><br></div><div>Also, the JOGL jar files have been reorganized and VTK-7.0.0-rc1 will not compile with the most recent version (2.3.2). I went back to version 2.1.5.</div><div><br></div><div>My cmake setup:</div><div><br></div><div><div>cmake -DVTK_WRAP_JAVA:BOOL=ON -DVTK_JAVA_JOGL_COMPONENT:BOOL=ON -DJOGL_GLUE:FILEPATH=/Users/nairah1/local/src/VTK-7.0.0.rc1/jogl-all.jar -DJOGL_LIB:FILEPATH=/Users/nairah1/local/src/VTK-7.0.0.rc1/gluegen-rt.jar -DVTK_JAVA_SOURCE_VERSION:STRING=1.8 -DVTK_JAVA_TARGET_VERSION:STRING=1.8 ..</div><div>cat /dev/null > /Users/nairah1/local/src/VTK-7.0.0.rc1/Wrapping/Java/vtkJavaAwt.h</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 23, 2015 at 8:52 PM, Hari Nair <span dir="ltr"><<a href="mailto:mcfiddish@gmail.com" target="_blank">mcfiddish@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi All - I'm getting compilation errors with 6.3.0 on OS X 10.10. My cmake line is<div><br></div><div>cmake -DVTK_WRAP_JAVA:BOOL=ON ../VTK-6.3.0<br><div><br></div><div>I get the same errors when I use</div><div><br></div><div><div>cmake -DVTK_WRAP_JAVA:BOOL=ON -DVTK_JAVA_JOGL_COMPONENT:BOOL=ON -DJOGL_GLUE:FILEPATH=gluegen-rt.jar -DJOGL_LIB:FILEPATH=jogl-all.jar ../VTK-6.3.0</div></div><div><br></div><div>or</div><div><br></div><div>cmake -DVTK_WRAP_JAVA:BOOL=ON -DVTK_JAVA_JOGL_COMPONENT:BOOL=ON -DJOGL_GLUE:FILEPATH=gluegen-rt.jar -DJOGL_LIB:FILEPATH=jogl-all-noawt.jar ../VTK-6.3.0<br></div><div><br clear="all"><div>The errors are</div><div><br></div><div><div>In file included from /Users/nairah1/local/src/VTK-6.3.0-build/Rendering/Core/vtkRenderWindowJava.mm:1417:</div><div>/Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:118:3: error: unknown type name 'JAWT_MacOSXDrawingSurfaceInfo'; did you mean 'JAWT_DrawingSurfaceInfo'?</div><div> JAWT_MacOSXDrawingSurfaceInfo* dsi_mac;</div><div> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div><div> JAWT_DrawingSurfaceInfo</div><div>/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/include/jawt.h:170:3: note: 'JAWT_DrawingSurfaceInfo' declared here</div><div>} JAWT_DrawingSurfaceInfo;</div><div> ^</div><div>In file included from /Users/nairah1/local/src/VTK-6.3.0-build/Rendering/Core/vtkRenderWindowJava.mm:1417:</div><div>/Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:119:14: error: use of undeclared identifier 'JAWT_MacOSXDrawingSurfaceInfo'</div><div> dsi_mac = (JAWT_MacOSXDrawingSurfaceInfo*)dsi->platformInfo;</div><div> ^</div><div>/Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:119:44: error: expected expression</div><div> dsi_mac = (JAWT_MacOSXDrawingSurfaceInfo*)dsi->platformInfo;</div><div> ^</div><div>/Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:120:31: error: no member named 'cocoaViewRef' in 'jawt_DrawingSurfaceInfo'</div><div> temp0->SetWindowId(dsi_mac->cocoaViewRef);</div><div> ~~~~~~~ ^</div><div>/Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:219:3: error: unknown type name 'JAWT_MacOSXDrawingSurfaceInfo'; did you mean 'JAWT_DrawingSurfaceInfo'?</div><div> JAWT_MacOSXDrawingSurfaceInfo* dsi_mac;</div><div> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~</div><div> JAWT_DrawingSurfaceInfo</div><div>/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/include/jawt.h:170:3: note: 'JAWT_DrawingSurfaceInfo' declared here</div><div>} JAWT_DrawingSurfaceInfo;</div><div> ^</div><div>In file included from /Users/nairah1/local/src/VTK-6.3.0-build/Rendering/Core/vtkRenderWindowJava.mm:1417:</div><div>/Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:220:14: error: use of undeclared identifier 'JAWT_MacOSXDrawingSurfaceInfo'</div><div> dsi_mac = (JAWT_MacOSXDrawingSurfaceInfo*)dsi->platformInfo;</div><div> ^</div><div>/Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:220:44: error: expected expression</div><div> dsi_mac = (JAWT_MacOSXDrawingSurfaceInfo*)dsi->platformInfo;</div><div> ^</div><div>/Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:221:31: error: no member named 'cocoaViewRef' in 'jawt_DrawingSurfaceInfo'</div><div> temp0->SetWindowId(dsi_mac->cocoaViewRef);</div><div> ~~~~~~~ ^</div><div>8 errors generated.</div><div>make[2]: *** [Rendering/Core/CMakeFiles/vtkRenderingCoreJava.dir/vtkRenderWindowJava.mm.o] Error 1</div><div>make[1]: *** [Rendering/Core/CMakeFiles/vtkRenderingCoreJava.dir/all] Error 2</div><div>make: *** [all] Error 2</div></div><div><br></div><div>Any suggestions? VTK-7.0.0rc1 gave the same result.</div><div><br></div><div>Thanks,</div><div>Hari</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div>How did the world look on the day you were born?<br><a href="http://www.birthdayearth.com" target="_blank">http://www.birthdayearth.com</a><br></div>
</font></span></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">How did the world look on the day you were born?<br><a href="http://www.birthdayearth.com" target="_blank">http://www.birthdayearth.com</a><br></div>
</div>