[Bf-committers] Windows cross-compile fails with SCons

Nathan Letwory nathan at letworyinteractive.com
Sun Nov 14 21:28:58 CET 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 14.11.2010 3:35, Caleb wrote:
> Cross-compiling a 32-bit build on 64-bit Windows seems to have some 
> linking problems. I am using a 32-bit version of Python for this and 
> have my VS environment set to 32-bit. Could it be some kind of 
> misconfiguration?
> 
> -Caleb.
> 
> 
> Linking program ==> 'makesdna.exe'
> Compiling ==> 'rna_access.c'
> rna_access.c
> C:\Blender\build\blender25-win32\source\blender\makesdna\intern\makesdna.obj 
> :
> fatal error LNK1112: module machine type 'x64' conflicts with target 
> machine type 'X86'
> scons: *** [C:\Blender\build\blender25-win32\makesdna.exe] Error 1112
> Compiling ==> 'makesrna.c'
> makesrna.c

Hmm, this error really only happens when you secretly/accidently use a
64bit Python version after all. Make absolutely sure your Python is
32bit. From the build paths you cannot tell, because you have overriden
those in a user-config.py/custom config. Also, if you use the same build
paths for 32bit and 64bit, it is probably a good idea to run a scons
with clean target after all. Even better is to use custom configurations
for different bitnesses.

I use two different configurations, called graphicall_32b and
graphicall_64, both pointing to different BF_BUILDDIR and BF_INSTALLDIR.
I activate them on command-line by passing them to scons with
BF_CONFIG=graphicall_32b and BF_CONFIG=graphicall_64b respectively.

This works, I build many times a day 32bit versions of Blender on my
64bit Win7 Ultimate.

/Nathan

- -- 
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/

iQEcBAEBAgAGBQJM4EaKAAoJEKtfN7KsE0TtCnUIAIckCgQ0Ub7Vx+8rk+r2U6Qd
OKAPTNHpYaF0u7gfJsLz0mXUaaZEjplhHoqUCohvrahzTIIy2C9LgXn08j7LbOZv
ADFnHRE6rXKe4veSlEmlbLGUgpGBsSgZo8xm8tj6vVoPUO0Gh9fYVqtGNfUGkC6m
OJcRnDOb8YWWcyOpdSfv3QxwKAyG4QPzcK/KCw2KrhvRfcnsmUiOE2JPiQwV2JIv
U5e5G4NhIUHAaESHOOWXjT0IydDTcuZ7hzzFVIuCxr7nNR6aR9QAdwiyGyq9Wrxc
3R3slw5PIBh5k1cjiDllvQORQIii88wDjoHjtN7Wv/Zpyd62FS5O2olvm9Ibavo=
=09ar
-----END PGP SIGNATURE-----


More information about the Bf-committers mailing list