Skip to contentSkip to conversation

#bitbake Can't use 'bitbake -g <image-name> -u taskdep

DISCUSSION keydi 2 participants 5 messages Apr 16, 2021 – Apr 23, 2021

lore
Share & tools
lore

keydi

author
#0 lore raw

Hi,
Myself had to ask web search engine for usage of Task Dependency Explorer taskexp as I didn't succeed on search in Yocto materials. Hence, the way I try to use taskexp might be not right.

In the fashion as I try to start Task Dependency Explorer it does not work. Invocation completes with error in __init__.py  -> require_version figures out lack of Gtk namespace. Which is build-area Gtk is missed? Image, distribution, yet another?
Which way of fixing should I aim to resolve error?

File "/mnt/..../meta/poky/bitbake/lib/bb/ui/taskexp.py", line 22, in <module> gi.require_version('Gtk', '3.0')
File "/usr/lib/python3/dist-packages/gi/__init__.py", line 130, in require_version raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available

Best Regards
keydi

author
#1 lore raw

Myself wonders if the answer is just to enable a recipe building native package gtk of version 3.0.

author
#2 lore raw

If yes, me wonders how to force Bitbake to build that recipe, if for target system gtk is not built, there is actually no target depending on gtk. Hence, I add such recipe Bitbake might ignore it as target system image does not order, nor any other target depends on.

#3 lore raw
In reply to keydi

Basically, taskdep needs gobject-introspection and gtk3 on the host. You're most likely missing the GTK3 gir files.

Ross

Quoted 4 lines · keydi

Myself wonders if the answer is just to enable a recipe building native package gtk of version 3.0.

author
#4 lore raw

As for project here Poky operates on headless server. Developers use SSH to interact with Poky, to handle its input data, and to access build results. Must gtk3 be installed locally to Poky or will taskexp be able to connect to gtk3 operating on ssh client? As of time being Poky host has gtk not installed. Installation of gtk on Poky host will need approval of latter's administrator.