complie blender in debug model?

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
mingxin
Posts: 0
Joined: Wed Mar 05, 2008 2:46 am

complie blender in debug model?

Post by mingxin »

i use scons+wingw complie blender passed.
now i want to complie it in debug mode,Scons --debug argument only print debug infomation.if i want to debug my blender ,how to config my scons?
thanks handydan.but problem no slove.
i' sorry,i write error. i use Scons+mingw+vC2005,
thanks again.
Last edited by mingxin on Sun Mar 30, 2008 3:53 am, edited 1 time in total.

handydan
Posts: 0
Joined: Mon Nov 19, 2007 4:40 pm

Post by handydan »

BF_DEBUG=1

Loolarge
Posts: 0
Joined: Sun Sep 07, 2008 1:26 am

Post by Loolarge »

I am using scons and mingw. Normal compile works fine, but when i turn on the debug flag i get errors like this:
C:\build\install\lib\libblender_python.a(BPY_interface.o): In function `setup_armature_weakrefs':

c:/build/blender/source/blender/python/BPY_interface.c:120: undefined reference to `_imp___Py_RefTotal'

c:/build/blender/source/blender/python/BPY_interface.c:120: undefined reference to `_imp___Py_NegativeRefcount'

c:/build/blender/source/blender/python/BPY_interface.c:120: undefined reference to `_imp___Py_Dealloc'
How can i fix it?

Thanks,
Ivo

stiv
Posts: 0
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Post by stiv »

If you are using a Microsoft compiler, I believe you will also need a debug version of the Python lib.

Loolarge
Posts: 0
Joined: Sun Sep 07, 2008 1:26 am

Post by Loolarge »

No i am not using MSVC. But where can i get the debug version of the python lib? I am afraid of having to compile it myself. Where would i have to start?

jesterKing
Site Admin
Posts: 207
Joined: Fri Oct 18, 2002 12:48 pm
Location: Finland

Post by jesterKing »

scons+mingw doesn't currently support BF_DEBUG=1 because we don't have a proper debug lib for python that can be linked to using mingw.

/Nathan

Loolarge
Posts: 0
Joined: Sun Sep 07, 2008 1:26 am

Post by Loolarge »

Thanks yor for the info Jesterking. I will try using MSVC then

Post Reply