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


Quentin Schulz
 

Hi,

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
https://raymii.org/s/tutorials/Yocto_boot2qt_for_the_Raspberry_Pi_4_both_Qt_6_and_Qt_5.html
<https://urldefense.proofpoint.com/v2/url?u=https-3A__raymii.org_s_tutorials_Yocto-5Fboot2qt-5Ffor-5Fthe-5FRaspberry-5FPi-5F4-5Fboth-5FQt-5F6-5Fand-5FQt-5F5.html&d=DwMFaQ&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=c_i3MaPo6ffKKQtAL2EgesCHFHsSQRbKkv-lEgDTmdFnvMZU_1wMkdsDy5rL2C63&s=xBxzYNFdfAtCmLpM_fqzrlUktQ0MnxSfXaruWaqUQ3M&e=>
instruction)
It build fine.
Now I want to add some packages (libdotconf and speech-dispatcher). I found old
version of it here
http://git.openembedded.org/openembedded/plain/recipes/speech-dispatcher/
<https://urldefense.proofpoint.com/v2/url?u=http-3A__git.openembedded.org_openembedded_plain_recipes_speech-2Ddispatcher_&d=DwMFaQ&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=c_i3MaPo6ffKKQtAL2EgesCHFHsSQRbKkv-lEgDTmdFnvMZU_1wMkdsDy5rL2C63&s=daEJD6JsGX9B2YDJXUIxgWO5hoabsYoVLBO2EK1A7Lw&e=>
and http://git.openembedded.org/openembedded/plain/recipes/libdotconf/
<https://urldefense.proofpoint.com/v2/url?u=http-3A__git.openembedded.org_openembedded_plain_recipes_libdotconf_&d=DwMFaQ&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=c_i3MaPo6ffKKQtAL2EgesCHFHsSQRbKkv-lEgDTmdFnvMZU_1wMkdsDy5rL2C63&s=joXx1PvDY27D_crWkeGBjwBzXTATcT_g4KeIQGOxcqI&e=>
I trying to update it for new releases. My changes is here
https://github.com/Kuzma30/meta-myconf
<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Kuzma30_meta-2Dmyconf&d=DwMFaQ&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=c_i3MaPo6ffKKQtAL2EgesCHFHsSQRbKkv-lEgDTmdFnvMZU_1wMkdsDy5rL2C63&s=8VkhyIOGEoZkkGHPaRdNU18yQb-37ULpZZW2fGkL0g4&e=>
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
https://github.com/Kuzma30/meta-myconf/blob/main/recipes-multimedia/libdotconf/log
<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Kuzma30_meta-2Dmyconf_blob_main_recipes-2Dmultimedia_libdotconf_log&d=DwMFaQ&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=c_i3MaPo6ffKKQtAL2EgesCHFHsSQRbKkv-lEgDTmdFnvMZU_1wMkdsDy5rL2C63&s=O_v12F2fX1XevhN9blyuP5HidwfNa01GcWE-D0Q6VcQ&e=>
Question
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 https://docs.yoctoproject.org/migration-guides/migration-3.4.html#override-syntax-changes (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}.

Cheers,
Quentin

Join {yocto@lists.yoctoproject.org to automatically receive all group messages.