I am trying to compiling 2.49 source with the last SSGI patch as I did a few days ago with 2.48 + SSGI without problems. Here it is the error:
source/blender/blenkernel/intern/node.c:31:20: error: Python.h: No existe el fichero ó directorio
scons: *** [/home/otomo/Escritorio/build/linux2/source/blender/blenkernel/intern/node.o] Error 1
scons: building terminated because of errors.
No existe el fichero ó directorio=File or directory not found
Anyone know what could happened? Thanks in advance :spin:
check the python section of your scons config. The compiler is not finding the include files from your python installation. Most likely the paths in the python section are not configured correctly.
Not sure if 2.49 demands for python 2.6. But if that is the case you need to change BF_PYTHON_VERSION=‘2.5’ to BF_PYTHON_VERSION=‘2.6’ in the file you posted the extract of. Otherwise scons will use python 2.5 nonetheless
Are you using Ubuntu? Did you recently update to Jaunty? If so, your dev package of Python 2.6 may have gone away. The very same thing just happened to me today (no Python.h error in node.c). Went into Synaptic Package Manager and Lo! My previously installed Py2.6 Dev package was no longer installed. Reinstalled it compile went right through. If you’ve recently done a linux system upgrade, make sure your 2.6 Python dev package is still there!
Yes I have Jaunty, but I installed it fresh. I checked and I have both 2.5 and 2.6 python dev packages. Also a reinstalled 2.6 python dev package and give error anyway when compiling. I will drop here my linux config:
BF_REDCODE_INC = ‘${BF_REDCODE}/…/’ #C files request “libredcode/format.h” which is in “#extern/libredcode/format.h”, stupid but compiles for now.
BF_REDCODE_LIBPATH=‘${BF_REDCODE}/lib’
Mesa Libs should go here if your using them as well…
Maybe try BF_PYTHON_VERSION = py_version_string() instead of BF_PYTHON_VERSION = ‘2.6’.
Works for me…
Also might want to figure out which version of python is set as the default since it could be trying to link to the wrong one. On my box opening up a python interpreter and typing in;
I don’t know its the first time I saw it Very weird. I compiled Blender many many times and I don’t understand why is the reason of this error. In fact in the same pc I could compile 2.48 without problems, but 2.49 no, even without patches or editing the config file.