Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GIMP in 20.04
#20
(05-04-2020, 07:57 AM)rich2005 Wrote:
(05-04-2020, 06:28 AM)Ofnuts Wrote: A bit more hardcore but I bit the bullet and installed Gimp from source. Not too hard, the main problem is figuring out the packages that you need. If you installed Gimp from the repos you have most of them anyway, you mostly need the development versions.

The process starts here: https://wiki.gimp.org/wiki/Hacking:Building

I can help you fill the gaps.

How about a complete rundown on the process? Did you use 'buntu 20.04?

Last time I compiled Gimp was a Gimp 2.7 so that tells you how long ago that was. Added nearly a GB in devel files (I was using PClinuxOS at the time) Came to the conclusion then, not worth the added bloat, Although these days I would use a VM.

Current situation, not looking promising. Thorsten Stettin could do with some help. I keep an eye on https://launchpad.net/~otto-kesselgulasc...le-prepare for what eventually goes in the Gimp PPA.

[Image: vOiPwf4.jpg]

No, still on 19.10. Not sure the PPA problems are due to 20.04... the PPA has been stalled well before 20.04 came out.

A complete rundown would duplicate a lot of the linked page. Of course I could go down to source management and compiler theory, but I think it's best if you try, stall, ask, and so forth.

In addition to the page above, my environment looks like this (I have both 2.10 and 2.99...)

