[Qt-interest] Building 32-bit libs/apps on 64-bit host?

Mark Constable markc at renta.net
Mon Jan 5 15:05:24 CET 2009


On Monday 05 January 2009 23:03:56 Richard Danter wrote:
> > All in all, I wonder if installing a 32 bits Ubuntu under qemu or
> > virtualbox would not be less hassle. ;)
> 
> You may be right. Or maybe I just use an old laptop. Thanks for the advice.

Perhaps even simpler is to install a 32 bit distro to a folder,
or better would be a spare 10Gb partition, and chroot into it
like...

  ROOT=/path/to/some/where
  sudo mount --bind /dev $ROOT/dev
  sudo mount --bind /sys $ROOT/sys
  sudo mount --bind /proc $ROOT/proc
  sudo mount --bind /home $ROOT/home
  sudo linux32 chroot $ROOT su -l $USER
  sudo umount $ROOT/dev
  sudo umount $ROOT/sys
  sudo umount $ROOT/proc
  sudo umount $ROOT/home

then you have full speed compilation without emulation. I mount
a common /home, with sources and build scripts, to build 64bit
binary packages then use the above to build a matching set of
32bit packages using the same source and build scripts.

--markc



More information about the Qt-interest-old mailing list