Wind River Support Network

HomeDefectsLIN1021-780
Fixed

LIN1021-780 : Incorrect default search path for gobject-introspection

Created: Jul 7, 2021    Updated: Aug 24, 2021
Resolved Date: Jul 20, 2021
Found In Version: 10.21.20.1
Fix Version: 10.21.20.3
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: Userspace

Description

Couldn't find include 'GObject-2.0.gir' (search path: '['/usr/lib64', 'gir-1.0', '/usr/local/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0']')

Workaround

Customer reports this workaround:

export Nikita_1_0_gir_SCANNERFLAGS="--add-include-path=/usr/lib64/gir-1.0"
This adds the needed directory to the search path when GObject introspection is configured/built.

Steps to Reproduce

# Create a qemux86-64 wrlinux-image-small image with:


WRTEMPLATE ?= "feature/dev-pkgs"
IMAGE_INSTALL_append = ' glib-2.0 packagegroup-core-buildessential gobject-introspection'

 # Place the binaries I pre-compiled in the qemu image ([^gobject-introspection-tutorial-code.rar]) or follow the guide [1].
 # Execute:


g-ir-scanner tut-greeter.[ch] \
    --library=tutorial \
    `pkg-config --cflags gobject-2.0` --include=GObject-2.0 \
    --namespace=Tut --nsversion=0.1 --output=Tut-0.1.gir

Couldn't find include 'GObject-2.0.gir' (search path:
'['/usr/lib64', 'gir-1.0', '/usr/local/share/gir-1.0', '/usr/share/gir-1.0',
'/usr/share/gir-1.0', '/usr/share/gir-1.0']')

 
Live chat
Online