Closed WanWizard closed 2 weeks ago
Hi! Thank you so much for the report. Glad to hear redsea being used in a new platform. Unfortunately I'm not familiar with OpenEmbedded; can you explain to me
Oh, just one more question @WanWizard : you mentioned that it 'breaks the build' - does this mean there is a build pipeline for building redsea on OpenEmbedded somewhere? Can I see the whole pipeline and set of commands?
Thanks in advance for your patience answering these!
We ( https://openpli.org https://github.com/openpli ) use OpenEmbedded as OS for DVB compliant set top boxes, on which we run a custom application to provide all A/V functionality. Amongst which is support for RTL-SDR USB audio.
OpenEmbedded uses bitbake ( https://github.com/openembedded/bitbake ) to build, which is a very complex "make" system, which uses python classes to support a variety of build environment, like meson ( https://github.com/openembedded/openembedded-core/blob/kirkstone/meta/classes/meson.bbclass ), so in the actual build recipe, you only have to define you want to use meson, and bitbake does the rest: https://github.com/OpenPLi/openpli-oe-core/blob/Kirkstone/meta-openpli/recipes-multimedia/redsea/redsea.bb
The bitbake meson.bbclass hardcoded defines "--wrap-mode", I'm currently looking at ways to override it.
Managed to override the meson.bbclass and removed the "nodownload", but now got stuck with the download failing:
Looking for a fallback subproject for the dependency nlohmann_json
Downloading nlohmann_json source from https://github.com/nlohmann/json/releases/download/v3.11.2/include.zip
<urlopen error [Errno -2] Name or service not known>
WARNING: failed to download with error: could not get https://github.com/nlohmann/json/releases/download/v3.11.2/include.zip is the internet available?. Trying after a delay...
<urlopen error [Errno -2] Name or service not known>
WARNING: failed to download with error: could not get https://github.com/nlohmann/json/releases/download/v3.11.2/include.zip is the internet available?. Trying after a delay...
<urlopen error [Errno -2] Name or service not known>
WARNING: failed to download with error: could not get https://github.com/nlohmann/json/releases/download/v3.11.2/include.zip is the internet available?. Trying after a delay...
<urlopen error [Errno -2] Name or service not known>
WARNING: failed to download with error: could not get https://github.com/nlohmann/json/releases/download/v3.11.2/include.zip is the internet available?. Trying after a delay...
<urlopen error [Errno -2] Name or service not known>
WARNING: failed to download with error: could not get https://github.com/nlohmann/json/releases/download/v3.11.2/include.zip is the internet available?. Trying after a delay...
<urlopen error [Errno -2] Name or service not known>
A fallback URL could be specified using source_fallback_url key in the wrap file
../git/meson.build:42:7: ERROR: could not get https://github.com/nlohmann/json/releases/download/v3.11.2/include.zip is the internet available?
which is rubbish, as it can clone the redsea repo without problems,. and also a wget of that URL works fine.
More work to do...
Just a thought, would it be possible to install the nlohmann-json library via the same mechanism that provides the liquid and sndfile dependencies? In that case, meson would find the library and not fall back to its own http fetch.
Meson has its own http fallback here only because I provided a "wrap file" for nlhomann-json, just in case it's not available in all distros.
Always handy to have a second pair of eyes look at it. Creating the dependency at bitbake level, like sndfile, fixed the build, thanks !
Still puzzled though why python wasn't able to resolve github and download the zip though...
After https://github.com/windytan/redsea/commit/81eea4b26b60fecbc6496fbac924ebd8816819a6, redsea can no longer be built by OpenEmbedded, because it's meson build class uses
--wrap-mode nodownload
.