Closed Int3rC3pt0r closed 9 months ago
You were looking at a Yocto image, but meta-iot2050 is Isar, i.e. bitbake for plumbing Debian packages together. If Mono is sufficient as well: apt update; apt install mono-runtime
. Otherwise, a bit more effort might be needed to port the logic from the Yocto recipes into a Debian package via Isar. But as MS .NET is binary only, you just need a dpkg-raw
recipe that fetches the bins and installs them.
Oh, you already played with that (just read "yocto" before): Debian has https://packages.debian.org/bookworm/liblttng-ust1, that may resolve the missing dep. There is also https://learn.microsoft.com/en-us/dotnet/iot/deployment which suggests that it just works on Raspian which is basically Debian.
Thanks for the quick reply! Using liblttng-ust1 sadly doesn't work either (still gives the same error with liblttng-ust.so.0). Also Mono isn't really an option for me. The thing is that the build already worked with Debian 10 before the move to liblttng-ust1 in Debian 12. My main problem is that the command patchelf
is not recognized even though it is included in the build dependencies.
Thanks again, Thomas
Hi @Int3rC3pt0r, I made a similar recipe, but for aspnetcore-runtime with the following deps:
DEBIAN_DEPENDS = "libc6, libgcc-s1, libgssapi-krb5-2, libicu72, liblttng-ust1, libssl3, libstdc++6, zlib1g"
In addition I create a rules
file with the following content:
#!/usr/bin/make -f
%:
dh $@
override_dh_strip:
true
override_dh_shlibdeps:
true
Hope this helps.
Best regards, Stefano.
Thanks for reminding! That was discussed in https://github.com/siemens/meta-iot2050/issues/439.
@SCordibella this seems to have done the trick and the build ran trough! Thank you very much 😁.
Hello,
I am trying to include
dotnet-core 6.0.26
in the image for my iot2050. Therefore I tried to create a recipe based on Robert Dunkleys meta-dotnet-core like this, where dotnet core is directly downloaded form microsoft:dotnet-core_6.0.26.bb:
dotnet-core_6.x.x.inc:
The problem is that when running the kas-container, I get the error
/build/tmp/work/iot2050-debian-arm64/dotnet-core/6.0.26-r0/temp/run.do_install.142: 101: patchelf: not found
, even though patchelf is included in the dependencies. When i run the build without patchelf i get the errordpkg-shlibdeps: error: cannot find library liblttng-ust.so.0 needed by debian/dotnet-core/usr/share/dotnet/shared/Microsoft.NETCore.App/6.0.26/libcoreclrtraceptprovider.so (ELF format: 'elf64-littleaarch64' abi: '020100b700000000'; RPATH: '')
.I am still new to kas/isar/yocto, so any help and insight would be appreciated.
Thanks in advance, Thomas