<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi Andrea,</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Andrea Galbusera <gizero@gmail.com><br>
<b>Sent:</b> Tuesday, May 1, 2018 16:06<br>
<b>To:</b> Martin Siegumfeldt<br>
<b>Cc:</b> yocto@yoctoproject.org<br>
<b>Subject:</b> Re: [yocto] Recipe availability through eSDK (cppzmq)</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi Martin,<br>
<br>
On Mon, Apr 30, 2018 at 9:10 PM, Martin Siegumfeldt <mns@gomspace.com> wrote:<br>
> Hi,<br>
><br>
> I am trying to build cppzmq through a Yocto (Rocko) generated eSDK. The search function does not return anything, despite the recipe being available through local recipe:<br>
><br>
> martin@dell:~/gomspace_sdk$ ls layers/meta-openembedded/meta-oe/recipes-connectivity/zeromq/<br>
> cppzmq_git.bb  files  zeromq_4.1.6.bb<br>
><br>
> I assume this is expected since it does not come prebuilt as part of the eSDK - is this correct understood?<br>
><br>
> Fortunately, 'devtool modify/build/package' generates the package - unfortunately it is not included in the subsequent image generation:<br>
><br>
> martin@dell:~/gomspace_sdk$ devtool package cppzmq<br>
> NOTE: Starting bitbake server...<br>
> NOTE: Starting bitbake server...<br>
> WARNING: Host distribution "ubuntu-17.10" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.<br>
> Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:03<br>
> Loaded 2773 entries from dependency cache.<br>
> Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:01<br>
> Parsing of 1968 .bb files complete (1960 cached, 8 parsed). 2780 targets, 305 skipped, 11 masked, 0 errors.<br>
> NOTE: Resolving any missing task queue dependencies<br>
> Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:00<br>
> Checking sstate mirror object availability: 100% |###########################################################################################################################################| Time: 0:00:00<br>
> NOTE: Executing SetScene Tasks<br>
> NOTE: Executing RunQueue Tasks<br>
> NOTE: Tasks Summary: Attempted 492 tasks of which 491 didn't need to be rerun and all succeeded.<br>
><br>
> Summary: There was 1 WARNING message shown.<br>
> NOTE: Your packages are in /home/martin/gomspace_sdk/tmp/deploy/ipk<br>
><br>
> martin@dell:~/gomspace_sdk$ devtool build-image<br>
> NOTE: Starting bitbake server...<br>
> WARNING: Host distribution "ubuntu-17.10" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.<br>
> Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00<br>
> Loaded 2773 entries from dependency cache.<br>
> Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:02<br>
> Parsing of 1968 .bb files complete (1960 cached, 8 parsed). 2780 targets, 305 skipped, 11 masked, 0 errors.<br>
><br>
> Summary: There was 1 WARNING message shown.<br>
> WARNING: Skipping recipe cppzmq as it doesn't produce a package with the same name<br>
<br>
This is the suspicious bit... If you look at the recipe, you'll notice<br>
it's re-defining the PACKAGES variable. Then, it's not generating a<br>
package called 'cppzmq', but only one named 'cppzmq-dev'. That said,<br>
I'm not sure why you'd want to add a package which only provides<br>
development headers to your target image...</div>
<div class="PlainText"><br>
</div>
<div class="PlainText">I understand your doubt here. The header file installed is a wrapper around zeromq and thus DEPENDS/RDEPENDS on this library. zeromq is included in the image, for which the SDK is generated, hence I would expect this to be a valid use
 case?</div>
