Hi Stefan,

Le mar. 2 mars 2021 à 19:38, Stefan Herbrechtsmeier <
[email protected]> a écrit :

> Hi,
>
> Am 02.03.21 um 19:22 schrieb Anatol Belski:
> >
> > On 3/2/2021 5:06 PM, Clément Péron wrote:
> >>> I don't use this feature from the grpc package, only linking against
> the
> >>> libs. However I don't see why this should be an issue, as all the
> >>> *.cmake files are packaged. I see that in the RPMs but also in a recipe
> >>> of a dependent packgae like this
> >> Yes the cmake file is found but not the grpc_cpp_plugin.
> >>
> >> This is due to cmake looking for the grpc_cpp_plugin in the target
> >> sysroot instead of the native/host sysroot.
> >>
> >>> $ ls -l ./tmp/work/*/*/*/recipe-sysroot/usr/lib/cmake/grpc/*.cmake
> >>>
> >>> Or use recipe-sysroot-native depending on the consuming recipe.
> >>>
> >>> Just a wild guess here - does your recipe put 'grpc' into DEPENDS or
> >>> RDEPENDS, etc.
> >> In my recipe I put 'grpc' and 'grpc-native' into DEPENDS using
> >> PACKAGECONFIG
> >> PACKAGECONFIG[grpc] = "-DCONFIG_GRPC=ON,-DCONFIG_GRPC=OFF,grpc
> >> grpc-native"
> >>
> >>> Also, do you inherit cmake in your recipe?
> >> Yes i am indeed inheriting cmake and also systemd in my recipe
> >>
> >>> It seems to me
> >>> that it's more about how to use cmake files in  a recipe, as the
> >>> particularly mentioned files are packaged and pulled in a consuming
> >>> recipe.
> >> When I look in the files packaged the cmake file is indeed here.
> >> The issue is coming from the gRPCTargets.cmake
> >> (https://pastebin.com/bZay7cew)
> >> Line 159:
> >> # Create imported target gRPC::grpc_cpp_plugin
> >> add_executable(gRPC::grpc_cpp_plugin IMPORTED)
> >>
>
> [snip]
>
> > The executables seem only be useful for dev and thus only as native. At
> > this point it seems it's about going deep into debugging your recipe, as
> > seems there's no solution laying on the surface.
>
> This is a knowing issue and I have try to fix grpc but yocto is not a
> platform grpc officially support:
> https://github.com/grpc/grpc/pull/22498


This patch makes sense to me

Can't we include it in meta-oe ?

I will apply it locally anyway.

Thanks for your help
Clement



>
> The cmake package only works if you install the binaries but yocto
> doesn't install binaries for the target because otherwise cmake couldn't
> find the native binaries.
>
> Regards
>    Stefan
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#89814): 
https://lists.openembedded.org/g/openembedded-devel/message/89814
Mute This Topic: https://lists.openembedded.org/mt/80753655/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to