#8 Linux/svn build fails OgreOde and ode opaque declarations

closed-accepted
Andy
5
2008-08-17
2008-07-22
dermont
No

On Linux/svn the ogreode module build fails:

g++ -o build_dir_2.5/ogreode_1.0/CollisionCallback.pypp.os -c `pkg-config --cflags OGRE` -I -O3 -I./ -DBOOST_PYTHON_MAX_ARITY=19 -fPIC -I/media/sda1/Development/PYTHONOGRE/python-ogre/boost_1_35_0 -I/usr/local/include -I/media/hda5/OGRE/ogreaddons/ogreode_mine/include -I/media/hda5/OGRE/ogreaddons/ogreode_mine/prefab/include -I/media/hda5/OGRE/ogreaddons/ogreode_mine/loader/include -I/media/sda1/OGRE/ogre-trunk/OgreMain/include -I/usr/include/python2.5 -I/media/sda1/Development/PYTHONOGRE/python-ogre/boost_1_35_0 generated/ogreode_1.0/CollisionCallback.pypp.cpp
/media/sda1/Development/PYTHONOGRE/python-ogre/boost_1_35_0/boost/python/type_id.hpp: In function ‘boost::python::type_info boost::python::type_id() [with T = const volatile dxGeom&]’:
/media/sda1/Development/PYTHONOGRE/python-ogre/boost_1_35_0/boost/python/converter/registered.hpp:87: instantiated from ‘const boost::python::converter::registration& boost::python::converter::detail::registry_lookup2(T& (*)()) [with T = const volatile dxGeom]’
/media/sda1/Development/PYTHONOGRE/python-ogre/boost_1_35_0/boost/python/converter/registered.hpp:94: instantiated from ‘const boost::python::converter::registration& boost::python::converter::detail::registry_lookup1(boost::type<Target>) [with T = const volatile dxGeom&]’
/media/sda1/Development/PYTHONOGRE/python-ogre/boost_1_35_0/boost/python/converter/registered.hpp:105: instantiated from ‘const boost::python::converter::registration& boost::python::converter::detail::registered_base<const volatile dxGeom&>::converters’
/media/sda1/Development/PYTHONOGRE/python-ogre/boost_1_35_0/boost/python/converter/arg_from_python.hpp:269: instantiated from ‘boost::python::converter::pointer_arg_from_python<T>::pointer_arg_from_python(PyObject*) [with T = dxGeom*]’
/media/sda1/Development/PYTHONOGRE/python-ogre/boost_1_35_0/boost/python/arg_from_python.hpp:70: instantiated from ‘boost::python::arg_from_python<T>::arg_from_python(PyObject*) [with T = dxGeom*]’
/media/sda1/Development/PYTHONOGRE/python-ogre/boost_1_35_0/boost/preprocessor/iteration/detail/local.hpp:37: instantiated from ‘PyObject* boost::python::detail::caller_arity<3u>::impl<F, Policies, Sig>::operator()(PyObject*, PyObject*) [with F = void (*)(unsigned int, dxGeom*, dxGeom*), Policies = boost::python::default_call_policies, Sig = boost::mpl::vector4<void, unsigned int, dxGeom*, dxGeom*>]’
/media/sda1/Development/PYTHONOGRE/python-ogre/boost_1_35_0/boost/python/object/py_function.hpp:38: instantiated from ‘PyObject* boost::python::objects::caller_py_function_impl<Caller>::operator()(PyObject*, PyObject*) [with Caller = boost::python::detail::caller<void (*)(unsigned int, dxGeom*, dxGeom*), boost::python::default_call_policies, boost::mpl::vector4<void, unsigned int, dxGeom*, dxGeom*> >]’
generated/ogreode_1.0/CollisionCallback.pypp.cpp:162: instantiated from here
/media/sda1/Development/PYTHONOGRE/python-ogre/boost_1_35_0/boost/python/type_id.hpp:88: error: invalid use of incomplete type ‘struct dxGeom’
/usr/local/include/ode/common.h:236: error: forward declaration of ‘struct dxGeom’
scons: *** [build_dir_2.5/ogreode_1.0/CollisionCallback.pypp.os] Error 1
scons: building terminated because of errors.

It appears the code from the previous version of generate_code.py to define "ode" return values as opaque is missing, see attached patch.

Discussion

  • dermont

    dermont - 2008-07-22
     
  • Andy

    Andy - 2008-08-17
    • assigned_to: nobody --> andy_miller
    • status: open --> closed-accepted
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks