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-devFinally, 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:
- $mkdir ~/git
- $cd ~/git
- $git clone --depth 1 git://git.gnome.org/babl
- $cd ~/git/babl
- $./autogen.sh --prefix=/opt/babl
- $make -j4
- $sudo make install
- $export PKG_CONFIG_PATH=/opt/babl/lib/pkgconfig
- $export LD_LIBRARY_PATH=/opt/babl/lib
- $cd ~/git
- $git clone --depth 1 git://git.gnome.org/gegl
- $cd ~/git/gegl
- $./autogen.sh --prefix=/opt/gegl
- $make -j4
- $sudo make install
Add envelopment variables to inform GIMP where located our BABL and GEGL:
- $export PKG_CONFIG_PATH=/opt/gegl/lib/pkgconfig:$PKG_CONFIG_PATH
- $export LD_LIBRARY_PATH=/opt/gegl/lib:$LD_LIBRARY_PATH
- $cd ~/git
- $git clone --depth 1 git://git.gnome.org/gimp
- $cd ~/git/gimp
- $./autogen.sh --prefix=/opt/gimp
- $make -j4
- $sudo make install
Done!
-------------------------------------------------
Launch GIMP with:
$/opt/gimp/bin/gimp-2.7
Комментариев нет:
Отправить комментарий