Mittwoch, 23. Juli 2014

Installing Dependencies


Table of Content


THIS IS FREE SOFTWARE for further information please consider Free Software Foundation.

Prerequisite

This tutorial is about installing Advanced Gtk+ Sequencer on GNU/Linux assumes you have Xorg working. Further you need binutils, gcc, make, glibc, autoconf, automake and a running terminal emulator like bash.
Assumed you don't have it all I would recommend you linuxfromscratch.org
Toolchains are available from:

Assumed you don't trust these files either use sandbox or virtualization.
Sadistic notes: I heard some booted GNU/Linux by using JavaScript

Caveate

Advance Gtk+ Sequencer may interfere with pulseaudio, any other sound daemon or server. Currently only alsa output is supported. Further it isn't stable, yet. The next release 0.4.0 has some real bad assumptions in code. There may be a prior stable version not mentioned here. For it's usability isn't guaranteed. Please consider GPL-v3.0 for further details.
Note gnome3 may prevent stopping `pulseaudio`. As alternate you may use WindowMaker or Openbox. To stop Pulseaudio from running please type:
pulseaudio -k

Probably you get crashes or system freeze. Therefore most promising feature is Single Threaded mode. Not at least cause of much computing power todays computers have. So you may invoke ags by typing:

./ags --single-thread --filename ags_file.xml

Overview

A brief look at direct dependencies:
  • gtk+-2.0
  • libxml2
  • libsndfile-1.0
  • libao2
  • libinstpatch-1.0
  • alsa
  • libuuid

Note if $HOME/Downloads directory doesn't exist just creating by issuing:

mkdir ~/Downloads

Gtk+ and its dependencies

Gtk+ is abbreviation of gimp tool kit. It is used by various applications to create modern user interfaces GUI. It is themeable and was standard widget library in Gnome 2. First of all we do a file containing download links and therefore md5 hash sum.

cd ~/Downloads/

cat gtk2-dependencies.txt << "EOF"
ftp://sourceware.org/pub/libffi/libffi-3.0.13.tar.gz
http://downloads.sourceforge.net/expat/expat-2.1.0.tar.gz
http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
http://ftp.gnome.org/pub/gnome/sources/glib/2.38/glib-2.38.2.tar.xz
http://ftp.gnome.org/pub/gnome/sources/atk/2.10/atk-2.10.0.tar.xz
http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
http://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-1.3.0.tar.gz
http://downloads.sourceforge.net/libpng/libpng-1.6.9.tar.xz
http://download.osgeo.org/libtiff/tiff-4.0.3.tar.gz
http://cairographics.org/releases/pixman-0.32.4.tar.gz
http://cairographics.org/releases/cairo-1.12.16.tar.xz
http://download.icu-project.org/files/icu4c/52.1/icu4c-52_1-src.tgz
http://www.xs4all.nl/~carlo17/which/which-2.20.tar.gz
http://downloads.sourceforge.net/freetype/freetype-2.5.2.tar.bz2
http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-0.9.26.tar.bz2
http://ftp.gnome.org/pub/gnome/sources/pango/1.36/pango-1.36.2.tar.xz
http://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/2.30/gdk-pixbuf-2.30.4.tar.xz
http://icon-theme.freedesktop.org/releases/hicolor-icon-theme-0.12.tar.gz
http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.22.tar.xz
EOF


cat gtk2-md5sums.txt << "EOF"
45f3b6dbc9ee7c7dfbbbc5feba571529 libffi-3.0.13.tar.gz
dd7dab7a5fea97d2a6a43f511449b7cd expat-2.1.0.tar.gz
bcf93efa8eaf383c98ed3ce40b763497 Python-2.7.6.tar.xz
26d1d08e478fc48c181ca8be44f5b69f glib-2.38.2.tar.xz
e77833d4445ebe6842e9f9a0667b0be7 atk-2.10.0.tar.xz
4cfc0686cf5350dd1305c4d905eb55a6 yasm-1.2.0.tar.gz
e1e65cc711a1ade1322c06ad4a647741 libjpeg-turbo-1.3.0.tar.gz
14e037c5c9f1db16844760285ad5c2d6 libpng-1.6.9.tar.xz
051c1068e6a0627f461948c365290410 tiff-4.0.3.tar.gz
eba449138b972fbf4547a8c152fea162 pixman-0.32.4.tar.gz
a1304edcdc99282f478b995ee5f8f854 cairo-1.12.16.tar.xz
9e96ed4c1d99c0d14ac03c140f9f346c icu4c-52_1-src.tgz
95be0501a466e515422cde4af46b2744 which-2.20.tar.gz
10e8f4d6a019b124088d18bc26123a25 freetype-2.5.2.tar.bz2
a2b6cbd437f22dd5dc93d377696c9204 harfbuzz-0.9.26.tar.bz2
253026c7132c22e52cefd998ba89a742 pango-1.36.2.tar.xz
f20c0a5aa827332869c85c47d88394ce gdk-pixbuf-2.30.4.tar.xz
55cafbcef8bcf7107f6d502149eb4d87 hicolor-icon-theme-0.12.tar.gz
5fbbfb7637bbd571a572a2dae0e736d2 gtk+-2.24.22.tar.xz
EOF

Next download files using wget in your Downloads directory.

cd ~/Downloads
mkdir ags-dependencies
cd ags-dependencies
wget -i ../gtk2-dependencies.txt -P ./
md5sum -c ../gtk2-md5sums.txt
To be continued ...

Other dependencies

Other dependencies not directly related to Gtk+-2.0. Once more we do a download file of wget and afterwards a file containing md5 hash sums.


cd ~/Downloads/

cat other-dependencies.txt << "EOF"
http://xmlsoft.org/sources/libxml2-2.9.1.tar.gz
http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz
http://downloads.xiph.org/releases/ao/libao-1.2.0.tar.gz
http://downloads.sourceforge.net/swami/libinstpatch/1.0.0/libinstpatch-1.0.0.tar.gz
http://alsa.cybermirror.org/lib/alsa-lib-1.0.27.2.tar.bz2
http://downloads.sourceforge.net/libuuid/libuuid-1.0.2.tar.gz
EOF


cat other-md5sums.txt << "EOF"
9c0cfef285d5c4a5c80d00904ddab380 libxml2-2.9.1.tar.gz
e2b7bb637e01022c7d20f95f9c3990a2 libsndfile-1.0.25.tar.gz
9f5dd20d7e95fd0dd72df5353829f097 libao-1.2.0.tar.gz
eca9c505fd0c47fd1f59d40598e8eb63 libinstpatch-1.0.0.tar.gz
69129a7c37697f81ac092335e9fa452b alsa-lib-1.0.27.2.tar.bz2
c06f49871e9d964d6bbf8688f57aa124 libuuid-1.0.2.tar.gz
EOF

Next download files using wget in your Downloads directory.

cd ~/Downloads/ags-dependencies
wget -i ../other-dependencies.txt -P ./
md5sum -c ../other-md5sums.txt
To be continued ...

Compiling Release Candidate

`ags` has no stable version as I know, for now. Currently only release candidate available through ags on sourceforge.net:
cd ~/Downloads/
wget -c http://downloads.sourceforge.net/ags/ags-0_4_0-rc5.tar.bz2
tar -xjf ags-0_4_0-rc5.tar.bz2
cd ags-0_4_0-rc5
autoreconf -fi
./configure
make -j8 ags
./ags

Keine Kommentare:

Kommentar veröffentlichen