[Bf-committers] [Bf-blender-cvs] CVS commit: blender SConstruct blender/extern Makefile blender/source Makefile blender/source/gameengine/Ketsji KX_ConvertPhysicsObject.h SConscript blender/source/gameengine/Physics Makefile blender/source/gameengine SConscript ...

Lguillaume lecocqguillaume at gmail.com
Mon Oct 24 11:14:46 CEST 2005


Hello, I think there is a problem when compiling both sumo and bullet.
I use free msvc toolkit 2003 with scons, at the end when linking, the 
compiler says it did not found Phy_Ode.lib, I don't enable ode, so I 
search a little and I perhaps found the problems.

For me, the problems is in tools/scons/bs/bs_libs.py at line 91 we have:

        if bs_globals.user_options_dict['USE_PHYSICS'] == 'solid':
            env.Append (LIBS=['PHY_Sumo', 'PHY_Physics', 'blender_MT', 
'extern_solid', 'extern_qhull'])
        else:
            env.Append (LIBS=['PHY_Ode',
                    'PHY_Physics'])
            env.Append (LIBS=bs_globals.user_options_dict['ODE_LIBRARY'])
            env.Append (LIBPATH=bs_globals.user_options_dict['ODE_LIBPATH'])

If the variable USE_PHYSICS='bullet', the compiler want to link with 
PHY_Ode. we can correct this by:

        if bs_globals.user_options_dict['USE_PHYSICS'] == 'solid':
            env.Append (LIBS=['PHY_Sumo', 'PHY_Physics', 'blender_MT', 
'extern_solid', 'extern_qhull'])
        elif bs_globals.user_options_dict['USE_PHYSICS'] == 'ode':
            env.Append (LIBS=['PHY_Ode',
                    'PHY_Physics'])
            env.Append (LIBS=bs_globals.user_options_dict['ODE_LIBRARY'])
            env.Append (LIBPATH=bs_globals.user_options_dict['ODE_LIBPATH'])




More information about the Bf-committers mailing list