读书人

困难的LinuxCNC(EMC2)源代码安装依赖02

发布时间: 2013-02-24 17:58:56 作者: rapoo

艰难的LinuxCNC(EMC2)源代码安装依赖02

艰难的LinuxCNC(EMC2)源代码安装依赖02



GTK+-2.24.14

http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.14.tar.xz

ATK-2.6.0, Cairo-1.12.12, gdk-pixbuf-2.26.5, Pango-1.32.5 and Xorg Libraries

hicolor-icon-theme-0.12

ATK-2.6.0

http://ftp.gnome.org/pub/gnome/sources/atk/2.6/atk-2.6.0.tar.xz

GLib-2.34.3

GLib-2.34.3

http://ftp.gnome.org/pub/gnome/sources/glib/2.34/glib-2.34.3.tar.xz
Required

libffi-3.0.11, pkg-config-0.27.1 and Python-2.7.3


libffi-3.0.11

ftp://sourceware.org/pub/libffi/libffi-3.0.11.tar.gz

Required patch: http://www.linuxfromscratch.org/patches/blfs/svn/libffi-3.0.11-includedir-1.patch


patch -Np1 -i ../libffi-3.0.11-includedir-1.patch &&
./configure --prefix=/usr/local &&
make

make install



pkg-config-0.27.1

http://pkgconfig.freedesktop.org/releases/pkg-config-0.27.1.tar.gz

./configure --prefix=/usr/local \
--docdir=/usr/share/doc/pkg-config-0.27.1 \
--with-internal-glib &&
make

make install


Python-2.7.3

http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.xz
http://www.linuxfromscratch.org/patches/blfs/svn/Python-2.7.3-bsddb_fix-1.patch


Expat-2.1.0

http://downloads.sourceforge.net/expat/expat-2.1.0.tar.gz

./configure --prefix=/usr/local &&
make

