Following instructions on https://wiki.gimp.org/wiki/Hacking:Building/Windows on windows 10 pro, build 16299
-
Surfing to www.msys2.org
-
Downloading msys2-x86_64-20180531.exe by clicking link.
-
Checking the sha-256 checksum of the file so its 3b233de38cb0393b40617654409369e025b5e6262d3ad60dbd6be33b4eeb8e7b
-
Running the downloaded file
-
Installing on D:\msys64 (my harddrive), next, uncheck "Run MSYS 64bit now" and click finish
-
Editing msys2.ini by right clicking in explorer and edit with notepad++ so it will contain
MSYSTEM=MSYS HOME=/home/user USER=user
(there must be no extra line)
-
Adding to .bash_profile
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/mingw64/lib/pkgconfig:/mingw64/share/pkgconfig ACLOCAL_PATH=/mingw64/share/aclocal export PKG_CONFIG_PATH ACLOCAL_PATH
-
Running msys2.exe from explorer (the output from the console window will show that the home directory and profile files will be automatically created).
-
Updating the package database with
pacman -Syu --force
Getting the output "there is nothing to do" twice, once for core system upgrade and once for full system upgrade.
-
Installing the tools by pasting
pacman -S base-devel \ mingw-w64-x86_64-toolchain \ git \ mingw-w64-x86_64-gtk2 \ mingw-w64-x86_64-gtk3 \ mingw-w64-x86_64-json-glib \ mingw-w64-x86_64-json-c \ mingw-w64-x86_64-gexiv2 \ mingw-w64-x86_64-lcms2 \ mingw-w64-x86_64-glib-networking \ mingw-w64-x86_64-poppler \ mingw-w64-x86_64-gettext
pressing enter-enter-Y
-
Exiting msys by pressing Ctrl-D
-
Editing mingw64.ini, by right clicking in explorer and edit with notepad++ so it will contain
MSYSTEM=MINGW64 HOME=/home/user USER=user
(there must be no extra line)
-
Running Mingw64.exe from Explorer
-
Installing libmypaint, by typing
git clone https://github.com/mypaint/libmypaint.git cd libmypaint git checkout tags/v1.3.0 ./autogen.sh ./configure make make install cd ~
-
Installing mypaint-brushes, by typing
git clone https://github.com/Jehan/mypaint-brushes cd mypaint-brushes git checkout v1.3.x ./autogen.sh ./configure make make install cd ~
-
Installing babl, by typing
git clone https://git.gnome.org/browse/babl cd babl ./autogen.sh --disable-docs make make install cd ~
(make is giving me a lot of warnings, but no errors)
-
Installing gegl, by typing
git clone https://gitlab.gnome.org/GNOME/gegl.git/ cd gegl ./autogen.sh --enable-gtk-doc-html=no --disable-docs make make install cd ~
-
Building gimp, by typing
git clone https://gitlab.gnome.org/GNOME/gimp.git/ cd gimp git revert 8d7f13be186401c4d5c63e6e666b9105ac968dfe ./autogen.sh --disable-python --disable-gtk-doc make make install
@AndersBillLinden, I tried changing glib2.0.pc, I think I got the same error as you did. There are more .pc files involved and they probably all need to match. Instead, just get rid of the configure check, the latest mingw glib2 is now fixed anyway.
pacman -S mingw-w64-x86_64-glib2
# to reset edited glib .pc filescd gimp && git checkout configure.ac && git revert 8d7f13be186401c4d5c63e6e666b9105ac968dfe
# to remove the special version check