Hi,
I also tried to compile Bullet (2.75) today, not on Mac but on Linux
(Ubuntu 9.04, Python 2.6.2).
I also encountered the same errors as you did and managed to fix
them.
Your last error is because some header file is somehow missed (by Py+
+ ?). Take the following files:
python-ogre/generated/bullet_2.75/
btAlignedAllocator_PosixThreadSupportBtSpuStatus16u.pypp.cpp
python-ogre/generated/bullet_2.75/
btAlignedObjectArray_PosixThreadSupportBtSpuStatus16u.pypp.cpp
and add the following line:
#include "BulletMultiThreaded/PosixThreadSupport.h"
Unfortunately, I have now another error, and it seems that it is Boost-
related:
/home/sjoerd/python-ogre/development/root/usr/include/boost/python/
converter/registered.hpp:86: error: no matching function for call to
‘register_shared_ptr1(void (*)(btDynamicsWorld*, btScalar))’
(and no, I don't know where the
This is the full error message:
File "/home/sjoerd/python-ogre/development/python-ogre/SConstruct",
line 144, in <module>
/home/sjoerd/python-ogre/development/root/usr/include/boost/python/
converter/registered.hpp: In function ‘const
boost::python::converter::registration&
boost::python::converter::detail::registry_lookup2(T& (*)()) [with T =
void ()(btDynamicsWorld*, btScalar)]’:
/home/sjoerd/python-ogre/development/root/usr/include/boost/python/
converter/registered.hpp:94: instantiated from ‘const
boost::python::converter::registration&
boost::python::converter::detail::registry_lookup1
(boost::type<Target>) [with T = void (&)(btDynamicsWorld*, btScalar)]
’
/home/sjoerd/python-ogre/development/root/usr/include/boost/python/
converter/registered.hpp:105: instantiated from ‘const
boost::python::converter::registration&
boost::python::converter::detail::registered_base<void (&)
(btDynamicsWorld*, btScalar)>::converters’
/home/sjoerd/python-ogre/development/root/usr/include/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 = void (*)(btDynamicsWorld*, btScalar)]’
/home/sjoerd/python-ogre/development/root/usr/include/boost/python/
arg_from_python.hpp:70: instantiated from
‘boost::python::arg_from_python<T>::arg_from_python(PyObject*) [with
T = void (*)(btDynamicsWorld*, btScalar)]’
/home/sjoerd/python-ogre/development/root/usr/include/boost/
preprocessor/iteration/detail/local.hpp:37: instantiated from
‘PyObject* boost::python::detail::caller_arity<4u>::impl<F,
Policies, Sig>::operator()(PyObject*, PyObject*) [with F = void (*)
(btDynamicsWorld&, void (*)(btDynamicsWorld*, btScalar), unsigned int,
bool), Policies = boost::python::default_call_policies, Sig =
boost::mpl::vector5<void, btDynamicsWorld&, void (*)(btDynamicsWorld*,
btScalar), unsigned int, bool>]’
/home/sjoerd/python-ogre/development/root/usr/include/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 (*)(btDynamicsWorld&, void (*)
(btDynamicsWorld*, btScalar), unsigned int, bool),
boost::python::default_call_policies, boost::mpl::vector5<void,
btDynamicsWorld&, void (*)(btDynamicsWorld*, btScalar), unsigned int,
bool> >]’
generated/bullet_2.75/btDynamicsWorld.pypp.cpp:671: instantiated
from here
/home/sjoerd/python-ogre/development/root/usr/include/boost/python/
converter/registered.hpp:86: error: no matching function for call to
‘register_shared_ptr1(void (*)(btDynamicsWorld*, btScalar))’
I tried both Boost SVN and Boost 1.41, it made no difference. Can you
please help me out?
cheers
Sjoerd
> > I just examined environment.py - it looks to me like someone editedbullet's
> > options and added Visual Studio CCFLAGS globally for all platforms, instead
> > of just for Windows. Can you try removing/commenting out CCFLAGS forbullet
> > from environment.py?
>
> > That's two lines above:
> > class ogrebulletc(pymodule):
> > (at least in current trunk.)
>
> > If that compiles, you may want to recompile with:
> > CCFLAGS='-fno-inline'
> > (that's what ogrebulletc module uses, and it sounds to me like it may be
> > important for the wrapper). To build with debug options, naturally, also
> > pass -g2 or -g3.
>
> > Have fun!
>
> > On Tue, Oct 20, 2009 at 16:43, Louis731 <
louis...@gmail.com> wrote:
>
> > > Scrap my previous post, cuz I forgot to compile :[
>
> > > Anyway, I tried compile, and had alot of missing files, seems that the
> > >bulletmodule is not native to Mac after all.
> > > > And, is there a way that I can test thebullethas been integrated
> > > > into Python-ogre?
>
> > > > On Oct 19, 11:08 pm, Andy Miller <
nzmill...@gmail.com> wrote:
>
> > > > > Sorry missed this early on -- The current wrapper code if forbullet
> > > 2.74 so
> > > > > the the fix is to patch *PythonOgreConfig_posix.py* and change the
> > > > > PATH_Bullet like:
> > > > > *PATH_Bullet= os.path.join(BASE_DIR, 'bullet-2.74') *
>
> > > > > I'll fix this in the SVN
>
> > > > > Regards
> > > > > Andy
>
> > > > > 2009/10/20 Ivan Vučica <
ivuc...@gmail.com>
>
> > > > > > Unfortunately this is as far as I can help, I have no real experience
> > > > > > writing and bugfixing the wrapper, only what I did during compiling
> > > (and
> > > > > > that didn't includebullet, for at Cateia we don't use it in our
> > > > > >> > > > Now I'm trying to addBulletinto the environment.
> ...
>
> read more »