[haiku-commits] Re: r34283 - haiku/trunk/src/bin/keymap
- From: Ingo Weinhold <ingo_weinhold@xxxxxx>
- To: haiku-commits@xxxxxxxxxxxxx
- Date: Fri, 27 Nov 2009 13:48:49 +0100
On 2009-11-26 at 22:23:23 [+0100], Alexandre Deckner <alex@xxxxxxxxxxxx>
wrote:
> ingo_weinhold@xxxxxx wrote:
> > Log:
> > Replaced hardcoded printf()/scanf() format modifiers by the B_{PRI,SCN}*
> > macros. This fixes the broken keymaps when building on a 64 bit host.
> >
> Worked for me on a 64 bit Ubuntu :) Didn't try long, i just noticed
> opengl demos not working.
A problem I've found is that Mesa's gen_matypes tool is not suitable for
cross-compilation. It computes offsets into structs on the build platform,
but the structs don't use fixed-size types for the members. So on a 64 bit
platform the header file the tool generates contains offsets that can't
work on a 32 bit Haiku.
The build system already has a mechanism to generate headers with struct
offset definitions. It should be possible to use it here, too.
CU, Ingo
Other related posts: