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,
pacman -S mingw-w64-x86_64-toolchain
installs mingw-w64-x86_64-gcc, which is the one you want, not gcc.As I mentioned above, you have both toolchains, which can/will conflict.
Do
pacman -R msys2-devel
after you've already installedgcc
to get rid of it and its dependencies.PREFIX is how you tell
make install
where to put the app you've built. If you don't set it, or forget to pass it to autogen.sh/configure, the files will get installed in /usr or /ming64, which are better left to pacman (example:cd babl && make install
, without PREFIX, will put the files in /mingw64, clobbering any files you've installed withpacman -S babl
.The msys shell pulls libraries, includes, etc. from
/usr
, and is for building pacman packages withmakepkg
, which is supposed to usemsys2-devel
/gcc
. You want the mingw shell (which pulls from/mingw64
) if you're only building stuff to use for yourself.Msys2 binaries, built with
gcc
, are linked against msys-2.dll, which is a fork of cygwin1.dll.Mingw-w64 binaries, built with
mingw-w64-x86_64-gcc
, are linked against msvcrt.dll that comes with Windows, so they are "native stand-alone" Windows apps.