All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [yocto] [Need help] How to add one package to build directory of another package
       [not found] <6148E1EA-62EF-485E-BEE1-035DB5CBF79E@hxcore.ol>
@ 2022-07-29  8:31 ` Quentin Schulz
  2022-07-30 10:20 ` Kuzemko Aleksandr
  1 sibling, 0 replies; 7+ messages in thread
From: Quentin Schulz @ 2022-07-29  8:31 UTC (permalink / raw)
  To: Kuzemko Aleksandr, yocto

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

> 
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#57663): https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.yoctoproject.org_g_yocto_message_57663&d=DwIFaQ&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=c_i3MaPo6ffKKQtAL2EgesCHFHsSQRbKkv-lEgDTmdFnvMZU_1wMkdsDy5rL2C63&s=s6659odmXqweDgGoyqWCDKOodVstQ1MZdNtIsJz5pBM&e=
> Mute This Topic: https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.yoctoproject.org_mt_92675007_6293953&d=DwIFaQ&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=c_i3MaPo6ffKKQtAL2EgesCHFHsSQRbKkv-lEgDTmdFnvMZU_1wMkdsDy5rL2C63&s=kuh6AkLsrgETcXWCrffQ2QlArIjPZnspezjip4n4J_k&e=
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.yoctoproject.org_g_yocto_unsub&d=DwIFaQ&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=c_i3MaPo6ffKKQtAL2EgesCHFHsSQRbKkv-lEgDTmdFnvMZU_1wMkdsDy5rL2C63&s=zeQXkGxxKX67vIHLI2NnwtmFTE2pXojILy-dbshgtk4&e=  [quentin.schulz@theobroma-systems.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Need help] How to add one package to build directory of another package
       [not found] <6148E1EA-62EF-485E-BEE1-035DB5CBF79E@hxcore.ol>
  2022-07-29  8:31 ` [yocto] [Need help] How to add one package to build directory of another package Quentin Schulz
@ 2022-07-30 10:20 ` Kuzemko Aleksandr
  2022-07-30 17:22   ` [yocto] " Khem Raj
  1 sibling, 1 reply; 7+ messages in thread
From: Kuzemko Aleksandr @ 2022-07-30 10:20 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 474 bytes --]

I have fixed one problem ("No package 'dotconf' found" error) by coping .pc file
https://github.com/Kuzma30/meta-myconf/commit/6b01df5f7adaa3fec1fd1a34d74d9be5d4b9cdbf

But now I has problem with main package (speech-dispatcher)
Log here
https://github.com/Kuzma30/meta-myconf/commit/7c5e3a070f526dafe01b43aa5ba95573dd55d07d

ERROR: speech-dispatcher-git-r0 do_package_qa: QA Issue: -dev package speech-dispatcher-dev contains non-symlink .so '/usr/lib/libvoxin.so'

[-- Attachment #2: Type: text/html, Size: 865 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [yocto] [Need help] How to add one package to build directory of another package
  2022-07-30 10:20 ` Kuzemko Aleksandr
@ 2022-07-30 17:22   ` Khem Raj
  2022-08-05  7:32     ` Kuzemko Aleksandr
  0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2022-07-30 17:22 UTC (permalink / raw)
  To: Kuzemko Aleksandr; +Cc: yocto

On Sat, Jul 30, 2022 at 6:20 AM Kuzemko Aleksandr
<kuzemkoyocto@gmail.com> wrote:
>
> I have fixed one problem ("No package 'dotconf' found" error) by coping .pc file
> https://github.com/Kuzma30/meta-myconf/commit/6b01df5f7adaa3fec1fd1a34d74d9be5d4b9cdbf
>

I wonder why do you have do_stage task, it should not be defined in
recipes anymore as the bbclasses should be left to handle staging
sysroot creating most of times.

> But now I has problem with main package (speech-dispatcher)
> Log here
> https://github.com/Kuzma30/meta-myconf/commit/7c5e3a070f526dafe01b43aa5ba95573dd55d07d

Your package contains unversioned libraries, so either change them to
use versioning scheme, see
https://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html

If you really need to keep using unversioned libraries then you have
to tell the packaging system to do the right thing

add something like this in recipe

FILES_SOLIBSDEV = ""
INSANE_SKIP:${PN} += "dev-so"

>
> ERROR: speech-dispatcher-git-r0 do_package_qa: QA Issue: -dev package speech-dispatcher-dev contains non-symlink .so '/usr/lib/libvoxin.so'
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> You automatically follow any topics you start or reply to.
> View/Reply Online (#57692): https://lists.yoctoproject.org/g/yocto/message/57692
> Mute This Topic: https://lists.yoctoproject.org/mt/92675007/1997914
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Need help] How to add one package to build directory of another package
  2022-07-30 17:22   ` [yocto] " Khem Raj
@ 2022-08-05  7:32     ` Kuzemko Aleksandr
  2022-08-05 15:53       ` [yocto] " Khem Raj
  0 siblings, 1 reply; 7+ messages in thread
From: Kuzemko Aleksandr @ 2022-08-05  7:32 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 709 bytes --]

Report of progress.
https://github.com/Kuzma30/meta-myconf/commit/25035fdb737aecfb765c963085e898d0f33ac0b9
Have errors
ERROR: speech-dispatcher-git-r0 do_package_qa: QA Issue: non -dev/-dbg/nativesdk- package libspeechd contains symlink .so '/usr/lib/libspeechd.so' [dev-so]
ERROR: speech-dispatcher-git-r0 do_package_qa: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in: /home/qtembed/b2qt/build-raspberrypi4/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/speech-dispatcher/git-r0/temp/log.do_package_qa.26981
ERROR: Task (/home/qtembed/b2qt/sources/meta-myconfig/recipes-multimedia/speech-dispatcher/speech-dispatcher_git.bb:do_package_qa) failed with exit code '1'

[-- Attachment #2: Type: text/html, Size: 866 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [yocto] [Need help] How to add one package to build directory of another package
  2022-08-05  7:32     ` Kuzemko Aleksandr
