Author: Jonathan Hudson Date: To: hampshire Subject: Re: [Hampshire] Building 32-bit apps on 64-bit host
On Mon, 05 Jan 2009 18:24:05 +0000
Jonathan Hudson <jh+hlug@???> wrote:
> On Mon, 5 Jan 2009 12:23:04 +0000
> "Richard Danter" <radanter@???> wrote:
>
> > Hi all,
>
> Doesn't really answer the question ...
>
> The hard bit is making sure you have all the development libraries
> in /usr/lib32. I've built a number of console and gtk apps on x86_64
> for an ia32 target with 'CC=gcc -m32', but it may be more complex for
> qt.
>
> For gtk (and hence C, not C++),
>
> $ CC='gcc -m32' ./configure && make
>
> Then track down the missing 32 libraries. If you copy them off a 32bit
> box, you may need to hack the path in the respective .la files
> to /usr/lib32.
>
Easier not to have any *.la files in /usr/lib32, just symlink the
highest run time .so to a bare .so, e.g.:
# cd /usr/lib32
# ln -sf libfreetype.so.6.3.18 libfreetype.so