Julien Nadeau | 5 May 2010 16:25
Favicon

Re: cross-compilation

On Wed, May 05, 2010 at 01:28:46PM +0000, Ash wrote:
> I tired compiling "console" demo, and succeeded, but when I run it, I get the
> following error:
> 
> Failed to load default font: Bad XCF geometry: 134217728x201326592

This looks like an endianness issue. If your target platform is
little-endian, make sure to do:

	echo "#define _MK_LITTLE_ENDIAN" > config/_mk_little_endian.h
	echo "#undef _MK_BIG_ENDIAN" > config/_mk_big_endian.h

or if it's big-endian:

	echo "#undef _MK_LITTLE_ENDIAN" > config/_mk_little_endian.h
	echo "#define _MK_BIG_ENDIAN" > config/_mk_big_endian.h

This is not yet determined automatically by configure.

I would also recommend that you compile FreeType for the target
platform. FreeType has been successfully ported to embedded platforms,
it should cross-compile without any problems.

Gmane