Stuck building Gimp from source

I’m trying to build using @Elle 's method here -
https://ninedegreesbelow.com/photography/build-gimp-in-prefix-for-artists.html
but I’m falling at the first fence.
If I do “git clone git://git.gnome.org/glib” I get
Cloning into ‘glib’… but nothing happens.

If I do “git clone https://git.gnome.org/glib” I get
Cloning into ‘glib’…
fatal: repository ‘https://git.gnome.org/glib/’ not found

I think I have GIT installed ok because doing “get --help” gives a load of info.

Before finding Elle’s method I was looking at stuff at gimp.org. Some dependencies are via FTP. I couldn’t make this work. When I clicked the FTP download link, Firefox gave a blank page and seemed to be trying, but nothing happened. So I googled and wget came up. Doing “wget ftp://ftp.uu.net/graphics/jpeg/libjpeg” gave
–2018-03-05 14:25:54-- ftp://ftp.uu.net/graphics/jpeg/libjpeg
** => ‘libjpeg’**
Resolving ftp.uu.net (ftp.uu.net)… 192.48.96.9
Connecting to ftp.uu.net (ftp.uu.net)|192.48.96.9|:21…
but again nothing happened. (PIXLS is making urls blue, not me)

My Ubuntu 16.04 was installed only a few days ago, I wonder if some basic thing is wrong?

Also when I did “sudo apt-get build-dep gimp” I got
E: You must put some ‘source’ URIs in your sources.list
but I’m confused by this…

Wow this is frustrating! Please help!!!

Regarding installing git in Ubuntu, I have a vague memory that just installing “git” might not bring in all of the required git packages. But maybe this was for some other distribution.

What happens when you type “git clone --help”? In the package manager, did you install something like “git-core” or “git-all”? Are a bunchof git-related packages installed?

Anyway, regarding “source” URLs and sources.list, probably by default Ubuntu doesn’t provide the source packages. I don’t know how Ubuntu handles such things, but maybe this link will help:

Probably there’s a page for your specific version of Ubuntu, but hopefully what’s in the above page is the same as for your install (though with recent changes in a lot of Linux’s, all bets are off).

GNOME is migrating to GitLab

GLIB : GNOME / GLib · GitLab
:o)

For GLIB, you can clone for GitHub or GitLab, they seem to be identical:

git clone git@github.com:GNOME/glib.git
OR
git clone git@gitlab.com:gnome/glib.git

For libjpeg, use libjpeg-turbo:

git clone git@github.com:libjpeg-turbo/libjpeg-turbo.git

Are you sure you need to clone these at all? This should sort you out without needing to clone:

sudo apt-get update
sudo apt-get install build-essential libjpeg-dev

Note: for Ubuntu 16.04 and older, use libjpeg8-dev instead of libjpeg-dev.

Hmm, I suppose I should update my how to build pages. Thanks! for reminding me.

I just checked babl and glib, and they both still will clone using “git clone git://git.gnome.org/. . .”, so I think the move to gitlab might not be @RawConvert 's only issue with cloning the softwares.

Also, there’s this:

All the clone steps below use the command "git clone git://location-of-git-repository". If this command produces an error message, try "git clone https://location-of-git-repository"

I’m not sure why for some people “git clone git” doesn’t work, and instead they have to use “git clone https” - anyone know?

Cloning using the SSH or git protocols might not work for people behind firewalls and with router or other network issues. The same goes for pushing.

If I do “git clone git://git.gnome.org/glib” I get Cloning into ‘glib’… but nothing happens.

The repo is big and git churns a bit before starting the actual download. You may have to be patient, depending on CPU and network bandwidth.

Does anyone have the list of commands to get current Gimp dependencies for Ubuntu 16.04 please!

Thanks for the help folks but I’m just floundering with this. I don’t have enough tech knowledge, I need a “recipe” like there is for RT.

@samj, thanks, your command for GLIB worked, but that was about it. All other git clone variations I tried failed, either because they timed out or it said “is this a repository” or “not found”. I’ve uploaded a Libre Office Write doc with the details in, commands in yellow highlight, in the hope someone can see what the problem is.

The above shows there are some things looking like dependencies on my system, e.g. python-cairo, but I guess these are from the gimp 2.8 which came pre-installed with Ubuntu. I’ve uninstalled 2.8. My understanding is all the latest stuff should go under $HOME/code/gimpdefault, following Elle’s example, so won’t get mixed up with the old 2.8 stuff - I thought best not to remove it for now.

So clearly my system is capable of getting something from git, i.e. GLIB, but what about the rest?

In Software and Updates app, “Trusted software providers”, there are “signing keys”. Are these necessary for automatic updates only, and are not the cause of my problems? (not that I’ve messed with them).

@ellle, are you likely to be updating your build page soon? If so I might wait!

I can’t upload an .ODT so here are the contents -
Sorry about the big font, I just pasted stuff in, it wasn’t like that in the Libre Office doc!

Elle’s method

