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 \
"

inherit cmake qmake5_paths

DEPENDS = "\
qtbase \
qtbase-native \
grpc \
grpc-native \
"

PV = "1.0+git${SRVPV}"

SRCREV_testapp = "c1dd51dd6c812a99f6af3e5b1c367a3155e5e96f"

S = "${WORKDIR}/git"

EXTRA_OECMAKE = "\
-DCMAKE_PREFIX_PATH=${WORKDIR}/recipe-sysroot/usr/ \
-DOE_QMAKE_PATH_EXTERNAL_HOST_BINS=${OE_QMAKE_PATH_EXTERNAL_HOST_BINS} \
-DCMAKE_CROSSCOMPILING=ON \
"

The linker tries to link with the -native version of gRPC instead of the
target one. Can be seen in the following line from the output:

recipe-sysroot-native/usr/lib/libgrpc++.so.1.24.1: error adding symbols:
file in wrong format

When checking the recipe-sysroot, the grpc libraries are properly
installed. There has been an issue opened on the grpc github, but it got
closed without specifying a solution:
https://github.com/grpc/grpc/issues/17708

Thanks for the help,

Kind regards,
Goran Broeckaert
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#142301): 
https://lists.openembedded.org/g/openembedded-core/message/142301
Mute This Topic: https://lists.openembedded.org/mt/76731562/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to