Re: [Need help] How to add one package to build directory of another package

Quentin Schulz


On 7/28/22 19:14, Kuzemko Aleksandr wrote:
Hello all. This is my first work with Yocto.
I build b2qt for qt6 dev (follow
It build fine.
Now I want to add some packages (libdotconf and speech-dispatcher). I found old
version of it here
I trying to update it for new releases. My changes is here
when i run bitbake speech-dispatcher I get this error
checking for dotconf >= 1.3.. no
| configure: error: Package requirements (dotconf >= 1.3) were not met:
| No package 'dotconf' found
| Consider adjusting the PKG_CONFIG_PATH environment variable if you
| installed software in a non-standard prefix.
| Alternatively, you may set the environment variables DOTCONF_CFLAGS
| and DOTCONF_LIBS to avoid the need to call pkg-config.
| See the pkg-config man page for more details.
more info is here
How to add libdotconf to the speech-dispatcher build environment?
DEPENDS += "libdotconf"

in speech-dispatcher recipe. This adds a dependency on libdotconf target recipe so that it makes it to the sysroot of the speech-dispatcher recipe at build time.

I had a quick glance at your layer and it seems you're targeting kirkstone release but you're still using the old override syntax. Please read (and the migration guides of all releases between the one supported by the original recipe you got speech dispatcher from so that all required changes are made).

E.g. it's not FILES_${PN} anymore but FILES:${PN}.


Join { to automatically receive all group messages.