Code:
[top directory]
.
├── 2.10
│   ├── build
│   │   ├── babl
│   │   ├── gegl
│   │   ├── gimp
│   │   ├── libmypaint
│   │   └── mypaint-brushes
│   ├── run
│   │   ├── bin
│   │   ├── etc
│   │   ├── include
│   │   ├── lib
│   │   ├── libexec
│   │   └── share
│   └── setenv
├── 2.99
│   ├── build
│   │   ├── babl
│   │   ├── gegl
│   │   ├── gimp
│   │   ├── libmypaint
│   │   └── mypaint-brushes
│   ├── run
│   │   ├── bin
│   │   ├── etc
│   │   ├── include
│   │   ├── lib
│   │   ├── libexec
│   │   └── share
│   └── setenv
  • In both branches, build is where the source code is, run are the executables
  • Everything in the tree above are directories, except setenv which is a small script that sets environment variables (attached, you have to "source" it, ie . setenv or source setenv, otherwise it runs in a subshell and the environment variables are set in the subshell which is of little use). It set variables relative to itself, so don't move it.
  • babl/gegl/my_paint stuff are identical in both 2.10 and 2.99 branches, I could possibly optimize that (or even have share the run beytween 2.10 and 2.99) but I will do it later.
  • When you do the initial git clone you must be  in build, cloning will create the directories under it. Later git commands require to be passed in the package directory (gimp, gegl...)
  • You need to install:
    • build/compile utilities: build-essentials meson ninja-build
    • development packages: libglib2.0-dev-bin libgtk-3-dev gobject-introspection python-cairo-dev python-gtk2-dev
  • If the meson builds fail, try removing the contents of the _build directory
  • By default compiling gets your the 2.99 version with latest changes
  • For 2.10, all other packages are the same, in Gimp:
    • git checkout GIMP_2_10_18 (I don't know what to check out to pull the latest 2.10 fixes)
    • Only the "classic" build (autogen+make) is available for 2.10
  • If you want to update the code, issue git pull in the directory of the relevant package. In most cases you can just recompile (make or ninja steps).
  • To execute Gimp, you have to use the same environment (so run appropriate setenv for the version you launch).

My current setenv:
Code:
#! /bin/bash
# Shebang for kate, this file must be sourced

export GIMP_PREFIX=$(readlink -e $(dirname $(readlink -e $BASH_SOURCE))/run)
echo "GIMP_PREFIX:" $GIMP_PREFIX

# Used to find programs/tools during build
export PATH="${GIMP_PREFIX}/bin:$PATH"

# Used to detect the build dependencies
export PKG_CONFIG_PATH="${GIMP_PREFIX}/lib/pkgconfig:${GIMP_PREFIX}/share/pkgconfig"

# Used to find the glib-introspection dependencies
export XDG_DATA_DIRS="${GIMP_PREFIX}/share:/usr/share:$XDG_DATA_DIRS"

# Used to find the libraries at runtime
export LD_LIBRARY_PATH="${GIMP_PREFIX}/lib:${LD_LIBRARY_PATH}"

# Used by Autotools to find its tools
#export ACLOCAL_FLAGS="-I $INSTALL_PREFIX/share/aclocal $ACLOCAL_FLAGS"
#export ACLOCAL_FLAGS="-I $GIMP_PREFIX/share/aclocal $ACLOCAL_FLAGS"
export ACLOCAL_FLAGS="-I $GIMP_PREFIX/share/aclocal -I /usr/share/aclocal"

# Note: if you don't include the default value of XDG_DATA_DIRS, you may get a compile error trying to read a PNG icon file. You could try using this in that case:
# export XDG_DATA_DIRS="${GIMP_PREFIX}/share:/usr/local/share:/usr/share"

# For Debian or derivatives (Ubuntu, Mint…) only:
# Additionally to the previous commands (not in replacement), update some variables this way if you use a Debian derivative:

arch="$(dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null)"
export PKG_CONFIG_PATH="${GIMP_PREFIX}/lib/${arch}/pkgconfig:${GIMP_PREFIX}/share/${arch}/pkgconfig:$PKG_CONFIG_PATH"
export LD_LIBRARY_PATH="${GIMP_PREFIX}/lib/${arch}:$LD_LIBRARY_PATH"

# Number or parallel compiles and others  (# of available procs -2, for me)
export PROCS=6

# Missing directory
mkdir -p $GIMP_PREFIX/share/aclocal

Enjoy
Reply


Messages In This Thread
GIMP in 20.04 - by meetdilip - 04-27-2020, 12:44 PM
RE: GIMP in 20.04 - by rich2005 - 04-27-2020, 01:03 PM
RE: GIMP in 20.04 - by meetdilip - 04-27-2020, 04:48 PM
RE: GIMP in 20.04 - by rich2005 - 04-27-2020, 06:15 PM
RE: GIMP in 20.04 - by meetdilip - 04-27-2020, 06:44 PM
RE: GIMP in 20.04 - by rich2005 - 04-27-2020, 06:55 PM
RE: GIMP in 20.04 - by meetdilip - 04-28-2020, 09:09 AM
RE: GIMP in 20.04 - by meetdilip - 05-01-2020, 06:45 AM
RE: GIMP in 20.04 - by rich2005 - 05-01-2020, 06:54 AM
RE: GIMP in 20.04 - by meetdilip - 05-01-2020, 06:59 AM
RE: GIMP in 20.04 - by rich2005 - 05-01-2020, 07:15 AM
RE: GIMP in 20.04 - by meetdilip - 05-01-2020, 07:31 AM
RE: GIMP in 20.04 - by meetdilip - 05-04-2020, 01:27 AM
RE: GIMP in 20.04 - by rich2005 - 05-04-2020, 07:37 AM
RE: GIMP in 20.04 - by Ofnuts - 05-04-2020, 06:28 AM
RE: GIMP in 20.04 - by rich2005 - 05-04-2020, 07:57 AM
RE: GIMP in 20.04 - by Ofnuts - 05-04-2020, 10:37 AM
RE: GIMP in 20.04 - by meetdilip - 05-04-2020, 06:40 AM
RE: GIMP in 20.04 - by meetdilip - 05-04-2020, 08:41 AM
RE: GIMP in 20.04 - by rich2005 - 05-04-2020, 09:39 AM
RE: GIMP in 20.04 - by rich2005 - 05-04-2020, 11:39 AM
RE: GIMP in 20.04 - by meetdilip - 05-04-2020, 01:55 PM

Forum Jump: