[Smtk-developers] Can't build SMTK python wrappers no more

John Tourtellott john.tourtellott at kitware.com
Tue Dec 2 15:04:53 EST 2014


Has anyone else seen this error building python wrappers?

[ 20%] Building CXX object
smtk/CMakeFiles/SMTKCorePython.dir/SMTKCorePython/smtk_shared_ptr_smtk_model_bridge__wrapper.cpp.o
/media/ssd/sim/cmb_core/build/testSMTK/smtk/SMTKCorePython/smtk_shared_ptr_smtk_model_bridge__wrapper.cpp:
In function ‘PyObject*
Sbk_smtk_shared_ptr_smtk_model_Bridge_Func_findOperatorConstructor(PyObject*,
PyObject*)’:
/media/ssd/sim/cmb_core/build/testSMTK/smtk/SMTKCorePython/smtk_shared_ptr_smtk_model_bridge__wrapper.cpp:215:114:
error: conversion from ‘smtk::model::OperatorConstructor {aka
std::tr1::shared_ptr<smtk::model::Operator> (*)()}’ to non-scalar type
‘std::tr1::shared_ptr<smtk::model::Operator>’ requested
             smtk::shared_ptr< smtk::model::Operator > cppResult =
cppSelf->get()->findOperatorConstructor(cppArg0);


Interestingly, I find the underlying method --
smtk::model::Bridge::findOperatorConstructor() -- defined inside a #if
SHIBOKEN_SKIP directive, so I wonder if I'm missing something.

I also tried removing this function in the typesystem.xml, but that was NG
too.

   - When I add a <modify-function> element to remove it from
   smtk::model::Bridge, the method still appears in the wrapper for
   smtk::shared_ptr<smtk::model::Bridge>,
   - And when I add a <modify-function> element to remove it from
   smtk::shared_ptr<smtk::model::Bridge>, shiboken crashes.

Can anyone help?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/smtk-developers/attachments/20141202/22dc4496/attachment.html>


More information about the Smtk-developers mailing list