mkdir $HOME/code
mkdir $HOME/code/gimpdefault
mkdir $HOME/code/gimpdefault/build
mkdir $HOME/code/gimpdefault/install
mkdir $HOME/code/gimpdefault/install/share
mkdir $HOME/code/gimpdefault/install/share/aclocal
touch $HOME/code/gimpdefault/install/share/aclocal/gimp-2.0.m4

sudo apt-get install build-essential
gave -
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  build-essential is already the newest version (12.1ubuntu2).
  The following packages were automatically installed and are no longer required:
    gimp-data libamd2.4.1 libbabl-0.1-0 libblas-common libblas3 libcamd2.4.1 libccolamd2.9.1    libcholmod3.0.6
  libgegl-0.3-0 libgfortran3 libgimp2.0 liblapack3 libllvm4.0 libsdl1.2debian libumfpack5.7.1 python-cairo
  python-gobject-2 python-gtk2
  Use 'sudo apt autoremove' to remove them.
  0 to upgrade, 0 to newly install, 0 to remove and 10 not to upgrade.
-------------------------------

sudo apt-get build-dep gimp
*** error got
  Reading package lists... Done
  E: You must put some 'source' URIs in your sources.list
------------------------------

Later (after PIXLS feedback) - 
sudo apt-get install build-essential libjpeg-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.1ubuntu2).
libjpeg-dev is already the newest version (8c-2ubuntu8).
libjpeg-dev set to manually installed.
The following packages were automatically installed and are no longer required:
  gimp-data libamd2.4.1 libbabl-0.1-0 libblas-common libblas3 libcamd2.4.1 libccolamd2.9.1 libcholmod3.0.6 libgegl-0.3-0 libgfortran3 libgimp2.0
  liblapack3 libllvm4.0 libsdl1.2debian libumfpack5.7.1 python-cairo python-gobject-2 python-gtk2
Use 'sudo apt autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 10 not to upgrade.
---------------------
cd $HOME/code/gimpdefault/build

paulssd2@shovel2:~$ cd $HOME/code/gimpdefault/build
paulssd2@shovel2:~/code/gimpdefault/build$ git clone git@gitlab.com:gnome/glib.git
Cloning into 'glib'...
The authenticity of host 'gitlab.com (52.167.219.168)' can't be established.
ECDSA key fingerprint is SHA256:HbW3g8zUjNSksFbqTiUWPWg2Bq1x8xdGUrliXFzSnUw.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added 'gitlab.com,52.167.219.168' (ECDSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
paulssd2@shovel2:~/code/gimpdefault/build$ git clone git@github.com:GNOME/glib.git
Cloning into 'glib'...
The authenticity of host 'github.com (192.30.253.113)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
paulssd2@shovel2:~/code/gimpdefault/build$ git clone https://gitlab.gnome.org/GNOME/glib
Cloning into 'glib'...
remote: Counting objects: 146783, done.
remote: Compressing objects: 100% (23855/23855), done.
remote: Total 146783 (delta 122676), reused 146755 (delta 122653)
Receiving objects: 100% (146783/146783), 54.82 MiB | 7.60 MiB/s, done.
Resolving deltas: 100% (122676/122676), done.
Checking connectivity... done.

Next – pixbuf
paulssd2@shovel2:~/code/gimpdefault/build$ git clone https://gitlab.gnome.org/GNOME/gdk-pixbuf
Cloning into 'gdk-pixbuf'...
fatal: https://gitlab.gnome.org/GNOME/gdk-pixbuf/info/refs not valid: is this a git repository?
paulssd2@shovel2:~/code/gimpdefault/build$ git clone git://git.gnome.org/gdk-pixbuf
Cloning into 'gdk-pixbuf'...
fatal: unable to connect to git.gnome.org:
git.gnome.org[0: 209.132.180.184]: errno=Connection timed out

Next – BABL
git clone https://gitlab.gnome.org/GNOME/babl     “is this a git repository?”
git clone https://gitlab.gnome.org/babl           “is this a git repository?”
git clone git://git.gnome.org/babl            timeout
git clone https://git.gnome.org/GNOME/babl      “not found”
git clone https://git.gnome.org/babl            “not found”

paulssd2@shovel2:~/code/gimpdefault/build$ git clone git://git.gnome.org/gimp
Cloning into 'gimp'...
fatal: unable to connect to git.gnome.org:
git.gnome.org[0: 209.132.180.184]: errno=Connection timed out
git clone git://gitlab.gnome.org/gimp            time out
git clone https://gitlab.gnome.org/gimp        “is this a git repository?”
git clone https://gitlab.gnome.org/GNOME/gimp          “is this a git repository?”
git clone https://git.gnome.org/gimp          “not found”

@ RawConvert Andrew

Here are some site links where you can directly download archives

GLIB : GNOME / GLib · GitLab
ATK : https://git.gnome.org//browse/atk
GTK : Files · gtk-2-24 · GNOME / gtk · GitLab
PANGO : https://git.gnome.org//browse/pango
GDK-PIXBUF : https://git.gnome.org//browse/gdk-pixbuf
JPEG : Directory Listing of /files
PNG : LIBPNG: PNG reference library - Browse /libpng16 at SourceForge.net
TIFF : https://gitlab.com/libtiff/libtiff https://gitlab.com/libtiff/libtiff/tree/Release-v4-0-9
LCMS : GitHub - mm2/Little-CMS: A free, open source, CMM engine. It provides fast transforms between ICC profiles.
BABL : https://build.gimp.org/job/babl-master/
GEGL : https://build.gimp.org/job/gegl-master/
MYPAINT BRUSHES : GitHub - Jehan/mypaint-brushes at v1.3.x
GIMP mirror : GitHub - GNOME/gimp: Read-only mirror of https://gitlab.gnome.org/GNOME/gimp

Only GIT versions
FONTCONFIG (GIT) : fontconfig - Font customization and configuration library (mirrored from https://gitlab.freedesktop.org/fontconfig/fontconfig)
CAIRO : Download

:o)

1 Like

@samj, many thanks to you for providing this list. I’m afraid though that using it goes beyond the technical involvement that’s appropriate for me. For example, glib, gtk and babl take me to lists of objects that I don’t know what to do with. Which do I download? There are read-me’s which can then introduce more complexity. It’s too complicated.

Some look simpler, like pango. I assume I just take the latest version.

It’s really sad that non-developers can’t access the current version simply. I’ve used ottokessel???'s PPA in the past but there’s only gimp 2.8 available at the moment. Maybe there’s something wrong with my Ubuntu install.

But thanks again for the list.

@ RawConvert Andrew

I do not know which script you are using but you can replace these lines with archives :

git clone git://git.gnome.org/glib
git clone git://git.gnome.org/babl
git clone git://git.gnome.org/gegl
git clone git://github.com/mypaint/libmypaint.git
git clone git://git.gnome.org/gimp
git clone https://github.com/Jehan/mypaint-brushes.git


Just download these archives, unzip them in your folder and compile them. It is necessary to pay attention to the names of directories that may be different and adjust your script.

GLIB : GNOME / GLib · GitLab
BABL : https://build.gimp.org/job/babl-master/1
GEGL : https://build.gimp.org/job/gegl-master/
MYPAINT BRUSHES : GitHub - Jehan/mypaint-brushes at v1.3.x
GIMP mirror : GitHub - GNOME/gimp: Read-only mirror of https://gitlab.gnome.org/GNOME/gimp

For libmypaint just extract : https://build.gimp.org/job/libmypaint-1.3.0/lastSuccessfulBuild/artifact/libmypaint-1.3.0-linux-x86_64-internal.tar
https://build.gimp.org/job/libmypaint-1.3.0/

Unfortunately I do not speak English properly, someone will certainly help you with clearer explanations.

:o)

