scons.py errors with python 3.2
Posted: Tue Aug 30, 2011 9:44 pm
I am trying to compile 64 bit blender 2.9 on a windows 7 machine.
I tried cmake first but got errors, so I'm now working with scons.
I had python2.7 on my machine. Scons compiled everything happily
but while linking makesdna.exe i got the error:
module machine type 'X86' conflicts with target machine type 'x64'
I tried seval things with no luck so I installed python3.2 since i noticed blender was built with this version.
Now when i run scons it can't get out of the starting gate. I get an error that comes from the scons.py file i'm guessing. The error states that environ has no such attribute has_key
[offending lines from scons.py]
if os.environ.has_key("SCONS_LIB_DIR"):
libs.append(os.environ["SCONS_LIB_DIR"])
From what i've read, has_key was used in python2 but dropped in python3.
So it appears that blender can't be scons-built with python3 even though it is internally built with python3.2? REALLY? I used tortoiseSVN to grab the trunk from blender just last week.
I guess I'll go back to python2.7 and try to find the error with the linker between module machine and target machine.
Been at this a few days now. Any help appreciated.
I tried cmake first but got errors, so I'm now working with scons.
I had python2.7 on my machine. Scons compiled everything happily
but while linking makesdna.exe i got the error:
module machine type 'X86' conflicts with target machine type 'x64'
I tried seval things with no luck so I installed python3.2 since i noticed blender was built with this version.
Now when i run scons it can't get out of the starting gate. I get an error that comes from the scons.py file i'm guessing. The error states that environ has no such attribute has_key
[offending lines from scons.py]
if os.environ.has_key("SCONS_LIB_DIR"):
libs.append(os.environ["SCONS_LIB_DIR"])
From what i've read, has_key was used in python2 but dropped in python3.
So it appears that blender can't be scons-built with python3 even though it is internally built with python3.2? REALLY? I used tortoiseSVN to grab the trunk from blender just last week.
I guess I'll go back to python2.7 and try to find the error with the linker between module machine and target machine.
Been at this a few days now. Any help appreciated.