[Bf-committers] compiling 32 bit blender on 64 bit linux
Kent Mein
mein at cs.umn.edu
Wed May 31 22:20:20 CEST 2006
In reply to malefico andauer (the3d_hut at yahoo.com.ar):
> Alfredo, I have been able to compile 32bit blender
> under ubuntu linux in 64bits.
>
> What I did was install "dchroot". This installs 32bit
> version of almost all needed libraries and software to
> compile blender.
>
> After that, using scons as usual (opening a terminal
> using "dchroot -d" and then "scons") works.
>
> Best regards
>
> malefico,
>
If you don't do this, you probably need to play with CONFIG_GUESS and
may need to add aditional libs at the linking phase...
chroot is the way to go though ;)
Kent
> --- Alfredo de Greef <eeshlo at yahoo.com> escribió:
>
> > Hi everyone,
> >
> > Up to a month ago I compiled Blender without any
> > apparent problems on 64 bit linux, without any
> > modification. However, now having to work again on
> > the
> > yafray code, I'm experiencing problems. For some
> > reason, pre-242 (cvs) blendfiles load incorrectly,
> > specifically, the RenderData struct seems to contain
> > incorrect, or at least 'shifted' values. What I mean
> > with 'shifted' is that parameters do have the
> > correct
> > values, but from *other* parameters, values are not
> > assigned to the correct parameter.
> > Anyway, I don't know why everything worked before,
> > something apparently recently changed, but this
> > might
> > have something to do with Blender's known 64 bit
> > problems.
> > So I would like to know how to compile a 32 bit
> > version of Blender on 64 bit Linux. I use SuSe 10.0,
> > with gcc 4.0.2 and scons. I'm no expert when it
> > comes
> > to these things, I can only guess what I'm supposed
> > to
> > do. I have tried adding the '-m32' flag to
> > CFLAGS/CCFLAGS & CXXFLAGS in the user-config.py
> > file,
> > but apparently this is not enough, it seems to work
> > fine until 'makesdna.c', at which point it stops:
> >
> >
> /usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld:
> > warning: i386 architecture of input file
> >
> `/home/eeshlo/cpp_source/blender_310506/build/linux2/source/blender/makesdna/intern/makesdna.o'
> > is incompatible with i386:x86-64 output
> >
> /usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld:
> > warning: i386 architecture of input file
> > `intern/guardedalloc/intern/mallocn.o' is
> > incompatible
> > with i386:x86-64 output
> > ../build/linux2/makesdna
> >
> /home/eeshlo/cpp_source/blender_310506/build/linux2/source/blender/makesdna/intern/dna.c
> > scons: ***
> >
> [/home/eeshlo/cpp_source/blender_310506/build/linux2/source/blender/makesdna/intern/dna.c]
> > Error -11
> > scons: building terminated because of errors.
> >
> > I have tried several random things, at one point I
> > got
> > past this point, but then either makesdna segfaults
> > or
> > the linking stage is still trying to link with the
> > 64
> > bit libraries. But can't remember how I accomplished
> > either.
> >
> > Searching for info on the net, I found similar
> > stories
> > of problems on compiling 32 bit programs on 64 bit
> > linux (for the SuSe distro at least), sometimes
> > without a solution, so maybe this is not something
> > unusual.
> > So my question is, can anyone give me a step by step
> > description of the required changes to get a 32 bit
> > version of Blender? I'm willing to try the makefile
> > system as well.
> >
> > Thanks in advance!
> >
> > Alfredo
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> > protection around
> > http://mail.yahoo.com
> > _______________________________________________
> > Bf-committers mailing list
> > Bf-committers at projects.blender.org
> >
> http://projects.blender.org/mailman/listinfo/bf-committers
> >
>
>
>
>
>
>
> ___________________________________________________________
> 1GB gratis, Antivirus y Antispam
> Correo Yahoo!, el mejor correo web del mundo
> http://correo.yahoo.com.ar
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
--
mein at cs.umn.edu
http://www.cs.umn.edu/~mein
More information about the Bf-committers
mailing list