[mojosetup] 64 bit systems

Gerry JJ trick at icculus.org
Wed Dec 5 08:14:30 EST 2007


Den Tue, 04 Dec 2007 15:09:59 -0600
skrev Timothee Besset <ttimo at idsoftware.com>:
> Lo all,
> 
> Did we have a solution worked out for making installers that would
> support both 64 and 32 bit environments?

I noticed there's some code in mojosetup that tries to launch any
executables you place in the 'arch' directory in the archive (in
arbitrary order?), if SUPPORT_MULTIARCH is defined, so you can put a
64-bit build of the mojosetup executable in there and it'll launch
that.  It'll still require 32-bit support to launch the 32-bit mojosetup
first, obviously, but at least it can use the 64-bit libs then.  I
played around with it a tiny bit before, and it did seem to work then,
but I'm not sure how dynamic GUIs would work with this. Probably it'd
be as simple as just putting extra 64-bit ones into the guis directory?
Also, I didn't test if that works when you concat the archive onto the
executable, hopefully it does..

> On Debian Sid amd64, the ncurses interface has no problem running, but
> the Gtk UI fails (no libgtk-x11-2.0.so.0, even in the 32 bit compat
> libs).

There's problems with other distros as well.  For example, in 64-bit
Arch Linux, 32-bit gtk 2 is available, but it uses pango, which
*doesn't* work without a bit of hacking around (apparently pango isn't
designed to support multiple archs at all), so you end up with lots of
empty squares in stead of readable text.  There's ways to "fix" this,
but it requires creating new config files specifically for 32-bit and
launching any 32-bit executable you want to work through a wrapper to
make pango use those config files in stead of the default ones.  (I
don't know why they can't just patch the 32-bit pango lib to use a
32-bit config by default..)

- Gerry



More information about the mojosetup mailing list