Blender compile problem with python2.2

Hello,

When I compile blender 228 (from source) I get the following errors related to python.
What is the blender build using for python?

pete

ERRORS
mkdir .libs
gcc -g -O2 -funsigned-char -I/usr/include/SDL -D_REENTRANT -o blender -Wl,-export-dynamic -Wl,-rpath -Wl,/usr/lib -L/usr/lib/python2.2/config source/.libs/libblender_source.al intern/bsp/.libs/libblender_BSP.al intern/decimation/.libs/libblender_LOD.al intern/ghost/.libs/libblender_GHOST.al intern/string/.libs/libblender_STR.al intern/guardedalloc/.libs/libblender_guardedalloc.al intern/bmfont/.libs/libblender_BMF.al intern/container/.libs/libblender_CTR.al intern/memutil/.libs/libblender_MEM.al intern/iksolver/.libs/libblender_IK.al intern/moto/.libs/libblender_MT.al intern/SoundSystem/.libs/libsoundsystem.al -L/mesa/Mesa-4.0.4/src -L/usr/X11R6/lib -lXext -lX11 -lpthread -lXext -lX11 -lpthread -lXext -lX11 -lpthread -lXext -lX11 -lpthread -lX11 -lXext -L/usr/lib -lm -lutil -lX11 -lXext -ldl -lutil -lpthread -ldl -lm -lX11 -lXext -ldl -lX11 -lXext -ldl -lpthread -lm -lX11 -lXext -ldl -lpython2.2 -lm /usr/local/lib/libGLU.so -lXext -lX11 -lpthread /usr/local/lib/libGL.so -lglide3 -lSM -lICE -lXmu -lXt -lXext -lXi -lX11 -lpthread -lX11 -lXext -lopenal -lvorbisfile -lvorbis -logg /usr/lib/libesd.so -laudiofile -lm -lsmpeg -lutil -lm -lX11 -lXext -ldl -lutil /usr/lib/libjpeg.so -lpng -lpthread -ldl -lstdc++ -lz /usr/lib/libSDL.so -lm -lX11 -lXext -ldl -lpthread -lm -lX11 -lXext -lXxf86vm -lXxf86dga -lXv -lXinerama -ldl -Wl,–rpath -Wl,/usr/local/lib -Wl,–rpath -Wl,/usr/local/lib
/usr/lib/python2.2/config/libpython2.2.a(posixmodule.o): In function posix_tmpnam': /python22/Python-2.2.3/./Modules/posixmodule.c:4507: the use oftmpnam_r’ is dangerous, better use mkstemp' /usr/lib/python2.2/config/libpython2.2.a(posixmodule.o): In functionposix_tempnam’:
/python22/Python-2.2.3/./Modules/posixmodule.c:4457: the use of tempnam' is dangerous, better usemkstemp’
/usr/lib/python2.2/config/libpython2.2.a(_tkinter.o): In function Merge': /python22/Python-2.2.3/./Modules/_tkinter.c:323: undefined reference toTcl_Alloc’
/python22/Python-2.2.3/./Modules/_tkinter.c:324: undefined reference to Tcl_Alloc' /python22/Python-2.2.3/./Modules/_tkinter.c:351: undefined reference toTcl_Merge’
/python22/Python-2.2.3/./Modules/_tkinter.c:358: undefined reference to Tcl_Free' /python22/Python-2.2.3/./Modules/_tkinter.c:361: undefined reference toTcl_Free’
/python22/Python-2.2.3/./Modules/_tkinter.c:363: undefined reference to Tcl_Free' /usr/lib/python2.2/config/libpython2.2.a(_tkinter.o): In functionSplit’:
/python22/Python-2.2.3/./Modules/_tkinter.c:383: undefined reference to Tcl_SplitList' /python22/Python-2.2.3/./Modules/_tkinter.c:408: undefined reference toTcl_Free’
/usr/lib/python2.2/config/libpython2.2.a(_tkinter.o): In function Tkapp_New': /python22/Python-2.2.3/./Modules/_tkinter.c:455: undefined reference toTcl_CreateInterp’
/python22/Python-2.2.3/./Modules/_tkinter.c:464: undefined reference to Tcl_DeleteCommand' /python22/Python-2.2.3/./Modules/_tkinter.c:467: undefined reference toTcl_SetVar2’
/python22/Python-2.2.3/./Modules/_tkinter.c:473: undefined reference to Tcl_SetVar' /python22/Python-2.2.3/./Modules/_tkinter.c:476: undefined reference toTcl_Alloc’
/python22/Python-2.2.3/./Modules/_tkinter.c:486: undefined reference to Tcl_SetVar' /python22/Python-2.2.3/./Modules/_tkinter.c:487: undefined reference toTcl_Free’
/python22/Python-2.2.3/./Modules/_tkinter.c:232: undefined reference to Tcl_GetStringResult' /usr/lib/python2.2/config/libpython2.2.a(_tkinter.o): In functionAsObj’:
/python22/Python-2.2.3/./Modules/_tkinter.c:514: undefined reference to Tcl_NewStringObj' /python22/Python-2.2.3/./Modules/_tkinter.c:518: undefined reference toTcl_NewDoubleObj’
/python22/Python-2.2.3/./Modules/_tkinter.c:520: undefined reference to Tcl_Alloc' /python22/Python-2.2.3/./Modules/_tkinter.c:527: undefined reference toTcl_NewListObj’
/python22/Python-2.2.3/./Modules/_tkinter.c:528: undefined reference to Tcl_Free' /python22/Python-2.2.3/./Modules/_tkinter.c:551: undefined reference toTcl_NewUnic…

why on earth are you geting errors regarding to tkinter during a blender compile?

(blender [will use|uses] tkinter???)

I imagine you have python installed, as well as the development libraries

try the blender.org forums, there is one for this kind of thing

and when you post there (maybe post it here as well) also mention your OS, and gcc version, what you have tried (do you have python-devel installed, after and it didn’t fix it, kind of thing)

It looks like python is not installed properly.

Also, looking through that list, are you sure you want Mesa & glide? I would say you would get better performance with OpenGL from XFree86.

"why on earth are you geting errors regarding to tkinter during a blender compile? "

To use ‘tkinter’ with the source python build you have to manually edit a ‘Setup’ file.
(it’s in the python readme) . Python * is* installed correctly.

Try

import _tkinter

at the Python shell (not Blender) .
The import will fail if tkinter is not enabled. It is disabled in the python2.2 build by default.

I want to use _tkinter for making useful GUIs for blender. Not sure why blender hates
the Tcl library headers so much. (or why it cares)

Unless the blender python is meant to be crippled in some way to guarantee that outside
addons don’t get made. That would be pretty counter productive.

Peter