gobject-introspection

pygobject-2.28.6 won't configure: No package 'gobject-introspection-1.0' found, how do I resolve?

大兔子大兔子 提交于 2020-06-06 06:05:21
问题 I'm trying to get pygobject-2.28.6 to compile in cygwin (version in repository is 2.28.4 which has some issues). Here is the tail of ./configure: checking for GLIB - version >= 2.24.0... yes (version 2.34.3) checking for ffi... checking for FFI... yes checking for GIO... yes checking for GIOUNIX... yes checking for GI... no configure: error: Package requirements (glib-2.0 >= 2.24.0 gobject-introspection-1.0 >= 0.10.2 ) were not met: No package 'gobject-introspection-1.0' found Consider

Cross Compiling Python setup

泄露秘密 提交于 2020-02-28 21:30:13
问题 I am trying to build GObject-Introspection on Ubuntu 14.04 using Mingw-w64. I am currently running 64bit Linux and trying to build for a 32bit Windows target. My first attempt used Python 2.7.8 installed in Wine, however, this did not work because Python's path separator was set to '\' (well '\') instead of Linux's '/'. Due to this I tried using the Python 2.7 in Ubuntu. Using the Python provided by Ubuntu doesn't get past the configuration step. Config.log shows the following: In file

Cross Compiling Python setup

我怕爱的太早我们不能终老 提交于 2020-02-28 21:20:45
问题 I am trying to build GObject-Introspection on Ubuntu 14.04 using Mingw-w64. I am currently running 64bit Linux and trying to build for a 32bit Windows target. My first attempt used Python 2.7.8 installed in Wine, however, this did not work because Python's path separator was set to '\' (well '\') instead of Linux's '/'. Due to this I tried using the Python 2.7 in Ubuntu. Using the Python provided by Ubuntu doesn't get past the configuration step. Config.log shows the following: In file

Cross Compiling Python setup

假装没事ソ 提交于 2020-02-28 21:20:25
问题 I am trying to build GObject-Introspection on Ubuntu 14.04 using Mingw-w64. I am currently running 64bit Linux and trying to build for a 32bit Windows target. My first attempt used Python 2.7.8 installed in Wine, however, this did not work because Python's path separator was set to '\' (well '\') instead of Linux's '/'. Due to this I tried using the Python 2.7 in Ubuntu. Using the Python provided by Ubuntu doesn't get past the configuration step. Config.log shows the following: In file

GStreamer error “assertion 'GST_IS_ELEMENT (src)' failed” when linking elements

走远了吗. 提交于 2019-12-29 09:04:19
问题 I'm working on a GStreamer-based program using Python and the GObject introspection bindings. I'm trying to build this pipeline: videomixer name=mix ! autovideosink \ uridecodebin uri=v4l2:///dev/video0 ! mix. The pipeline works perfectly using gst-launch-1.0, but my Python program gives the errors: (minimal.py:12168): GStreamer-CRITICAL **: gst_element_link_pads_full: assertion 'GST_IS_ELEMENT (src)' failed on_error(): (GError('Internal data flow error.',), 'gstbasesrc.c(2865): gst_base_src

GObject Introspection across multiple languages

痴心易碎 提交于 2019-12-24 16:27:09
问题 The Wiki page of the old PyGTK 2.8 binding states that an object properly written in Python should also be easily usable from C code, or even other language bindings. But PyGTK is outdated and should be replaced by PyGObject. Is it possible to mix and match languages with the newer introspection-based binding, too? For example, can I write a gobject class in Vala, extend it with Python and use the result in Java? 回答1: I've written a C based plugin library that does essentially this. It does

Which languages does libpeas support?

試著忘記壹切 提交于 2019-12-13 07:25:35
问题 The plugin description for a libpeas plugin contains a line determining the Loader and with this the programming language the plugin is written in. It seems the documentation includes not list of available languages. Inspecting the git repository of the project, a top-level directory "Loaders" can be found listing entries for c, gjs, seed and python. It is unclear also if the python version expected is 2 or 3. These are by far fewer languages that the related gobject introspection provides

Gtk.Entry in Gtk.TreeView (CellRenderer)

江枫思渺然 提交于 2019-12-11 07:31:40
问题 I want to pack a Gtk.Entry (with Gtk.EntryCompletion hooked up) into a cell in a Gtk.TreeView . Does anyone know how this can be done? (I just need entry completion on a text entry in a tabular view.) Do I perhaps need to subclass Gtk.CellRenderer or Gtk.CellRendererText , and override the start_editing method (or similar)? I can find examples of subclassing Gtk.CellRenderer , but not modifying the editable behaviour. I can't find the source-code for the Gtk.CellRendererText class, either. I

Is it possible to import the Gvc typelib outside of the Gnome Shell environment?

允我心安 提交于 2019-12-11 00:45:18
问题 I'd like to use Gvc (libgnome-volume-control) as used in Gnome Shell GIR in GJS, but can't find a way to access it except within the Gnome Shell environment (eg. a Gnome Shell extension). Actually, I can't even figure out where it is. Is this possible? UPDATE In line with Philip Withnall's comment (about a hacky workaround), I have found it's possible to import like so: const GIRepository = imports.gi.GIRepository; GIRepository.Repository.prepend_search_path("/usr/lib/gnome-shell");

Travis-ci & Gobject introspection

故事扮演 提交于 2019-12-07 12:43:33
问题 I'm trying to setup Travis for Getting Things GNOME!. My .travis.yml: language: python python: - '3.3' before_install: - sudo apt-get update - sudo apt-get install -qq python3-gi gir1.2-gtk-3.0 virtualenv: system_site_packages: true install: - pip install -e git+git://github.com/getting-things-gnome/liblarch.git#egg=liblarch - pip install -r requirements.txt script: - ./run-tests However, build fails: ====================================================================== ERROR: Failure: