[vtk-developers] dashboard failure with Java wrapping and Obj-C++?

David Gobbi david.gobbi at gmail.com
Wed Apr 11 16:01:49 EDT 2012


On Wed, Apr 11, 2012 at 1:46 PM, Sean McBride <sean at rogue-research.com> wrote:
> On Wed, 11 Apr 2012 13:40:39 -0600, David Gobbi said:
>
>>The fix would probably be along the lines of:
>>
>>1)  In Rendering/Core/CMakeLists.txt,
>>define a new file property WRAP_JAVA_OBJC:
>>
>>set_source_files_properties(
>>  vtkRenderWindow.cxx
>>  PROPERTIES WRAP_JAVA_OBJC 1
>>)
>>
>>2) in CMake/vtkJavaWrapping.cmake,
>>check whether WRAP_JAVA_OBJC is set for each source file,
>>and if so add "-ObjC++" for the corresponding Java.cxx file.
>>
>>Alternatively, a special case for vtkRenderWindowJava.cxx could be
>>hard-coded into vtkJavaWrapping.cmake, rather than defining a new
>>property that only applies to a single file in all of VTK.
>
> This file doesn't exist in git, it's created, right?
>
> Is there no way to give the file a .mm extension instead of .cxx?

Yes, vtkWrapJava.cmake could check the file properties and
generate the file name with a .mm instead of with a .cxx, and
that would be even easier than adding the -ObjC++ flag.

 - David



More information about the vtk-developers mailing list