Author Topic: [HOWTO] Gimp 2.7.2 Development version in PCLinuxOS 2010.X home folder install.  (Read 1489 times)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Hi all.

I am placing this in advanced users section as this is NOT a typical howto but a out of repo install.

I have successfully compiled the gimp 2.7.2 on my PCLinuxOS 2010 installation and decided to share. Sooo... Here it is.

Installation of the Gimp 2.7.2 - latest UNSTABLE development version.- into Your home folder - no system-wide risk beside software bloat ;)...

Brain is needed when following this howto. Its good for the brain to be in ON position too...

Run these commands (ALL in one console window).

Code: [Select]
cd
Code: [Select]
export PREFIX=`echo ~/gimp`
Code: [Select]
export PATH=$PREFIX/bin:$PATH
Code: [Select]
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig
Install needed packages. Become superuser, update your system, install, go back to normal user.

Code: [Select]
su
Code: [Select]
apt-get update
Code: [Select]
apt-get dist-upgrade
Code: [Select]
apt-get install libtool automake automake1.7 autoconf git gettext \
        libglib2.0_0 libglib2.0_0-devel libgtk+2.0_0 libgtk+2.0_0-devel ruby \
        intltool libtiff3 libtiff-devel python-qt4-devel gettext-devel \
        libexif12-devel libmng-devel liblcms-devel libxpm-devel librsvg2-devel \
        libwmf0.2_7-devel libwebkitgtk1.0-devel libpoppler-devel libhal-devel \
        libaa-devel enscript liblua-devel libOpenEXR-devel libSDL-devel \
        libopenraw-devel libjasper1.701_1-devel libgraphviz-devel libffmpeg-devel \
        graphviz libexiv2-devel libumfpack-devel xsltproc gtk-doc gcc-c++ \
        pygtk2.0-devel libpoppler-glib-devel libopenjpeg-devel

Code: [Select]
updatedb
Code: [Select]
ldconfig
Code: [Select]
exit
This is gonna download a LOAD of packages. I added more then was originally posted in the Rolf's HOWTO video at meetthegimp.org but thanks to this 99% of requierments are satisfied when running ./autogen.sh --prefix=$PREFIX step for gegl and gimp. I skipped ascii-doc. Adding ascii-doc in the install step above causes this error

Quote
asciidoc: FAILED: incomplete configuration files

so I skipped this package. I don't think that will will cause the end of the world in December 2012... Not here anyway...

Now. Get the source

Code: [Select]
mkdir gimp-build
Code: [Select]
cd gimp-build
Code: [Select]
git clone git://git.gnome.org/babl
Code: [Select]
git clone git://git.gnome.org/gegl
Code: [Select]
git clone git://git.gnome.org/gimp
Generate the make files, compile and install

In the autogen lines a lot of checks are done - watch for warnings and error messages!

Code: [Select]
cd babl
Code: [Select]
./autogen.sh --prefix=$PREFIX
Code: [Select]
make
Code: [Select]
make install
Code: [Select]
cd ../gegl
Code: [Select]
./autogen.sh --prefix=$PREFIX
Code: [Select]
make
Code: [Select]
make install
Code: [Select]
cd ../gimp
Code: [Select]
./autogen.sh --prefix=$PREFIX
Code: [Select]
make
Code: [Select]
make install
Start Your gimp 2.7.2 by issueing a command:

Code: [Select]
~/gimp/bin/gimp-2.7
It looks very good here...


So far no complaints about the speed or stability too. This video shows no erros in Konsole either...

...however I have problems with single window mode... It wont stick between the application restarts... I am investigating that.

Keeping GIMP up to date

Don't delete the source directory. Backup your directory with the working GIMP 2.7. The update can break everything in there...

I hope that this will work for You too. I have installed gimp on my main installation of KDE4 desktop with some applications installed but I think it should work on a clean installation too. If its not working let me know and I will install vbox copy and try to solve the issues.

You can update the gimp easily with


Code: [Select]
cd
Code: [Select]
export PREFIX=`echo ~/gimp`
Code: [Select]
export PATH=$PREFIX/bin:$PATH
Code: [Select]
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig
Code: [Select]
cd gimp-build
Code: [Select]
cd babl
Code: [Select]
git pull –rebase
Code: [Select]
make
Code: [Select]
make install
Code: [Select]
cd ../gegl
Code: [Select]
git pull –rebase
Code: [Select]
make
Code: [Select]
make install
Code: [Select]
cd ../gimp
Code: [Select]
git pull –rebase
Code: [Select]
make
Code: [Select]
make install
This is much faster than the original procedure, because only new and changed stuff is pulled from the servers and compiled.

Its all been possible thanks to Rolf Steinort from http://meetthegimp.org/. Thanks Rolf! It took me about 7 hours to solve the problems with deps and compile it (at first time) but it was worth it.

Thanks for reading. May the source be with You.

AndrzejL
« Last Edit: January 14, 2011, 03:03:03 AM by Neal »

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12802
  • RLU #490933
    • Wordpress On The Wardrobe...
I have to say after few days of using gimp 2.7.2 they did VERY good so far.

1 issue - single window mode is not sticking between application restarts. I keep it in the default mode so. 1 issue in unstable dev version? I can't wait for the stable version to come out ;).

Andy

P.S. Gimp devs are aware of the problem and working on it... ;)

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12802
  • RLU #490933
    • Wordpress On The Wardrobe...
No need to compile it anymore - Sproggy has build an RPMs for us.

Thanks Dude!

Andy