python_orocos_kdl compilation error for fuerte [closed]

asked 2013-07-02 07:33:22 -0600

Fabien R gravatar image

updated 2013-07-04 02:52:58 -0600

With python-sip 4.14.7-2, the compilation stops with these errors:

[ 11%] Building CXX object CMakeFiles/python_module_PyKDL.dir/PyKDL/sipPyKDLpart0.o /opt/ros/fuerte/share/orocos_kinematics_dynamics/python_orocos_kdl/build/PyKDL/sipPyKDLpart0.cpp:3140:1: error: cannot convert PyObject* ()(void) {aka _object* ()(void)} to _sipClassTypeDef* in initialization

This error is meaningless because it leads to the closing bracket on last line of this code:

    sipClassTypeDef sipTypeDef_PyKDL_TwistVel = {
{
    -1,
    0,
    0,
    SIP_TYPE_CLASS,
    sipNameNr_TwistVel,
    {0}
},
{
    sipNameNr_TwistVel,
    {0, 0, 1},
    7, methods_TwistVel,
    0, 0,
    2, variables_TwistVel,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
},
doc_TwistVel,
-1,
-1,
0,
slots_TwistVel,
init_TwistVel,
0,
0,
    #if PY_MAJOR_VERSION >= 3
0,
0,
    #else
0,
0,
0,
0,
    #endif
dealloc_TwistVel,
assign_TwistVel,
array_TwistVel,
copy_TwistVel,
release_TwistVel,
cast_TwistVel,
0,
0,
pickle_TwistVel
    };

/opt/ros/fuerte/share/orocos_kinematics_dynamics/python_orocos_kdl/build/PyKDL/sipPyKDLpart0.cpp:3770:1: error: cannot convert âPyObject* ()(void) {aka _object* ()(void)} to _sipClassTypeDef* in initialization

This error leads to a similar code extract at the end of the file:

    sipClassTypeDef sipTypeDef_PyKDL_FrameVel = {
{
    -1,
    0,
    0,
    SIP_TYPE_CLASS,
    sipNameNr_FrameVel,
    {0}
},
{
    sipNameNr_FrameVel,
    {0, 0, 1},
    6, methods_FrameVel,
    0, 0,
    2, variables_FrameVel,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
},
doc_FrameVel,
-1,
-1,
0,
slots_FrameVel,
init_FrameVel,
0,
0,
    #if PY_MAJOR_VERSION >= 3
0,
0,
    #else
0,
0,
0,
0,
    #endif
dealloc_FrameVel,
assign_FrameVel,
array_FrameVel,
copy_FrameVel,
release_FrameVel,
cast_FrameVel,
0,
0,
pickle_FrameVel
    };

Any hints ?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-10-26 13:34:10.538655