суббота, 7 апреля 2012 г.

GIMP 2.8.0 - how to compile from git

How to compile GIMP 2.8.0 from git

... for Ubuntu 11.04 and newer!


Note: I highly recommended to install GIMP and BABL with GEGL into "/opt" directory. Below,  I will use prefix "--prefix=/opt/app_name" to install compiled application to that directory.

First of all you need install some important packages!
Please, open terminal and type following commands:

$sudo apt-get install git libtool autoconf automake pkg-config xsltproc
... and it in one line:
$sudo apt-get install libgs-dev libjasper-dev pkg-config libgtk2.0-dev libglib2.0-dev libgdk-pixbuf2.0-dev libpango1.0-dev libcairo2-dev libfreetype6-dev libfontconfig1-dev liblcms1-dev libpng12-dev libjpeg8-dev libpoppler-dev libtiff4-dev libwebkitgtk-dev libmng-dev librsvg2-dev libwmf-dev libbz2-1.0 libaa1-dev
Finally, install last packages that needed to build gimp from source:
$sudo apt-get build-dep gimp

Well, now you can fetch, build and install last BABL and GEGL from git. We will install they to /opt folder, so use --prefix="" for it.

Firstly, we can install BABL.
Please, go to your home directory and type following code in console:
  1. $mkdir ~/git
  2. $cd ~/git
  3. $git clone --depth 1 git://git.gnome.org/babl
  4. $cd  ~/git/babl
  5. $./autogen.sh --prefix=/opt/babl
  6. $make -j4
  7. $sudo make install
Next, let's install GEGL:
  1. $export PKG_CONFIG_PATH=/opt/babl/lib/pkgconfig
  2. $export LD_LIBRARY_PATH=/opt/babl/lib
  3. $cd  ~/git
  4. $git clone --depth 1 git://git.gnome.org/gegl
  5. $cd  ~/git/gegl
  6.  $./autogen.sh --prefix=/opt/gegl
  7.  $make -j4
  8.  $sudo make install
Finally fetch, build and install GIMP!
Add envelopment variables to inform GIMP where located our BABL and GEGL:
  1. $export PKG_CONFIG_PATH=/opt/gegl/lib/pkgconfig:$PKG_CONFIG_PATH
  2. $export LD_LIBRARY_PATH=/opt/gegl/lib:$LD_LIBRARY_PATH
Configure, build and install:
  1. $cd  ~/git
  2.  $git clone --depth 1 git://git.gnome.org/gimp
  3. $cd ~/git/gimp
  4. $./autogen.sh --prefix=/opt/gimp
  5. $make -j4
  6. $sudo make install

Done!
-------------------------------------------------
Launch GIMP with:
$/opt/gimp/bin/gimp-2.7



Комментариев нет:

Отправить комментарий