Bug 790612 - Missing gio package required for mingw-gtk2
Summary: Missing gio package required for mingw-gtk2
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: mingw32-gtk2
Version: 16
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-14 22:30 UTC by salsaman
Modified: 2012-02-14 23:04 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-14 23:04:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description salsaman 2012-02-14 22:30:37 UTC
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.

Comment 1 Erik van Pienbroek 2012-02-14 22:37:09 UTC
What is the exact gcc command which you've used to trigger this error message?

Comment 2 salsaman 2012-02-14 22:43:12 UTC
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

Comment 3 Erik van Pienbroek 2012-02-14 22:52:59 UTC
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

Comment 4 salsaman 2012-02-14 22:59:36 UTC
I have i686-pc-mingw32-pkg-config installed but configure is using the standard /usr/bin/pkg-config.

Comment 5 salsaman 2012-02-14 23:03:15 UTC
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.

Comment 6 salsaman 2012-02-14 23:04:17 UTC
And thanks for the pointer !


Note You need to log in before you can comment on or make changes to this bug.