[Qt-interest] Building 32-bit libs/apps on 64-bit host?
Alexandre Courbot
gnurou at gmail.com
Mon Jan 5 13:46:24 CET 2009
You need to cross-compile your application and its libs for a 32 bits
target. Using Ubuntu, I guess (i.e. never did it) that you need to
instsall the libc6-dev-i386 package (32 bits libc6) and call the
compiler with the -m32 flag. Doing these two things you should be able
to compile a simple "hello world". As for Qt applications, you also
need a 32 bits version of qt somewhere. I guess you can force the
installation of the 32 bits packages to some custom location (NOT the
default one as it would override your installation!) and play with
compiler flags. You might need to do the same for the dependencies as
well.
All in all, I wonder if installing a 32 bits Ubuntu under qemu or
virtualbox would not be less hassle. ;)
Alex.
More information about the Qt-interest-old
mailing list