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

Richard Danter radanter at googlemail.com
Mon Jan 5 14:03:56 CET 2009


2009/1/5 Alexandre Courbot <gnurou at gmail.com>:
> 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. ;)

You may be right. Or maybe I just use an old laptop. Thanks for the advice.

Rich



More information about the Qt-interest-old mailing list