[vtkusers] 6.3.0 Compilation failure on OS X 10.10
Hari Nair
mcfiddish at gmail.com
Mon Dec 28 15:19:08 EST 2015
Is anyone maintaining the VTK Java wrapper on OS X?
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.
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.
My cmake setup:
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 ..
cat /dev/null >
/Users/nairah1/local/src/VTK-7.0.0.rc1/Wrapping/Java/vtkJavaAwt.h
On Wed, Dec 23, 2015 at 8:52 PM, Hari Nair <mcfiddish at gmail.com> wrote:
> Hi All - I'm getting compilation errors with 6.3.0 on OS X 10.10. My
> cmake line is
>
> cmake -DVTK_WRAP_JAVA:BOOL=ON ../VTK-6.3.0
>
> I get the same errors when I use
>
> 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
>
> or
>
> 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
>
> The errors are
>
> In file included from
> /Users/nairah1/local/src/VTK-6.3.0-build/Rendering/Core/vtkRenderWindowJava.mm:1417:
> /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'?
> JAWT_MacOSXDrawingSurfaceInfo* dsi_mac;
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> JAWT_DrawingSurfaceInfo
> /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/include/jawt.h:170:3:
> note: 'JAWT_DrawingSurfaceInfo' declared here
> } JAWT_DrawingSurfaceInfo;
> ^
> In file included from
> /Users/nairah1/local/src/VTK-6.3.0-build/Rendering/Core/vtkRenderWindowJava.mm:1417:
> /Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:119:14:
> error: use of undeclared identifier 'JAWT_MacOSXDrawingSurfaceInfo'
> dsi_mac = (JAWT_MacOSXDrawingSurfaceInfo*)dsi->platformInfo;
> ^
> /Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:119:44:
> error: expected expression
> dsi_mac = (JAWT_MacOSXDrawingSurfaceInfo*)dsi->platformInfo;
> ^
> /Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:120:31:
> error: no member named 'cocoaViewRef' in 'jawt_DrawingSurfaceInfo'
> temp0->SetWindowId(dsi_mac->cocoaViewRef);
> ~~~~~~~ ^
> /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'?
> JAWT_MacOSXDrawingSurfaceInfo* dsi_mac;
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> JAWT_DrawingSurfaceInfo
> /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/include/jawt.h:170:3:
> note: 'JAWT_DrawingSurfaceInfo' declared here
> } JAWT_DrawingSurfaceInfo;
> ^
> In file included from
> /Users/nairah1/local/src/VTK-6.3.0-build/Rendering/Core/vtkRenderWindowJava.mm:1417:
> /Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:220:14:
> error: use of undeclared identifier 'JAWT_MacOSXDrawingSurfaceInfo'
> dsi_mac = (JAWT_MacOSXDrawingSurfaceInfo*)dsi->platformInfo;
> ^
> /Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:220:44:
> error: expected expression
> dsi_mac = (JAWT_MacOSXDrawingSurfaceInfo*)dsi->platformInfo;
> ^
> /Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:221:31:
> error: no member named 'cocoaViewRef' in 'jawt_DrawingSurfaceInfo'
> temp0->SetWindowId(dsi_mac->cocoaViewRef);
> ~~~~~~~ ^
> 8 errors generated.
> make[2]: ***
> [Rendering/Core/CMakeFiles/vtkRenderingCoreJava.dir/vtkRenderWindowJava.mm.o]
> Error 1
> make[1]: *** [Rendering/Core/CMakeFiles/vtkRenderingCoreJava.dir/all]
> Error 2
> make: *** [all] Error 2
>
> Any suggestions? VTK-7.0.0rc1 gave the same result.
>
> Thanks,
> Hari
>
> --
> How did the world look on the day you were born?
> http://www.birthdayearth.com
>
--
How did the world look on the day you were born?
http://www.birthdayearth.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151228/0532ddc0/attachment.html>
More information about the vtkusers
mailing list