dermont
01-12-2012 05:01:33
pradhoom
01-12-2012 13:41:10
Thanks dermont, it works great. I had few errors so I had to do these steps to generate and compile the module. I only tested it in linux (Ubuntu 12.04 x86_64) so don't know how it goes on Windows.
In PythonOgreConfig_*.py, I replaced
PATH_btogre= os.path.join(root_dir, 'ThirdParty','btogre')
with
PATH_btogre = os.path.join(PATH_THIRDPARTY, 'btogre')
And in environment.py
class btogre(pymodule):
version = "1.0"
name = 'btogre'
parent = "ogre/physics"
if not isWindows():
libs = [boost.lib, 'OgreMain', 'libBulletCollision', 'libBulletDynamics',
'libBulletSoftBody', 'libBulletMultiThreaded', 'libGIMPACTUtils',
'libLinearMath', 'libBulletWorldImporter', 'libBulletFileLoader']
else:
libs = [boost.lib, 'OgreMain', 'BulletCollision', 'BulletDynamics',
'BulletSoftBody', 'BulletMultiThreaded', 'GIMPACTUtils',
'LinearMath', 'BulletFileLoader', 'BulletWorldImporter']
include_dirs = [
boost.PATH,
Config.PATH_INCLUDE_Bullet,
os.path.join(Config.PATH_INCLUDE_Bullet, 'BulletCollision'),
Config.PATH_btogre,
Config.PATH_INCLUDE_Ogre,
os.path.join(Config.PATH_Bullet, "Extras", "ConvexDecomposition"),
]
lib_dirs = [
boost.PATH_LIB,
Config.PATH_LIB_Bullet,
Config.PATH_LIB_btogre,
Config.PATH_LIB_Ogre_OgreMain,
]
if isWindows():
CCFLAGS = ' -DWIN32 -DNDEBUG -D_WINDOWS -D_PRECOMP '
#LINKFLAGS = ' /NODEFAULTLIB:LIBCMT.lib '
else:
CCFLAGS = ' -D_PRECOMP -fno-inline '
ModuleName = 'btogre'
descText = "btogre Bullet Dynamics (physics) implementation"
dermont
04-12-2012 06:48:45
Thanks, I'll update the download with your changes.