Some questions regarding GObject-Introspection



Hi,

I was trying to build G-I on Windows using MSVC, and managed to get the GLib-2.0.gir file to be built by g-ir-scanner (used the gcc preprocessor as MSVC does not accept input from stdin[1], then run the MSVC compiler on the resulting temporary GLib.c), using the command like what is found in the attached glib_gir.txt. (please use an editor that has line wrap enabled, sorry about the one-line command, but this is what was needed!).

The built GLib-2.0.gir can be found at https://dl.dropbox.com/u/30316581/GLib-2.0.gir, as it is a bit too large to be included here.

I then built the GLib-2.0.typelib by using this command: g-ir-compiler -o GLib-2.0.typelib GLib-2.0.gir, where the typelib does get built

After figuring out where I should place the .typelib/.gir files, I proceeded to to run the glib-print example, but I get:
**
domain:ERROR:glib-print.c:1057148:main: hello world

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

What I would like to know:
1. Does my GLib-2.0.gir seem ok?
2. Did I miss any stepts or make any mistakes generating the GLib-2.0.typelib file.
3. Any other thing that I might have missed?

With blessings, and thanks for your time!

[1]: https://bugzilla.gnome.org/show_bug.cgi?id=620566#c35
python tools/g-ir-scanner --verbose -I../ --add-include-path=../ --add-include-path=../gir --add-include-path=. --namespace=GLib --nsversion=2.0 --no-libtool --pkg=glib-2.0 --library=glib-2.0 --library=gobject-2.0 --external-library --reparse-validate --identifier-prefix=G --symbol-prefix=g --symbol-prefix=glib --c-include="glib.h" -I%GNOMEBASE%/include/glib-2.0 -I%GNOMEBASE%/lib/glib-2.0/include -I%GNOMEBASE%/include -DGETTEXT_PACKAGE=Dummy -DGLIB_COMPILATION -D__G_I18N_LIB_H__ %GNOMEBASE%/lib/glib-2.0/include/glibconfig.h %GNOMEBASE%/include/glib-2.0/glib/galloca.h %GNOMEBASE%/include/glib-2.0/glib/garray.h %GNOMEBASE%/include/glib-2.0/glib/gasyncqueue.h %GNOMEBASE%/include/glib-2.0/glib/gatomic.h %GNOMEBASE%/include/glib-2.0/glib/gbacktrace.h %GNOMEBASE%/include/glib-2.0/glib/gbase64.h %GNOMEBASE%/include/glib-2.0/glib/gbitlock.h %GNOMEBASE%/include/glib-2.0/glib/gbookmarkfile.h %GNOMEBASE%/include/glib-2.0/glib/gbytes.h %GNOMEBASE%/include/glib-2.0/glib/gcharset.h %GNOMEBASE%/include/glib-2.0/glib/gchecksum.h %GNOMEBASE%/include/glib-2.0/glib/gconvert.h %GNOMEBASE%/include/glib-2.0/glib/gdataset.h %GNOMEBASE%/include/glib-2.0/glib/gdate.h %GNOMEBASE%/include/glib-2.0/glib/gdatetime.h %GNOMEBASE%/include/glib-2.0/glib/gdir.h %GNOMEBASE%/include/glib-2.0/glib/genviron.h %GNOMEBASE%/include/glib-2.0/glib/gerror.h %GNOMEBASE%/include/glib-2.0/glib/gfileutils.h %GNOMEBASE%/include/glib-2.0/glib/ggettext.h %GNOMEBASE%/include/glib-2.0/glib/ghash.h %GNOMEBASE%/include/glib-2.0/glib/ghmac.h %GNOMEBASE%/include/glib-2.0/glib/ghook.h %GNOMEBASE%/include/glib-2.0/glib/ghostutils.h %GNOMEBASE%/include/glib-2.0/glib/gi18n-lib.h %GNOMEBASE%/include/glib-2.0/glib/gi18n.h %GNOMEBASE%/include/glib-2.0/glib/giochannel.h %GNOMEBASE%/include/glib-2.0/glib/gkeyfile.h %GNOMEBASE%/include/glib-2.0/glib/glist.h %GNOMEBASE%/include/glib-2.0/glib/gmacros.h %GNOMEBASE%/include/glib-2.0/glib/gmain.h %GNOMEBASE%/include/glib-2.0/glib/gmappedfile.h %GNOMEBASE%/include/glib-2.0/glib/gmarkup.h %GNOMEBASE%/include/glib-2.0/glib/gmem.h %GNOMEBASE%/include/glib-2.0/glib/gmessages.h %GNOMEBASE%/include/glib-2.0/glib/gnode.h %GNOMEBASE%/include/glib-2.0/glib/goption.h %GNOMEBASE%/include/glib-2.0/glib/gpattern.h %GNOMEBASE%/include/glib-2.0/glib/gpoll.h %GNOMEBASE%/include/glib-2.0/glib/gprimes.h %GNOMEBASE%/include/glib-2.0/glib/gprintf.h %GNOMEBASE%/include/glib-2.0/glib/gqsort.h %GNOMEBASE%/include/glib-2.0/glib/gquark.h %GNOMEBASE%/include/glib-2.0/glib/gqueue.h %GNOMEBASE%/include/glib-2.0/glib/grand.h %GNOMEBASE%/include/glib-2.0/glib/gregex.h  %GNOMEBASE%/include/glib-2.0/glib/gscanner.h %GNOMEBASE%/include/glib-2.0/glib/gsequence.h %GNOMEBASE%/include/glib-2.0/glib/gshell.h %GNOMEBASE%/include/glib-2.0/glib/gslice.h %GNOMEBASE%/include/glib-2.0/glib/gslist.h %GNOMEBASE%/include/glib-2.0/glib/gspawn.h %GNOMEBASE%/include/glib-2.0/glib/gstdio.h %GNOMEBASE%/include/glib-2.0/glib/gstrfuncs.h %GNOMEBASE%/include/glib-2.0/glib/gstring.h %GNOMEBASE%/include/glib-2.0/glib/gstringchunk.h %GNOMEBASE%/include/glib-2.0/glib/gtestutils.h %GNOMEBASE%/include/glib-2.0/glib/gthread.h %GNOMEBASE%/include/glib-2.0/glib/gthreadpool.h %GNOMEBASE%/include/glib-2.0/glib/gtimer.h %GNOMEBASE%/include/glib-2.0/glib/gtimezone.h %GNOMEBASE%/include/glib-2.0/glib/gtrashstack.h %GNOMEBASE%/include/glib-2.0/glib/gtree.h %GNOMEBASE%/include/glib-2.0/glib/gtypes.h %GNOMEBASE%/include/glib-2.0/glib/gunicode.h %GNOMEBASE%/include/glib-2.0/glib/gurifuncs.h %GNOMEBASE%/include/glib-2.0/glib/gutils.h %GNOMEBASE%/include/glib-2.0/glib/gvariant.h %GNOMEBASE%/include/glib-2.0/glib/gvarianttype.h %GNOMEBASE%/include/glib-2.0/glib/gversion.h %GNOMEBASE%/include/glib-2.0/glib/gversionmacros.h %GNOMEBASE%/include/glib-2.0/glib/gwin32.h %GNOMEBASE%/include/glib-2.0/gobject/glib-types.h gir/glib-2.0.c -o GLib-2.0.gir 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]