Help! with building Minimo (Mozilla) for MX31

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Help! with building Minimo (Mozilla) for MX31

1,920 Views
ARMed_and_dange
Contributor I
I am having a horrid time trying to build minimo in a cross compiled environment on MX31. Has anyone been successful in doing this? I am using the gcc-4.1.1-glibc-2.4-nplt2 Freescale toolchain eabi to do this. Been using that toolchain for a year just fine.
 
I cant' seem to build XFree86 or X.Org either.
 
I want to start by asking ... has anyone been successful in building minimo or mozilla or X server?
 
Thanks.
0 Kudos
1 Reply

597 Views
eriko
Contributor I
I was able to build an Xorg (kdrive) server on the MX27 platform.  This uses the same compiler and build
environment.
However, I found the scratchbox environment more convenient for cross compiling (see http://scratchbox.org).
Take in mind that scratchbox is heavily debian oriented.  Xorg was compiled fine using the scratchbox
environment and then copied to the environment ltib had created. 

Xorg is installed in /usr/gui on my mx27, but this is flexible. These are my notitions from about a month ago,
things might have changed...  Anyway here are some steps I did in scratchbox, I imported the freescale
gcc compiler as a foreign toolchain in scratchbox. And started filling in the dependencies for cross compiling
various packages (Xorg, gtk, SDL, etc).
So here are the steps I did to create Xorg (KDrive):

# First setup the directory structure (everything is in /usr/gui
            instead of /usr)
export PREFIX=/usr/gui
mkdir -p /usr/gui/bin
mkdir /usr/gui/src
cd /usr/gui/src


First, pixman was outdated. git clone git://anongit.freedesktop.org/git/pixman pixman
Build and install pixma.

See the xorg wiki for how to download Xorg using git (downloaded in /usr/gui/src/xorg).
In my case I had to build drm first, otherwise Xorg wouldn't build:
cd /usr/gui/src/xorg/drm
./configure --prefix=$PREFIX/modular
make
make install

cd /usr/gui/src/xorg
PATH=$PREFIX/modular/bin:$PATH ./util/modular/build.sh -n -D
   $PREFIX/modular > build.log 2>&1

I believe this step took more than 2 hours on my AMD64 3000+ processor.  This prepares everything for
 building the apropriate X server.

Now it is time to build an Kdrive Xorg server:
aclocal -I ${PREFIX}/share/aclocal
autoconf
automake -a -c
XSERVERCFLAGS_CFLAGS="-I$PREFIX/include/" XSERVERCFLAGS_LIBS="-L$PREFIX/lib"
  ./configure --enable-composite  --enable-kdrive --disable-dga
 --disable-dri --disable-xinerama --disable-xf86misc
 --disable-xf86vidmode --disable-xorg --disable-xorgcfg --disable-xkb
  --disable-xnest --disable-xvfb --disable-xevie --disable-xprint
 --disable-xtrap --enable-xfbdev  --disable-dmx
 --enable-builtin-fonts --disable-dbus --enable-tslib
  --prefix=$PREFIX

I wasn't able to build mozilla(minimo) either, but I got pretty close the first try.  Haven't had the time to
figure out what went wrong.

Erik.


--
Alban Edit: line wrapping correction


Message Edited by Alban on 2007-09-03 08:54 PM

Message Edited by Alban on 2007-09-03 08:55 PM
0 Kudos