linux - Using C++ bindings with GObject Introspection -
linux - Using C++ bindings with GObject Introspection -
i decided want utilize goffice library in project. write in c++, prefer have c++ class interface, utilize gtkmm , not gtk+ directly.
the documentation (see link above) says can utilize gobject introspection. started reading anout it. read , read , read, , couldn't understand how utilize binding of goffice. looked goffice gi-repository/typelib file on system, , in list of files installed packagekit. found nothing. checked in packagekit if goffice or goffice-devel packages depend on gobject introspection package. maybe depend indirectly, don't depend on straight (otherwise i'd see on list).
i tried , tried, couldn't find resource explain how take library written in gobject, such goffice, , utilize on language, e.g. python, or in case c++. of course, can utilize c functions directly, point want have interface similar gtkmm.
(i utilize gnu/linux, writing desktop application gtkmm , gnu build system, goffice version 0.10)
there no gobject introspection tool c++. can see list of users @ https://live.gnome.org/gobjectintrospection/users.
based on one of goffice's automake files, gir name goffice goffice-0.10, should expect $(pkg-config --variable=girdir gobject-introspection-1.0)/goffice-0.10.gir
, $(pkg-config --variable=typelibdir gobject-introspection-1.0)/goffice-0.10.typelib
, it's possible distribution's packages don't include files, in case might want consider filing bug.
as documentation on how utilize gobject introspection python, should check out pygobject site. link the python gtk+ 3 tutorial, should help sense how utilize pygobject. other languages, documentation vary depending on language , implementation.
c++ linux gnome gobject gobject-introspection
Comments
Post a Comment