VTK java wrapping compile errors

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

VTK java wrapping compile errors

Sankhesh Jhaveri-2

Folks,

We ported an external project to a VTK module (vtkIOSegY) that leads to compile issues for java bindings.

Anyone know how to fix the java wrapping errors here:

https://open.cdash.org/viewBuildError.php?onlydeltap&buildid=5011596

The classes that it complains about are meant to be private implementations and not exported.

Thank you!
Sankhesh

--
Sankhesh Jhaveri
Sr. Research & Development Engineer | Kitware | (518) 881-4417

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtk-developers

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: VTK java wrapping compile errors

David Gobbi
You can wrap-exclude them in the CMakeLists.txt:

set_source_files_properties(
  vtkSegYIOUtils.cxx
  vtkSegYReader.cxx
  vtkSegYTraceReader.cxx
  WRAP_EXCLUDE
)

And possibly this as well:

set_source_files_properties(
  vtkSegYIOUtils.cxx
  vtkSegYReader.cxx
  vtkSegYTraceReader.cxx
  PROPERTIES WRAP_EXCLUDE_PYTHON 1
)

 - David

On Wed, Aug 9, 2017 at 7:55 AM, Sankhesh Jhaveri <[hidden email]> wrote:

Folks,

We ported an external project to a VTK module (vtkIOSegY) that leads to compile issues for java bindings.

Anyone know how to fix the java wrapping errors here:

https://open.cdash.org/viewBuildError.php?onlydeltap&buildid=5011596

The classes that it complains about are meant to be private implementations and not exported.

Thank you!
Sankhesh

--
Sankhesh Jhaveri
Sr. Research & Development Engineer | Kitware | <a href="tel:(518)%20881-4417" value="+15188814417" target="_blank">(518) 881-4417

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtk-developers

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: VTK java wrapping compile errors

David Gobbi
In fact, it might be best to structure the CMakeLists.txt to separate the private classes into their own list:

set(Module_SRCS                                                                 
  vtkSegY2DReader.cxx                                                           
  vtkSegY3DReader.cxx                                                           
)                                                                               
                                                                                
set(Private_SRCS                                                                
  vtkSegYIOUtils.cxx                                                            
  vtkSegYReader.cxx                                                             
  vtkSegYTraceReader.cxx                                                        
)                                                                               
                                                                                
vtk_module_library(vtkIOSegY ${Module_SRCS} ${Private_SRCS})                    
                                                                                
set_source_files_properties(${Private_SRCS} WRAP_EXCLUDE)                       
set_source_files_properties(${Private_SRCS} PROPERTIES WRAP_EXCLUDE_PYTHON 1)



On Wed, Aug 9, 2017 at 8:56 AM, David Gobbi <[hidden email]> wrote:


On Wed, Aug 9, 2017 at 7:55 AM, Sankhesh Jhaveri <[hidden email]> wrote:

Folks,

We ported an external project to a VTK module (vtkIOSegY) that leads to compile issues for java bindings.

Anyone know how to fix the java wrapping errors here:

https://open.cdash.org/viewBuildError.php?onlydeltap&buildid=5011596

The classes that it complains about are meant to be private implementations and not exported.

Thank you!
Sankhesh

--
Sankhesh Jhaveri
Sr. Research & Development Engineer | Kitware | <a href="tel:(518)%20881-4417" value="+15188814417" target="_blank">(518) 881-4417


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtk-developers

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: VTK java wrapping compile errors

Sankhesh Jhaveri-2

Cool, thanks David!

I’ll create a new MR and ask you for review.


On Wed, Aug 9, 2017 at 11:54 AM David Gobbi <[hidden email]> wrote:
In fact, it might be best to structure the CMakeLists.txt to separate the private classes into their own list:

set(Module_SRCS                                                                 
  vtkSegY2DReader.cxx                                                           
  vtkSegY3DReader.cxx                                                           
)                                                                               
                                                                                
set(Private_SRCS                                                                
  vtkSegYIOUtils.cxx                                                            
  vtkSegYReader.cxx                                                             
  vtkSegYTraceReader.cxx                                                        
)                                                                               
                                                                                
vtk_module_library(vtkIOSegY ${Module_SRCS} ${Private_SRCS})                    
                                                                                
set_source_files_properties(${Private_SRCS} WRAP_EXCLUDE)                       
set_source_files_properties(${Private_SRCS} PROPERTIES WRAP_EXCLUDE_PYTHON 1)



On Wed, Aug 9, 2017 at 8:56 AM, David Gobbi <[hidden email]> wrote:


On Wed, Aug 9, 2017 at 7:55 AM, Sankhesh Jhaveri <[hidden email]> wrote:

Folks,

We ported an external project to a VTK module (vtkIOSegY) that leads to compile issues for java bindings.

Anyone know how to fix the java wrapping errors here:

https://open.cdash.org/viewBuildError.php?onlydeltap&buildid=5011596

The classes that it complains about are meant to be private implementations and not exported.

Thank you!
Sankhesh

--
Sankhesh Jhaveri
Sr. Research & Development Engineer | Kitware | <a href="tel:(518)%20881-4417" value="+15188814417" target="_blank">(518) 881-4417

--
Sankhesh Jhaveri
Sr. Research & Development Engineer | Kitware | (518) 881-4417

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtk-developers

Loading...