-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 18.8.2010 22:02, Michael McLay wrote: > The bmesh branch will not build using scons. The problem has to do with > library linking order when building the blender executable. The files > source/blender/modifiers/intern/MOD_mirror.c and > source/blender/modifiers/intern/MOD_array.c call CDDM_To_BMesh(dm, NULL), > which is located in the > bf_blenkernel.a library. Since this library is linked before the library > containing the object files from MOD_array.c and MOD_mirror.c the name > CDDM_To_BMesh is never resolved. Adding bf_blenkernel.a to the end of the > list of libraries passed into BlenderProg in SConstruct fixes the linking > problem. There's probably a more elegant way to do this, but at least this > makes it possible to build the bmesh version of Blender.
A better fix is to modify the SConscript for blenkernel and set its priority so that it comes after modifier; higher number is later in link list. Check the SConscript for modifier/ to find what priority is for it. /Nathan > > === modified file 'blender/SConstruct' > --- blender/SConstruct 2010-07-20 13:00:41 +0000 > +++ blender/SConstruct 2010-08-18 18:36:15 +0000 > @@ -408,7 +408,7 @@ > thesyslibs = B.setup_syslibs(env) > > if 'blender' in B.targets or not env['WITH_BF_NOBLENDER']: > - env.BlenderProg(B.root_build_dir, "blender", dobj + mainlist + > thestatlibs, [], thesyslibs, [B.root_build_dir+'/lib'] + thelibincs, > 'blender') > + env.BlenderProg(B.root_build_dir, "blender", dobj + mainlist + > thestatlibs + [B.root_build_dir+'/lib/libbf_blenkernel.a'], [], thesyslibs, > [B.root_build_dir+'/lib'] + thelibincs, 'blender') > if env['WITH_BF_PLAYER']: > playerlist = B.create_blender_liblist(env, 'player') > playerlist += B.create_blender_liblist(env, 'intern') > _______________________________________________ > Bf-committers mailing list > [email protected] > http://lists.blender.org/mailman/listinfo/bf-committers - -- Nathan Letwory Letwory Interactive http://www.letworyinteractive.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJMbWhKAAoJEKtfN7KsE0Tt9lIH/iE6kO6AY0/1tKV/oXiLd85M Vf1fZQ5CYdDs9CywiiFV0BaiRcA9QsCmlpajuxBBCf3RmWAmBqwUGE+gSZg7BwR7 rEQMHhGyoS2tejGpHgTF0gfED13CbYnGiJW+UrUVyNGY8U37kZok+aQ3lMNP5xfc tYnpbwzzrL3qknA329DSoAydtxqYXc++jW2MFOB45hpQoOyu2CYk2RwT/720jJWN AiqLRJVbLfSIl9Mm5lccO8NhiMHPa+nGBhSQ/bIyhU80YQzhP+TB4y1knZ+odfjJ xVEadPLc4ZXVx/H/aONSc9bx6FnucW9o6aJiCGpn+V1sQm45H4XArYqOgqNEA2c= =xIen -----END PGP SIGNATURE----- _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
