All of lore.kernel.org
 help / color / mirror / Atom feed
* Problems adding cppzmq to Target-SDK
@ 2025-03-05 10:56 Lukas Weiß
  2025-03-05 14:13 ` [oe] " Khem Raj
  2025-03-14 14:47 ` Lukas Weiß
  0 siblings, 2 replies; 5+ messages in thread
From: Lukas Weiß @ 2025-03-05 10:56 UTC (permalink / raw)
  To: openembedded-devel

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

Hi together,
i am just trying to add *cppzmq* to my Target-SDK (from meta-openembedded Layer). To do that, ive added them do RDEPENDS of my App-Recipe:

RDEPENDS : ${ PN } += "cppzmq"

This does neither work for target nor for target-sdk:

> 
> ERROR: Nothing RPROVIDES 'cppzmq' (but calc-server_latest.bb RDEPENDS on
> or otherwise requires it)
> 

Adding *cppzmq-dev* works for Target-SDK, but not for Target-Build:

> 
> ERROR: calc-server-latest-r0 do_package_qa: QA Issue: calc-server rdepends
> on cppzmq-dev [dev-deps]
> 

I fixed this by adding the *cppzmq-dev* to RDEPENDS of packagegroup-core-standalone-sdk-target to add the dependency only direct to Target-SDK, but thats a bad hack.

Any ideas how to fix this? As far as i know cppzmq is a Header-Only Project...

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

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

* Re: [oe] Problems adding cppzmq to Target-SDK
  2025-03-05 10:56 Problems adding cppzmq to Target-SDK Lukas Weiß
@ 2025-03-05 14:13 ` Khem Raj
  2025-03-14 14:47 ` Lukas Weiß
  1 sibling, 0 replies; 5+ messages in thread
From: Khem Raj @ 2025-03-05 14:13 UTC (permalink / raw)
  To: lukas.weiss; +Cc: openembedded-devel

On Wed, Mar 5, 2025 at 5:56 AM Lukas Weiß via lists.openembedded.org
<lukas.weiss=janitza.de@lists.openembedded.org> wrote:
>
> Hi together,
> i am just trying to add cppzmq to my Target-SDK (from meta-openembedded Layer). To do that, ive added them do RDEPENDS of my App-Recipe:
>
> RDEPENDS:${PN} += "cppzmq"
>

Its a dev headers package and only generated dev output package so
rdep on PN is going to fail because no such package is generated.
Add DEPENDS += "cppzmq" to your app recipe this hopefully helps with
target build.

> This does neither work for target nor for target-sdk:
>
> ERROR: Nothing RPROVIDES 'cppzmq' (but calc-server_latest.bb RDEPENDS on or otherwise requires it)
>
>
> Adding cppzmq-dev works for Target-SDK, but not for Target-Build:
>
> ERROR: calc-server-latest-r0 do_package_qa: QA Issue: calc-server rdepends on cppzmq-dev [dev-deps]
>
>
> I fixed this by adding the cppzmq-dev to RDEPENDS of packagegroup-core-standalone-sdk-target to add the dependency only direct to Target-SDK, but thats a bad hack.
>
> Any ideas how to fix this? As far as i know cppzmq is a Header-Only Project...
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#115749): https://lists.openembedded.org/g/openembedded-devel/message/115749
> Mute This Topic: https://lists.openembedded.org/mt/111525960/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


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

* Re: Problems adding cppzmq to Target-SDK
  2025-03-05 10:56 Problems adding cppzmq to Target-SDK Lukas Weiß
  2025-03-05 14:13 ` [oe] " Khem Raj
@ 2025-03-14 14:47 ` Lukas Weiß
  2025-03-14 17:59   ` [oe] " Khem Raj
  1 sibling, 1 reply; 5+ messages in thread
From: Lukas Weiß @ 2025-03-14 14:47 UTC (permalink / raw)
  To: openembedded-devel


[-- Attachment #1.1: Type: text/plain, Size: 69 bytes --]

I found a solution, this is a problem in recipe. Patch is attached.

[-- Attachment #1.2: Type: text/html, Size: 99 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: cppzmq.patch --]
[-- Type: text/x-patch; name="cppzmq.patch", Size: 483 bytes --]

diff --git a/meta-oe/recipes-connectivity/zeromq/cppzmq_4.10.0.bb b/meta-oe/recipes-connectivity/zeromq/cppzmq_4.10.0.bb
index dcea339dfd..d5732e041e 100644
--- a/meta-oe/recipes-connectivity/zeromq/cppzmq_4.10.0.bb
+++ b/meta-oe/recipes-connectivity/zeromq/cppzmq_4.10.0.bb
@@ -14,7 +14,7 @@ inherit cmake
 
 EXTRA_OECMAKE = "-DCPPZMQ_BUILD_TESTS=OFF"
 
-PACKAGES = "${PN}-dev"
+ALLOW_EMPTY:${PN} = "1"
 
 RDEPENDS:${PN}-dev = "zeromq-dev zeromq-staticdev"
 DEV_PKG_DEPENDENCY = ""

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

* Re: [oe] Problems adding cppzmq to Target-SDK
  2025-03-14 14:47 ` Lukas Weiß
