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/srcFirst, pixman was outdated.
git clone git://anongit.freedesktop.org/git/pixman pixmanBuild 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 PMMessage Edited by Alban on
2007-09-03 08:55 PM