Hi Clément,

Thanks for the question.

On 2/22/2021 5:49 PM, Clément Péron wrote:
Hi Anatol,


On Fri, 19 Feb 2021 at 13:40, Anatol Belski
<[email protected]> wrote:
This is a really huge jump in versions, but this package has been not
upgraded for quite some time. The previous patches are not necessary
anymore, they're integrated upstream.
This version of gRPC generate a new CMake gRPCTargets.cmake
recipe-sysroot/usr/lib/cmake/grpc/gRPCTargets.cmake

This generate an error in my build:
Because this CMake declare a
recipe-sysroot/usr/bin/grpc_cpp_plugin

but this file does not exist.  Possible reasons include:
|
|   * The file was deleted, renamed, or moved to another location.
|
|   * An install or uninstall procedure did not complete successfully.
|
|   * The installation package was faulty and contained

In my project i'm using the CMake example from gRPC
https://github.com/grpc/grpc/blob/master/examples/cpp/cmake/common.cmake#L114

This error is triggered by:
find_package(gRPC 1.35.0 CONFIG REQUIRED)

FYI My recipes depends on grpc and grpc-native
PACKAGECONFIG[grpc] = "-DCONFIG_GRPC=ON,-DCONFIG_GRPC=OFF,grpc grpc-native"

Do you have an example of a gRPC recipe?

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

$ 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. Also, do you inherit cmake in your 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.

Regards

Anatol






-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#89804): 
https://lists.openembedded.org/g/openembedded-devel/message/89804
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