@ 2022-08-05 15:53       ` Khem Raj
  2022-08-06  9:28         ` Kuzemko Aleksandr
  0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2022-08-05 15:53 UTC (permalink / raw)
  To: Kuzemko Aleksandr; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1319 bytes --]

Also add

INSANE_SKIP:libspeechd += "dev-so"

On Fri, Aug 5, 2022 at 12:32 AM Kuzemko Aleksandr <kuzemkoyocto@gmail.com>
wrote:

> Report of progress.
>
> https://github.com/Kuzma30/meta-myconf/commit/25035fdb737aecfb765c963085e898d0f33ac0b9
> Have errors
>
> ERROR: speech-dispatcher-git-r0 do_package_qa: QA Issue: non -dev/-dbg/nativesdk- package libspeechd contains symlink .so '/usr/lib/libspeechd.so' [dev-so]
> ERROR: speech-dispatcher-git-r0 do_package_qa: Fatal QA errors were found, failing task.
> ERROR: Logfile of failure stored in: /home/qtembed/b2qt/build-raspberrypi4/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/speech-dispatcher/git-r0/temp/log.do_package_qa.26981
> ERROR: Task (/home/qtembed/b2qt/sources/meta-myconfig/recipes-multimedia/speech-dispatcher/speech-dispatcher_git.bb:do_package_qa) failed with exit code '1'
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> You automatically follow any topics you start or reply to.
> View/Reply Online (#57782):
> https://lists.yoctoproject.org/g/yocto/message/57782
> Unfollow This Topic: https://lists.yoctoproject.org/unft/92675007/1997914
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [
> raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 2730 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Need help] How to add one package to build directory of another package
  2022-08-05 15:53       ` [yocto] " Khem Raj
@ 2022-08-06  9:28         ` Kuzemko Aleksandr
  2022-08-06 10:48           ` [yocto] " Alex Kiernan
  0 siblings, 1 reply; 7+ messages in thread
From: Kuzemko Aleksandr @ 2022-08-06  9:28 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 444 bytes --]

Thanks, now it works.

Another question. I have
DEPENDS = "espeak flite pulseaudio libdotconf glib-2.0 libtool gettext"
and
EXTRA_OECONF = " --with-espeak --with-flite --without-ibmtts --without-nas --with-alsa --with-pulse "
Is it possible define espeak flite as option? For example if I in local.conf define something speech-dispatcher[espeak] it will disable from DEPENDS flite depends and in EXTRA_OECONF it wil be as --withot-flite

[-- Attachment #2: Type: text/html, Size: 476 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [yocto] [Need help] How to add one package to build directory of another package
  2022-08-06  9:28         ` Kuzemko Aleksandr
@ 2022-08-06 10:48           ` Alex Kiernan
  0 siblings, 0 replies; 7+ messages in thread
From: Alex Kiernan @ 2022-08-06 10:48 UTC (permalink / raw)
  To: Kuzemko Aleksandr; +Cc: yocto

PACKAGECONFIG is what you're after:

https://docs.yoctoproject.org/current/ref-manual/variables.html#term-PACKAGECONFIG


On Sat, Aug 6, 2022 at 10:28 AM Kuzemko Aleksandr
<kuzemkoyocto@gmail.com> wrote:
>
> Thanks, now it works.
>
> Another question. I have
> DEPENDS = "espeak flite pulseaudio libdotconf glib-2.0 libtool gettext"
> and
> EXTRA_OECONF = " --with-espeak --with-flite --without-ibmtts --without-nas --with-alsa --with-pulse "
> Is it possible define espeak flite as option? For example if I in local.conf define something speech-dispatcher[espeak] it will disable from DEPENDS flite depends and in EXTRA_OECONF it wil be as --withot-flite
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#57789): https://lists.yoctoproject.org/g/yocto/message/57789
> Mute This Topic: https://lists.yoctoproject.org/mt/92675007/3618097
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [alex.kiernan@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


-- 
Alex Kiernan


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-08-06 10:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <6148E1EA-62EF-485E-BEE1-035DB5CBF79E@hxcore.ol>
2022-07-29  8:31 ` [yocto] [Need help] How to add one package to build directory of another package Quentin Schulz
2022-07-30 10:20 ` Kuzemko Aleksandr
2022-07-30 17:22   ` [yocto] " Khem Raj
2022-08-05  7:32     ` Kuzemko Aleksandr
2022-08-05 15:53       ` [yocto] " Khem Raj
2022-08-06  9:28         ` Kuzemko Aleksandr
2022-08-06 10:48           ` [yocto] " Alex Kiernan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.