make install &&
install -v -m755 -d /usr/share/doc/expat-2.1.0 &&
install -v -m644 doc/*.{html,png,css} /usr/share/doc/expat-2.1.0


Python-2.7.3

sed -i "s/ndbm_libs = \[\]/ndbm_libs = ['gdbm', 'gdbm_compat']/" setup.py &&
patch -Np1 -i ../Python-2.7.3-bsddb_fix-1.patch &&
./configure --prefix=/usr \
--enable-shared \
--with-system-expat \
--with-system-ffi \
--enable-unicode=ucs4 &&
make
make install &&
chmod -v 755 /usr/local/lib/libpython2.7.so.1.0


PCRE-8.32

http://downloads.sourceforge.net/pcre/pcre-8.32.tar.bz2

./configure --prefix=/usr \
--docdir=/usr/share/doc/pcre-8.32 \
--enable-utf \
--enable-unicode-properties \
--enable-pcregrep-libz \
--enable-pcregrep-libbz2 \
--disable-static &&
make

make install &&
mv -v /usr/local/lib/libpcre.so.* /lib &&
ln -sfv ../../lib/libpcre.so.1.2.0 /usr/lib/libpcre.so

GLib-2.34.3

./configure --prefix=/usr/local --with-pcre=system &&
make

make install


ATK-2.6.0

http://ftp.gnome.org/pub/gnome/sources/atk/2.6/atk-2.6.0.tar.xz

./configure --prefix=/usr/local &&
make

make install


安装的过程中如果找不到glib-2.0,配置环境 # export LD_LIBRARY_PATH=/usr/local/lib

Cairo-1.12.12

http://cairographics.org/releases/cairo-1.12.12.tar.xz


libpng-1.5.13, GLib-2.34.3 and Pixman-0.28.2
Recommended

Fontconfig-2.10.2 and Xorg Libraries


libpng-1.5.13

http://downloads.sourceforge.net/libpng/libpng-1.5.13.tar.xz


START=$(awk '/@/' scripts/symbols.def | sort -k2.3n | tail -1 | cut -d "@" -f2) &&
awk -v v="$START" '/^PNG(_.+)?_EXPORTA?\(/ {gsub(/PNG(_.+)?_EXPORTA?\(/, ""); gsub(/,/, ""); \
if($1 > v) print $3 " @"$1}' png.h | sort -k2.3n >> scripts/symbols.def


./configure --prefix=/usr/local --disable-static &&
make

make install &&
mkdir /usr/share/doc/libpng-1.5.13 &&
cp README libpng-manual.txt /usr/share/doc/libpng-1.5.13



Pixman-0.28.2


./configure --prefix=/usr/local --disable-static &&
make

make install

Fontconfig-2.10.2

http://fontconfig.org/release/fontconfig-2.10.2.tar.bz2

FreeType-2.4.11 and either expat-2.1.0 or libxml2-2.9.0



FreeType-2.4.11

http://downloads.sourceforge.net/freetype/freetype-2.4.11.tar.bz2


sed -i -r 's:.*(#.*SUBPIXEL.*) .*:\1:' \
include/freetype/config/ftoption.h &&
./configure --prefix=/usr --disable-static &&
make

make install


libxml2-2.9.0

http://xmlsoft.org/sources/libxml2-2.9.0.tar.gz

./configure --prefix=/usr/local --disable-static &&
make

make install



Fontconfig-2.10.2


./configure --prefix=/usr/local \
--sysconfdir=/etc \
--localstatedir=/var \
--docdir=/usr/local/share/doc/fontconfig-2.10.2 \
--disable-docs \
--disable-static &&
make

make install

install -v -dm755 \
/usr/share/{man/man{3,5},doc/fontconfig-2.10.2/fontconfig-devel} &&
install -v -m644 fc-*/*.1 /usr/share/man/man1 &&
install -v -m644 doc/*.3 /usr/share/man/man3 &&
install -v -m644 doc/fonts-conf.5 /usr/share/man/man5 &&
install -v -m644 doc/fontconfig-devel/* \
/usr/share/doc/fontconfig-2.10.2/fontconfig-devel &&
install -v -m644 doc/*.{pdf,sgml,txt,html} \
/usr/share/doc/fontconfig-2.10.2




Cairo-1.12.12


./configure --prefix=/usr \
--enable-tee \
--enable-xcb \
--disable-static &&
make


make install


gdk-pixbuf-2.26.5

http://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/2.26/gdk-pixbuf-2.26.5.tar.xz

GLib-2.34.3, libjpeg-turbo-1.2.1, libpng-1.5.13 and LibTIFF-4.0.3



libjpeg-turbo-1.2.1

http://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-1.2.1.tar.gz

NASM-2.10.07

http://www.nasm.us/pub/nasm/releasebuilds/2.10.07/nasm-2.10.07.tar.xz

./configure --prefix=/usr/local &&
make

make install

libjpeg-turbo-1.2.1

./configure --prefix=/usr/local \
--mandir=/usr/local/share/man \
--with-jpeg8 \
--disable-static &&
make

docsdir=/usr/local/share/doc/libjpeg-turbo-1.2.1 &&
make docdir=$docsdir exampledir=$docsdir install &&
unset docsdir




LibTIFF-4.0.3


http://download.osgeo.org/libtiff/tiff-4.0.3.tar.gz

./configure --prefix=/usr/local --disable-static &&
make

make install

gdk-pixbuf-2.26.5


./configure --prefix=/usr --with-x11 &&
make

make install


Pango-1.32.5

http://ftp.gnome.org/pub/gnome/sources/pango/1.32/pango-1.32.5.tar.xz
Pangox Compat
http://ftp.gnome.org/pub/gnome/sources/pangox-compat/0.0/pangox-compat-0.0.2.tar.xz

Cairo-1.12.12, Harfbuzz-0.9.9 and Xorg Libraries


Harfbuzz-0.9.9
http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-0.9.9.tar.bz2

ICU-50.1.2
http://download.icu-project.org/files/icu4c/50.1.2/icu4c-50_1_2-src.tgz

cd source &&
./configure --prefix=/usr/local &&
make

make install

Harfbuzz-0.9.9

./configure --prefix=/usr/local &&
make

make install



Pango-1.32.5

./configure --prefix=/usr/local --sysconfdir=/etc &&
make

make install

Pangox Compat

./configure --prefix=/usr/local \
--sysconfdir=/etc \
--disable-static &&
make

make install


hicolor-icon-theme-0.12

http://icon-theme.freedesktop.org/releases/hicolor-icon-theme-0.12.tar.gz


./configure --prefix=/usr

make install


GTK+-2.24.14

http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.14.tar.xz

tar -Jxvvf gtk+-2.24.14.tar.xz
cd gtk*

sed -i 's#l \(gtk-.*\).sgml#& -o \1#' docs/{faq,tutorial}/Makefile.in &&
sed -i 's#.*@man_#man_#' docs/reference/gtk/Makefile.in &&
./configure --prefix=/usr --sysconfdir=/etc &&
make

make install

安装的过程中如果找不到glib-2.0,配置环境 # export LD_LIBRARY_PATH=/usr/local/lib

Configuring GTK+ 2

cat > ~/.gtkrc-2.0 << "EOF"
include "/usr/share/themes/Glider/gtk-2.0/gtkrc"
gtk-icon-theme-name = "hicolor"
EOF





cat > /etc/gtk-2.0/gtkrc << "EOF"
include "/usr/share/themes/Clearlooks/gtk-2.0/gtkrc"
gtk-icon-theme-name = "elementary"
EOF


GTK+ 2 到此安装完成,可以安装mesalib了!


读书人网 >UNIXLINUX

热点推荐