MinGW gdk-pixbuf-2.22.1 make error

/bin/sh ../../libtool  –tag=CC   –mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../..  -mms-bitfields -IC:/MinGW/include/glib-2.0 -IC:/MinGW/lib/glib-2.0/include -IC:/MinGW/include/libpng14     -DG_DISABLE_SINGLE_INCLUDES -I/mingw/include  -DGDK_PIXBUF_DISABLE_DEPRECATED -g -O2 -Wall -mms-bitfields -MT pixops.lo -MD -MP -MF .deps/pixops.Tpo -c -o pixops.lo pixops.c
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../.. -mms-bitfields -IC:/MinGW/include/glib-2.0 -IC:/MinGW/lib/glib-2.0/include -IC:/MinGW/include/libpng14  -DG_DISABLE_SINGLE_INCLUDES -I/mingw/include -DGDK_PIXBUF_DISABLE_DEPRECATED -g -O2 -Wall -mms-bitfields -MT pixops.lo -MD -MP -MF .deps/pixops.Tpo -c pixops.c  -DDLL_EXPORT -DPIC -o .libs/pixops.o
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../.. -mms-bitfields -IC:/MinGW/include/glib-2.0 -IC:/MinGW/lib/glib-2.0/include -IC:/MinGW/include/libpng14  -DG_DISABLE_SINGLE_INCLUDES -I/mingw/include -DGDK_PIXBUF_DISABLE_DEPRECATED -g -O2 -Wall -mms-bitfields -MT pixops.lo -MD -MP -MF .deps/pixops.Tpo -c pixops.c  -DDLL_EXPORT -DPIC -o .libs/pixops.o
gcc.exe: : Invalid argument
make[4]: *** [pixops.lo] Error 1

上述的编译错误,奋斗了两天终于解决了,不是自己改错的,而是上天帮助我找到Building Evolution on Windows的这一段:‘

pkg-config for Win32 can be found on ftp.gnome.org, too, in http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/.

To work around a bug in MSYS bash, you need to create a file pkg-config.sh somewhere with the contents:

#!/bin/sh
if pkg-config "$@" > /dev/null 2>&1 ; then
res=true
else
res=false
fi
pkg-config "$@" | tr -d \\r && $res

And then set the environment variable PKG_CONFIG=/path/to/that/pkg-config.sh

也就是说,在MSYS里,会有错误,所以需要新增一个pkg-config.sh的档案,然后设定PKG_CONFIG,宾果,酱就对了,我把pkg-config.sh放在/mingw/bin下,设定PKG_CONFIG=/mingw/bin/pkg-config.sh,然后编译这个套件就成功了,感谢神,又过一关了!