Unable to compile gimp for windows

Hello,
I am using MSYS2 MinGW 64-bit to compile gimp on windows.

Lately, I’m getting this error:

Error: GIMP configuration failed.

  - Error: missing dependency babl >= 0.1.48
  - Error: missing dependency gegl-0.4 >= 0.4.2
  - Error: missing dependency glib >= 2.54.2 except glib 2.56.0 and 2.56.1 (broken on Win32 - bug 795855)

See the file 'INSTALL' for more help.
make: *** [Makefile:756: config.status] Error 1

I did the instructions here:
https://wiki.gimp.org/wiki/Hacking:Building/Windows#Building_GIMP_natively_under_Windows_using_MSYS2
under “Building GIMP natively under Windows using MSYS2”

I have no idea what to do. I’d love to get help.

Thank you!

FULL ERROR INFO:

$ make
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/Gil/gimp-devel-GIL/gimp/missing aclocal-1.13 -I m4macros
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/Gil/gimp-devel-GIL/gimp/missing autoconf
 cd . && /bin/sh /home/Gil/gimp-devel-GIL/gimp/missing automake-1.13 --gnu
/bin/sh ./config.status --recheck
running CONFIG_SHELL=/bin/sh /bin/sh ./configure --prefix=/home/Gil --disable-python --disable-gtk-doc --with-gimpdir=GIMP/git-master PKG_CONFIG_PATH=/home/Gil/share/pkgconfig:/home/Gil/lib/pkgconfig:/mingw64/lib/pkgconfig:/mingw64/share/pkgconfig --no-create --no-recursion
configure: WARNING: unrecognized options: --disable-gtk-doc
configure: loading site script /mingw64/etc/config.site
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking build system type... x86_64-w64-mingw32
checking host system type... x86_64-w64-mingw32
checking for gcc... gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking whether gcc and cc understand -c and -o together... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether g++ supports C++14 features by default... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe
checking if the linker (C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /mingw64/bin/nm -B
checking the name lister (/mingw64/bin/nm -B) interface... BSD nm
checking whether ln -s works... no, using cp -pR
checking the maximum length of command line arguments... 8192
checking how to convert x86_64-w64-mingw32 file names to x86_64-w64-mingw32 format... func_convert_file_msys_to_w32
checking how to convert x86_64-w64-mingw32 file names to toolchain format... func_convert_file_msys_to_w32
checking for C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_implib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /mingw64/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... no
checking for as... as
checking for dlltool... (cached) dlltool
checking for objdump... (cached) objdump
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe
checking if the linker (C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) is GNU ld... yes
checking whether the g++ linker (C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries... yes
checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC
checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking dependency style of gcc... gcc3
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for pkg-config... /mingw64/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for host type... x86_64-w64-mingw32
checking for host processor... x86-64
checking if compiling for Win32... yes
checking if this is native Win32... yes
checking for lib.exe... no
checking for windres... windres
checking if compiling for Mac OS X... no
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... no, using cp -pR
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking whether to turn on debugging... no
checking whether to turn on profiling... no
checking whether gcc understands -Wdeclaration-after-statement... yes
checking whether gcc understands -Wmissing-prototypes... yes
checking whether gcc understands -Werror=missing-prototypes... yes
checking whether gcc understands -Wstrict-prototypes... no
checking whether gcc understands -Wmissing-declarations... yes
checking whether gcc understands -Winit-self... yes
checking whether gcc understands -Wpointer-arith... yes
checking whether gcc understands -Wold-style-definition... no
checking whether gcc understands -Wmissing-format-attribute... yes
checking whether gcc understands -Wformat-security... yes
checking whether gcc understands -Wlogical-op... yes
checking whether gcc understands -Wtype-limits... yes
checking whether gcc understands -fno-common... yes
checking whether gcc understands -fdiagnostics-show-option... yes
checking whether gcc understands -Wreturn-type... yes
checking whether gcc understands --omg-optimized... no
checking whether gcc understands --disable-instructions... no
checking how to get MSVC-compatible struct packing... -mms-bitfields
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... no
checking whether time.h and sys/time.h may both be included... yes
checking execinfo.h usability... no
checking execinfo.h presence... no
checking for execinfo.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/prctl.h usability... no
checking sys/prctl.h presence... no
checking for sys/prctl.h... no
checking sys/thr.h usability... no
checking sys/thr.h presence... no
checking for sys/thr.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/times.h usability... no
checking sys/times.h presence... no
checking for sys/times.h... no
checking for sys/wait.h... (cached) no
checking for unistd.h... (cached) yes
checking for backtrace... no
checking for backtrace in -lexecinfo... no
checking for pid_t... yes
checking for vprintf... yes
checking for _doprnt... no
checking for size_t... yes
checking for working alloca.h... no
checking for alloca... yes
checking for fsync... no
checking for difftime... yes
checking for mmap... no
checking for thr_self... no
checking whether binary relocation support should be enabled... no
checking for _NL_MEASUREMENT_MEASUREMENT... no
checking whether NLS is requested... yes
checking for intltool >= 0.40.1... 0.51.0 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /mingw64/bin/xgettext
checking for msgmerge... /mingw64/bin/msgmerge
checking for msgfmt... /mingw64/bin/msgfmt
checking for gmsgfmt... /mingw64/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.24.4
checking for XML::Parser... ok
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... no
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... no
checking for bindtextdomain in -lintl... yes
checking for ngettext in -lintl... yes
checking for dgettext in -lintl... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... (cached) /mingw64/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... (cached) /mingw64/bin/msgfmt
checking for xgettext... (cached) /mingw64/bin/xgettext
checking for recommended xgettext version (>= 0.19)... yes
checking for iso-codes... no (iso-codes package not found)
checking for babl >= 0.1.48... no
configure: Eeeeeeeeeeeeeeeeeeeeek! Missing dep: babl >= 0.1.48
checking for gegl-0.4 >= 0.4.2... no
configure: Eeeeeeeeeeeeeeeeeeeeek! Missing dep: gegl-0.4 >= 0.4.2
checking for atk >= 2.2.0... yes
checking for pkg-config... (cached) /mingw64/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for GLIB - version >= 2.54.2... yes (version 2.56.1)
checking for glib-2.0 >= 2.56.0 glib-2.0 < 2.56.2... yes
configure: Eeeeeeeeeeeeeeeeeeeeek! Missing dep: glib >= 2.54.2 except glib 2.56.0 and 2.56.1 (broken on Win32 - bug 795855)
checking for gmodule-no-export-2.0... yes
checking for gio-2.0... yes
checking for gio-windows-2.0... yes
checking for glib-networking (GIO TLS implementation)... yes
checking for glib-compile-resources... /mingw64/bin/glib-compile-resources
checking for gdbus-codegen... /mingw64/bin/gdbus-codegen
checking if GLib is version 2.43.0 or newer... yes
checking for gegl... /home/Gil/bin/gegl
checking for bind_textdomain_codeset... (cached) yes
checking for X... no
checking for pkg-config... (cached) /mingw64/bin/pkg-config
checking pkg-config is at least version 0.7... yes
checking for GTK+ - version >= 2.24.10... yes (version 2.24.32)
checking for gtk-update-icon-cache... /mingw64/bin/gtk-update-icon-cache
checking if GTK+ is version 2.26.0 or newer (bogus placeholder check)... no
checking for gtk+-2.0 >= 2.24.32... yes
checking for gdk-pixbuf-2.0 >= 2.30.8... yes
checking for gdk-pixbuf-csource... /mingw64/bin/gdk-pixbuf-csource
checking for cairo >= 1.12.2... yes
checking for pangocairo >= 1.29.4 pangoft2... yes
checking for fontconfig >= 2.12.4... yes
checking if Pango is version 1.32.0 or newer... yes
checking if Pango is built with a recent fontconfig... yes
checking for freetype2 >= 2.1.7... yes
checking for harfbuzz >= 0.9.19... yes
checking for gexiv2 >= 0.10.6... yes
checking for ExcHndlSetLogFileNameA in -lexchndl... no
checking for execinfo.h... (cached) no
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking ieeefp.h usability... yes
checking ieeefp.h presence... yes
checking for ieeefp.h... yes
checking for extra flags to get ANSI library prototypes... none needed
checking for finite... yes
checking for rint... yes
checking for vfork... no
checking for __attribute__((destructor))... yes
checking for getaddrinfo... no
checking for getaddrinfo in -lnsl... no
checking for getnameinfo... no
checking for getnameinfo in -lnsl... no
checking for socket in -lsocket... no
checking whether gcc understands -mfpmath=sse... yes
checking whether gcc understands -msse2... yes
checking whether we can compile SSE2 intrinsics... yes
checking whether gcc understands -msse4.1... yes
checking whether we can compile SSE4.1 intrinsics... yes
checking whether gcc understands -mmmx... yes
checking whether we can compile MMX code... yes
checking whether gcc understands -msse... yes
checking whether we can compile SSE code... yes
checking for shared memory transport type... win32
checking whether symbols are prefixed... no
checking for TIFFReadScanline in -ltiff... yes
checking tiffio.h usability... yes
checking tiffio.h presence... yes
checking for tiffio.h... yes
checking for jpeg_destroy_decompress in -ljpeg... yes
checking for jpeglib.h... yes
checking for jpeg_save_markers in -ljpeg... yes
checking for gzsetparams in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking bzlib.h usability... yes
checking bzlib.h presence... yes
checking for bzlib.h... yes
checking for BZ2_bzCompress in -lbz2... yes
checking for liblzma >= 5.0.0... yes
checking for gsapi_new_instance in -lgs... no
checking for libpng >= 1.6.25... yes
checking for mng_create in -lmng... no
checking for aa_printf in -laa... no
checking for XpmReadFileToXpmImage in -lXpm... no
checking for OpenEXR >= 1.6.1... no
checking for libwebp >= 0.6.0... no
checking for libheif >= 1.1.0... no
checking for libmypaint >= 1.3.0... yes
checking for mypaint-brushes-1.0... yes
checking whether to treat MyPaint brushes as bundled... no
checking for webkit-1.0 >= 1.6.1... no
checking for librsvg-2.0 >= 2.40.6... yes
checking for poppler-glib >= 0.44.0... yes
checking for poppler-data >= 0.4.7... yes
checking for cairo-pdf >= 1.12.2... yes
checking for libwmf-config... no
checking for libopenjp2 >= 2.1.0... yes
checking for lcms2 >= 2.8... yes
checking for xcursor... no
checking for ALSA CFLAGS...
checking for ALSA LDFLAGS...  -lasound -lm -ldl -lpthread
checking for libasound headers version >= 1.0.0... not present.
checking for snd_ctl_open in -lasound... no
checking linux/input.h usability... no
checking linux/input.h presence... no
checking for linux/input.h... no
checking for xdg-email... no
checking for perl5... no
checking for perl... /usr/bin/perl
checking for perl version... 5.24.4
checking for xmllint... /mingw64/bin/xmllint
checking for xsltproc... /usr/bin/xsltproc
checking for shared-mime-info... yes
checking for xvfb-run... no
checking for appstream-util... no
checking for desktop-file-validate... no
checking if building the Windows installer... no
configure: Generating POTFILES and Makefile for po-libgimp
configure: Generating POTFILES and Makefile for po-python
configure: Generating POTFILES and Makefile for po-plug-ins
configure: Generating POTFILES and Makefile for po-script-fu
configure: Generating POTFILES and Makefile for po-tips
configure: Generating POTFILES and Makefile for po-windows-installer
configure: error:

Extra Binaries:
  gimp-console:            yes

Optional Features:
  Language selection:      no (iso-codes package not found)
  Vector icons:            yes
  Dr. Mingw (Win32):       no (ExcHndl library missing)
  Bundled MyPaint Brushes: no (at C:/msys64/home/Gil/share/mypaint-data/1.0/brushes)
  Default ICC directory:

Optional Plug-Ins:
  Ascii Art:               no (AA library not found)
  Ghostscript:             no (Ghostscript library not found)
  Help Browser:            no (WebKit not found)
  JPEG 2000:               yes
  MNG:                     no (MNG header file not found)
  OpenEXR:                 no (OpenEXR not found)
  WebP:                    no (WebP not found)
  Heif:                    no (libheif not found)
  PDF (export):            yes
  Print:                   yes
  Python 2:                no
  TWAIN (Win32):           yes
  Webpage:                 no (WebKit not found)
  WMF:                     no (libwmf not found)
  X11 Mouse Cursor:        no (libXcursor not found)
  XPM:                     no (XPM library not found)
  Email:                   needs runtime dependency: xdg-email

Optional Modules:
  ALSA (MIDI Input):       no (libasound not found or unusable)
  Linux Input:             no (linux input support disabled) (GUdev support: no)
  DirectInput (Win32):     no

Tests:
  Use xvfb-run             no (not found)
  Test appdata             no (appstream-util not found)
  Test desktop file        no (desktop-file-validate not found)

Bug report URL: http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP

NOTE: if you plan on packaging GIMP for distribution, it is recommended
      to override the bug report URL with option:
        --with-bug-report-url=https://example.com/
      so that you can filter packaging bugs from core bugs before
      reporting upstream.

WARNING: You enabled vector icons on Win32. Make sure to run:
           $ gdk-pixbuf-query-loaders.exe --update-cache
         on the target machine (this command generates loaders.cache)
         so that GdkPixbuf knows where to find the SVG loader.

Error: GIMP configuration failed.

  - Error: missing dependency babl >= 0.1.48
  - Error: missing dependency gegl-0.4 >= 0.4.2
  - Error: missing dependency glib >= 2.54.2 except glib 2.56.0 and 2.56.1 (broken on Win32 - bug 795855)

See the file 'INSTALL' for more help.
make: *** [Makefile:756: config.status] Error 1

You’ll probably need to post more of the compile output.