You really shouldn’t need to download and manually compile most of those sources, and if you do, then consider that you’re using the wrong distro for the job.

1 Like

@Morgan_Hardwood, I thought Ubuntu was one of the most popular distros, safety in numbers etc.

@RawConvert how’s that working out for you?

Well clearly badly! I’m going to spend a little more time googling to try to fix the git clone failures. Ub16.04 is supported for a couple more years, that seemed valuable. Otherwise perhaps I’ll take your suggestion and try something else. What do you use?

I use Sabayon on this laptop because I’ve been using Gentoo for years on a more powerful machine and enjoyed it. Sabayon is based on Gentoo but while in Gentoo the package manager is source-based, meaning you compile everything (automatically), in Sabayon the package manager is binary-based, meaning you download ready-to-run binaries (faster on a slow laptop). However, Sabayon lets me simultaneously use source-based packages as well, so if I wanted to compile the latest git version of GIMP+BABL+GEGL I would type this single command:

sudo emerge =media-gfx/gimp-9999

Hopefully someone familiar with Arch/Manjaro can chime in and tell us how much effort is required to compile the latest GIMP-git on those distros, as I heard good things about them. Unlike Ubuntu, Manjaro tends to ship the very latest stable package versions.
https://distrowatch.com/table.php?distribution=Ubuntu
https://distrowatch.com/table.php?distribution=Manjaro
https://distrowatch.com/table.php?distribution=Sabayon
https://distrowatch.com/table.php?distribution=Gentoo

https://distrowatch.com/dwres.php?resource=popularity

Closing thought: maybe @Carmelo_DrRaw’s GIMP AppImage script could be easily tuned to use @Elle’s code as source:

in case of any confusion, I wasn’t trying to build Gimp CCE, just “ordinary” Gimp (2.9.x or 2.10)…

@RawConvert this should get you the almost-latest git version ready to use:

wget <link to appimage file from here https://github.com/aferrero2707/gimp-appimage/releases >
chmod +x gimp-2.9.<something>.AppImage
./gimp-2.9.<something>.AppImage

Copy the link to the latest AppImage from: