[vtkusers] vtkmy, only first class gets wrapped in python

Philip Batchelor philip.batchelor at ucl.ac.uk
Fri Dec 9 10:46:58 EST 2005


Oops yes, but that was a consequence of different attempts (I tried 
swapping around, with and without cxx, that actually doesn't seem to 
make a difference
i.e. writing with/out cxx compiles, but wraps first class only):
with

SET (Imaging_SRCS
  vtkImageFoo.cxx
  vtkBar3.cxx
 )

and vtkBar3.h vtkBar3.cxx do exist (they are just a copy of the vtkBar2 
example with 2 replaced by 3 everywhere.
I still get

--------------------------
make
[...]
Building CXX object Imaging/CMakeFiles/vtkmyImaging.dir/vtkImageFoo.o
Building CXX object Imaging/CMakeFiles/vtkmyImaging.dir/vtkBar3.o
Linking CXX shared library ../bin/libvtkmyImaging.so
Generating vtkImageFooPython.cxx
Generating vtkmyImagingPythonInit.cxx
Scanning dependencies of target vtkmyImagingPythonD
Building CXX object 
Imaging/CMakeFiles/vtkmyImagingPythonD.dir/vtkImageFooPython.o   <-----??
Building CXX object 
Imaging/CMakeFiles/vtkmyImagingPythonD.dir/vtkmyImagingPythonInit.o
Linking CXX shared library ../bin/libvtkmyImagingPythonD.so
Scanning dependencies of target vtkmyImagingPython
Building CXX object 
Imaging/CMakeFiles/vtkmyImagingPython.dir/vtkmyImagingPythonInit.o
Linking CXX shared module ../bin/libvtkmyImagingPython.so
[...]
------------------------
Thus vtkBar3Python.o is still missing...?

Ph

Brad King wrote:

> Philip Batchelor wrote:
>
>> Hi
>>
>> I'm trying to compile a vtkMy-5.0 with vtk-5.0 cvs, with Python 
>> wrapping, and cmake also from cvs.
>> I am getting a strange problem. It seems only the first class in 
>> CMakeLists.txt gets wrapped:
>>
>> Example, I created a dummy vtkBar3.cxx and have e.g. in 
>> vtkMy/Imaging/CMakeLists.txt:
>>
>> SET (Imaging_SRCS
>>  vtkImageFoo.cxx
>>  vtkBar3
>> )
>
>
> This should be listed as "vtkBar3.cxx" and you need to have a 
> corresponding "vtkBar3.h" with a "vtkBar3" class in it to get wrapping.
>
> -Brad
> _______________________________________________
> This is the private VTK discussion list. Please keep messages 
> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers





More information about the vtkusers mailing list