Re: [OE-core] Application depending on gRPC not linking properly

2020-09-11 Thread Stefan Herbrechtsmeier
Hi, Am 09.09.20 um 14:56 schrieb Goran Broeckaert: I have a simple application which depends on grpc. I'm using Yocto Zeus for my project and I've written the following recipe: [snip] The linker tries to link with the -native version of gRPC instead of the target one. Can be seen in the

Re: [OE-core] Application depending on gRPC not linking properly

2020-09-11 Thread Goran Broeckaert
I have been able to fix it by searching for the right grpc libraries in the recipe-sysroot: find_library(GRPC_LIBRARY grpc++ HINTS ${CMAKE_SOURCE_DIR}/recipe- sysroot) if (GRPC_LIBRARY-NOTFOUND) message(FATAL_ERROR "Could not find grpc++") endif () find_path(GRPC_INCLUDE_DIR grpc++/grpc++.h

Re: [OE-core] Application depending on gRPC not linking properly

2020-09-09 Thread Khem Raj
On 9/9/20 5:56 AM, Goran Broeckaert wrote: > Hello, > > I have a simple application which depends on grpc. I'm using Yocto Zeus > for my project and I've written the following recipe: > > DESCRIPTION = "Test Application" > LICENSE = "CLOSED" > LIC_FILES_CHKSUM = "" > > SRC_URI = "\ >

[OE-core] Application depending on gRPC not linking properly

2020-09-09 Thread Goran Broeckaert
Hello, I have a simple application which depends on grpc. I'm using Yocto Zeus for my project and I've written the following recipe: DESCRIPTION = "Test Application" LICENSE = "CLOSED" LIC_FILES_CHKSUM = "" SRC_URI = "\ git://git/dev/test-application.git;protocol=ssh;branch=yocto;name=testapp \