|
From: | Rob Savoye |
Subject: | [Gnash] cross compiling Gnash |
Date: | Thu, 23 Feb 2006 17:24:24 -0700 |
User-agent: | Mozilla Thunderbird 1.0.7 (X11/20051013) |
I always build using a separate build tree, so as to leave my source tree cleaner for doing greps. Now all the autoconf macros look in $prefix first, so if you have a built arm-linux system on your x86-linux machine, it looks in the right place by default. Disabling the plugin eliminates a slew of configure tests that you don't care about if you're cross compiling to an embedded system.
You need libxml2, libpng, libjpeg, sdl, sdl mixer, opengl, and ogg development packages built for the target system. I found a great web site with the most clear directions at: http://frank.harvard.edu/~coldwell/toolchain/.
After I built up an arm-linux system in /usr/arm, I then cross compiled all the other libraries I needed. The fun part is trying to get libMesa to cross compile, because it's not really setup for it...
So to build for an arm based system on an x86 based systems, configure like this. The default behaviors are usually the best, so you don't really want to use any other options than these unless you have to.
../gnash/configure CFLAGS=-g CXXFLAGS=-g --target=arm-unknown-linux-gnu --prefix=/usr/arm --host=arm-unknown-linux-gnu --build=i686-pc-linux-gnu --disable-plugin
- rob -
[Prev in Thread] | Current Thread | [Next in Thread] |