@ 2025-03-14 17:59   ` Khem Raj
  2025-03-17 11:09     ` AW: " Lukas Weiß
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2025-03-14 17:59 UTC (permalink / raw)
  To: lukas.weiss; +Cc: openembedded-devel

On Fri, Mar 14, 2025 at 7:47 AM Lukas Weiß via lists.openembedded.org
<lukas.weiss=janitza.de@lists.openembedded.org> wrote:
>
> I found a solution, this is a problem in recipe. Patch is attached.
>

If we allow empty main package then do we still need

RDEPENDS:${PN}-dev = "zeromq-dev zeromq-staticdev"
DEV_PKG_DEPENDENCY = ""

can you check your usecase without these settings?

>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#115985): https://lists.openembedded.org/g/openembedded-devel/message/115985
> Mute This Topic: https://lists.openembedded.org/mt/111525960/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


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

* AW: [oe] Problems adding cppzmq to Target-SDK
  2025-03-14 17:59   ` [oe] " Khem Raj
@ 2025-03-17 11:09     ` Lukas Weiß
  0 siblings, 0 replies; 5+ messages in thread
From: Lukas Weiß @ 2025-03-17 11:09 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-devel@lists.openembedded.org

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

You are right, this can probably be removed now. Ive tested it in my environment and it seems to work. Iam just not shure, if the dependency to zero-mq-dev is still included, since this is direcly needed by cppzmq-dev. My Target-SDK shows up both of them, so probably yes.

Janitza electronics GmbH
Vor dem Polstück 6 | 35633 Lahnau | Germany
Telefon +49 6441 9642-0

[https://images.eu.ctfassets.net/ihxhv4scj7gi/1hRLPvUi1h9d272tfHVq2L/05a63e9c406b36cfe4fb686ae909539d/Janitza-Logo_Claim_Black.png]<https://www.janitza.de/>

www.janitza.de<https://www.janitza.de/> | LinkedIn<https://www.linkedin.com/company/janitza-electronics-de/?viewAsMember=true> | <https://www.youtube.com/channel/UCraj3qQHQIqXIfcyUcAgpFw> YouTube<https://www.youtube.com/@Janitzaelectronics>


Geschäftsführer: Markus Janitza, Rudolf Müller, Alexander Veidt, Axel Hessenkämper

Handelsregister: HRB 928 Wetzlar
USt.-IdNr.: DE 112 616 565
Steuernummer: 02 02 365 0179

[cid:2024_signaturbanner_co2_de_c7563d38-b0b9-48f0-bac9-069d30e595ca.jpg]<https://www.janitza.com/de-de/unternehmen/co2-transparenz>

________________________________
Von: Khem Raj <raj.khem@gmail.com>
Gesendet: Freitag, 14. März 2025 18:59
An: Lukas Weiß <lukas.weiss@janitza.de>
Cc: openembedded-devel@lists.openembedded.org <openembedded-devel@lists.openembedded.org>
Betreff: Re: [oe] Problems adding cppzmq to Target-SDK

On Fri, Mar 14, 2025 at 7:47 AM Lukas Weiß via lists.openembedded.org
<lukas.weiss=janitza.de@lists.openembedded.org> wrote:
>
> I found a solution, this is a problem in recipe. Patch is attached.
>

If we allow empty main package then do we still need

RDEPENDS:${PN}-dev = "zeromq-dev zeromq-staticdev"
DEV_PKG_DEPENDENCY = ""

can you check your usecase without these settings?

>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#115985): https://lists.openembedded.org/g/openembedded-devel/message/115985
> Mute This Topic: https://lists.openembedded.org/mt/111525960/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>

[-- Attachment #2.1: Type: text/html, Size: 9196 bytes --]

[-- Attachment #2.2: 2024_signaturbanner_co2_de_c7563d38-b0b9-48f0-bac9-069d30e595ca.jpg --]
[-- Type: image/jpeg, Size: 182903 bytes --]

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

end of thread, other threads:[~2025-03-17 11:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-05 10:56 Problems adding cppzmq to Target-SDK Lukas Weiß
2025-03-05 14:13 ` [oe] " Khem Raj
2025-03-14 14:47 ` Lukas Weiß
2025-03-14 17:59   ` [oe] " Khem Raj
2025-03-17 11:09     ` AW: " Lukas Weiß

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.