Description of problem: Im new to mingw, so please excuse me if I am not understanding something. Compiling a program with mingw and gtk+2, I get: In file included from /usr/i686-pc-mingw32/sys-root/mingw/include/gtk-2.0/gdk/gdk.h:32:0, from /usr/i686-pc-mingw32/sys-root/mingw/include/gtk-2.0/gtk/gtk.h:32, from main.h:58, from widget-helper.c:16: /usr/i686-pc-mingw32/sys-root/mingw/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30:21: fatal error: gio/gio.h: No such file or directory Version-Release number of selected component (if applicable): mingw32-gtk2-2.24.8-1.fc16 How reproducible: Every time Steps to Reproduce: 1. Compile a program with mingw32 which includes gtk.h Actual results: As above Expected results: Should either be patched to find the correct header (e.g. /usr/i686-pc-mingw32/sys-root/mingw/include/gio-win32-2.0/gio/gwin32inputstream.h or: /usr/i686-pc-mingw32/sys-root/mingw/include/gio-win32-2.0/gio/gwin32outputstream.h or else the package should have another dependency, or else a mingw32-gio package should be created. Additional info: None.
What is the exact gcc command which you've used to trigger this error message?
i686-pc-mingw32-gcc -DPACKAGE_NAME=\"LiVES\" -DPACKAGE_TARNAME=\"lives\" -DPACKAGE_VERSION=\"1.6.2-svn\" -DPACKAGE_STRING=\"LiVES\ 1.6.2-svn\" -DPACKAGE_BUGREPORT=\"http://www.sourceforge.net/tracker/\?group_id=64341\&atid=507139\" -DPACKAGE_URL=\"\" -DPACKAGE=\"lives\" -DVERSION=\"1.6.2-svn\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D__EXTENSIONS__=1 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_TANDEM_SOURCE=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DSTDC_HEADERS=1 -DGETTEXT_PACKAGE=\"lives\" -DLOCALEDIR=\"\$\{datarootdir\}/locale\" -DPREFIX=\"NONE\" -DLiVES_VERSION=\"1.6.2-svn\" -DHAVE_VISIBILITY=1 -DHAVE_STDINT_H_WITH_UINTMAX=1 -DHAVE_ALLOCA=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETPAGESIZE=1 -DINTDIV0_RAISES_SIGFPE=1 -DHAVE_INTTYPES_H_WITH_UINTMAX=1 -DHAVE_UNSIGNED_LONG_LONG_INT=1 -DHAVE_UINTMAX_T=1 -DHAVE_INTTYPES_H=1 -DUSE_POSIX_THREADS=1 -DUSE_POSIX_THREADS_WEAK=1 -DHAVE_PTHREAD_RWLOCK=1 -DHAVE_PTHREAD_MUTEX_RECURSIVE=1 -DHAVE_BUILTIN_EXPECT=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETCWD=1 -DHAVE_STRCASECMP=1 -DHAVE_STRDUP=1 -DHAVE_STRTOUL=1 -DHAVE_TSEARCH=1 -DHAVE_DECL_FEOF_UNLOCKED=0 -DHAVE_DECL_FGETS_UNLOCKED=0 -DICONV_CONST=const -DHAVE_LONG_LONG_INT=1 -DHAVE_WCHAR_T=1 -DHAVE_WINT_T=1 -DHAVE_INTMAX_T=1 -DHAVE_STDINT_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_FWPRINTF=1 -DHAVE_PUTENV=1 -DHAVE_SETLOCALE=1 -DHAVE_SNPRINTF=1 -DHAVE_WCSLEN=1 -DHAVE_DECL__SNPRINTF=1 -DHAVE_DECL__SNWPRINTF=1 -DHAVE_DECL_GETC_UNLOCKED=0 -DENABLE_NLS=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DHAVE_LIBDL=1 -DHAVE_BZLIB_H=1 -I. -I /usr/i686-pc-mingw32/sys-root/mingw/include/ -I /usr/i686-pc-mingw32/sys-root/mingw/include/gtk-2.0 -I /usr/i686-pc-mingw32/sys-root/mingw/include/gio-win32-2.0/ -DHAVE_WEBM=1 -g -O2 -Wall -MT widget-helper.o -MD -MP -MF .deps/widget-helper.Tpo -c -o widget-helper.o widget-helper.c
The include paths which are used in that gcc command are too limited. It's recommended to use pkg-config to find out all include paths. A mingw-friendly version of pkg-config is available in the package mingw32-pkg-config. After this package is installed you can execute the following command to find out all the include paths which are needed by gtk: $ i686-pc-mingw32-pkg-config --cflags gtk+-2.0 -mms-bitfields -I/usr/i686-pc-mingw32/sys-root/mingw/include/gtk-2.0 -I/usr/i686-pc-mingw32/sys-root/mingw/lib/gtk-2.0/include -I/usr/i686-pc-mingw32/sys-root/mingw/include/atk-1.0 -I/usr/i686-pc-mingw32/sys-root/mingw/include/cairo -I/usr/i686-pc-mingw32/sys-root/mingw/include/gdk-pixbuf-2.0 -I/usr/i686-pc-mingw32/sys-root/mingw/include/pango-1.0 -I/usr/i686-pc-mingw32/sys-root/mingw/include/glib-2.0 -I/usr/i686-pc-mingw32/sys-root/mingw/lib/glib-2.0/include -I/usr/i686-pc-mingw32/sys-root/mingw/include/pixman-1 -I/usr/i686-pc-mingw32/sys-root/mingw/include -I/usr/i686-pc-mingw32/sys-root/mingw/include/freetype2 -I/usr/i686-pc-mingw32/sys-root/mingw/include/libpng15
I have i686-pc-mingw32-pkg-config installed but configure is using the standard /usr/bin/pkg-config.
Ah OK I guess I should do something like: if test "$IS_MINGW" = "true"; then AC_PATH_PROG(PKG_CONFIG, i686-pc-mingw32-pkg-config, no) else .... fi Feel free to close this as is not a bug.
And thanks for the pointer !