Skip to contentSkip to conversation

Problems adding cppzmq to Target-SDK

DISCUSSION Lukas Weiß 2 participants 5 messages Mar 5, 2025 – Mar 17, 2025

lore
Share & tools
lore
#0 lore raw

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:

Quoted 4 lines

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:

Quoted 4 lines

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...

#1 lore raw
Quoted 6 lines · Lukas Weiß via lists.openembedded.org

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.

Quoted 22 lines

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: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
In reply to Lukas Weiß

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

meta-oe/recipes-connectivity/zeromq/cppzmq_4.10.0.bb +1 -1
index dcea339dfd..d5732e041e 100644
@@ -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 = ""
#3 lore raw
Quoted 3 lines · Lukas Weiß via lists.openembedded.org

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?

Quoted 9 lines

-=-=-=-=-=-=-=-=-=-=-=-
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: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw

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 <[email protected]>
Gesendet: Freitag, 14. März 2025 18:59
An: Lukas Weiß <[email protected]>
Cc: [email protected] <[email protected]>
Betreff: Re: [oe] Problems adding cppzmq to Target-SDK

Quoted 3 lines · Lukas Weiß via lists.openembedded.org

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?

Quoted 9 lines

-=-=-=-=-=-=-=-=-=-=-=-
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: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-