<div class="PlainText"><br>
</div>
<div class="PlainText">Anyhow, I realized that the recipe does not even work in a BB environment - the following is encountered for an image including the package:</div>
<div class="PlainText"><br>
</div>
<div class="PlainText">
<div>ERROR: Nothing RPROVIDES 'cppzmq' (but /home/martin/work/z7000-distro-zcu102/poky/meta/recipes-core/images/core-image-minimal.bb RDEPENDS on or otherwise requires it)</div>
<div>NOTE: Runtime target 'cppzmq' is unbuildable, removing...</div>
<div>Missing or unbuildable dependency chain was: ['cppzmq']</div>
<div>ERROR: Required build target 'core-image-minimal' has no buildable providers.</div>
<div>Missing or unbuildable dependency chain was: ['core-image-minimal', 'cppzmq']</div>
<div><br>
</div>
<div class="PlainText">I wonder why this occurs when the recipe is indeed present:</div>
<div class="PlainText"><br>
</div>
<div class="PlainText">
<div>martin@dell:~/work/z7000-distro-zcu102/build$ bitbake-layers  show-recipes cppzmq</div>
<div>NOTE: Starting bitbake server...</div>
<div>WARNING: Host distribution "ubuntu-17.10" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.</div>
<div>Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00</div>
<div>Loaded 2773 entries from dependency cache.</div>
<div>Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:01</div>
<div>Parsing of 1968 .bb files complete (1961 cached, 7 parsed). 2780 targets, 305 skipped, 11 masked, 0 errors.</div>
<div><br>
</div>
<div>Summary: There was 1 WARNING message shown.</div>
<div>=== Matching recipes: ===</div>
<div>cppzmq:</div>
<div>  meta-oe              4.1.5+gitAUTOINC+68a7b09cfc</div>
<div><br>
</div>
</div>
<div class="PlainText">Br,</div>
<div class="PlainText">Martin</div>
<div class="PlainText"><br>
</div>
><br>
> Inspecting the manifest file confirms that the package is not installed - any idea why not? I also tried installing though sdk-install:<br>
><br>
> martin@dell:~/gomspace_sdk$ devtool sdk-install -s cppzmq<br>
> NOTE: Starting bitbake server...<br>
> WARNING: Host distribution "ubuntu-17.10" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.<br>
> Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00<br>
> Loaded 2773 entries from dependency cache.<br>
> Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:02<br>
> Parsing of 1968 .bb files complete (1961 cached, 7 parsed). 2780 targets, 305 skipped, 11 masked, 0 errors.<br>
><br>
> Summary: There was 1 WARNING message shown.<br>
> NOTE: Installing cppzmq...<br>
> WARNING: Host distribution "ubuntu-17.10" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.<br>
> Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:03<br>
> Loaded 2773 entries from dependency cache.<br>
> Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:01<br>
> Parsing of 1968 .bb files complete (1961 cached, 7 parsed). 2780 targets, 305 skipped, 11 masked, 0 errors.<br>
> NOTE: Resolving any missing task queue dependencies<br>
> Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:00<br>
> Checking sstate mirror object availability: 100% |###########################################################################################################################################| Time: 0:00:00<br>
> NOTE: Executing SetScene Tasks<br>
> NOTE: Executing RunQueue Tasks<br>
> NOTE: Tasks Summary: Attempted 487 tasks of which 477 didn't need to be rerun and all succeeded.<br>
><br>
> Summary: There was 1 WARNING message shown.<br>
> NOTE: Successfully installed cppzmq<br>
><br>
> Which also does not pick up the package upon image building:<br>
><br>
> martin@dell:~/gomspace_sdk$ IMAGE_INSTALL_append="cppzmq" devtool build-image<br>
> NOTE: Starting bitbake server...<br>
> WARNING: Host distribution "ubuntu-17.10" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.<br>
> Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00<br>
> Loaded 2773 entries from dependency cache.<br>
> Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:02<br>
> Parsing of 1968 .bb files complete (1961 cached, 7 parsed). 2780 targets, 305 skipped, 11 masked, 0 errors.<br>
><br>
> Summary: There was 1 WARNING message shown.<br>
> WARNING: No packages to add, building image nanocom-sdr-image unmodified<br>
><br>
> What am I missing here?<br>
><br>
> Thanks,<br>
> Martin<br>
> --<br>
> _______________________________________________<br>
> yocto mailing list<br>
> yocto@yoctoproject.org<br>
> <a href="https://lists.yoctoproject.org/listinfo/yocto" id="LPlnk699555" class="OWAAutoLink" previewremoved="true">
https://lists.yoctoproject.org/listinfo/yocto</a><br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>