Feb 7, 2011

How to build Clutter for Beagleboard (2)

Follow up with http://changetheworldwithyourpassion.blogspot.com/2009/09/how-to-build-clutter-for-beagleboard.html but with detail how to compile dependencies also

GLib

  • set PATH for the toolchain so that the configure can find the ARM gcc
  • Create a directory to store bin, lib, include of the builded-packages:
    • mkdir /data/opt
    • export MYPATH=/data/opt
  • Download and Extract glib-2.20.5, go to the extracted folder:
    ./configure --prefix=$MYPATH/glib --host=arm-angstrom-linux-gnueabi ac_cv_func_posix_getpwuid_r=yes ac_cv_func_posix_getgrgid_r=yes glib_cv_stack_grows=no glib_cv_uscore=no
    make
    make install

Pixman

Download and extract pixman-0.17.8 into a folder.
./configure --prefix=$MYPATH/pixman --host=arm-angstrom-linux-gnueabi --enable-gtk=no
make
make install

Freetype

Download and extract freetype-2.3.12 into a folder
./configure --prefix=$MYPATH/freetype --host=arm-angstrom-linux-gnueabi
make
make install

Fontconfig

Download and extract fontconfig-2.8.0 into a folder
./configure --prefix=$MYPATH/fontconfig --host=arm-angstrom-linux-gnueabi --with-arch=arm --with-freetype-config=$MYPATH/freetype/bin/freetype-config PKG_CONFIG_PATH=$MYPATH/freetype/lib/pkgconfig/
make
make install

Cairo

Download and extract Cairo-1.8.10 into a folder
./configure --prefix=/$MYPATH/cairo --host=arm-angstrom-linux-gnueabi PKG_CONFIG_PATH=$MYPATH/freetype/lib/pkgconfig/:$MYPATH/fontconfig/lib/pkgconfig/:$MYPATH/pixman/lib/pkgconfig/ --enable-xlib=no --enable-directfb=no
make
make install

Pango

Build Pango-1.26.2:
./configure --prefix=$MYPATH/pango --host=arm-angstrom-linux-gnueabi PKG_CONFIG_PATH=$MYPATH/freetype/lib/pkgconfig:$MYPATH/fontconfig/lib/pkgconfig:$MYPATH/glib/lib/pkgconfig/:$MYPATH/cairo/lib/pkgconfig:$MYPATH/pixman/lib/pkgconfig/ CXX=mips-linux-c++ --with-x=no
make
make install

Clutter

Follow the http://changetheworldwithyourpassion.blogspot.com/2009/09/how-to-build-clutter-for-beagleboard.html then copy all to NFS and run the Clutter by yourself.

Have fun :-)
Post a Comment