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


Can you take a look at
https://github.com/grpc/grpc/blob/master/test/distrib/cpp/run_distrib_test_raspberry_pi.sh
and see if some of those options are useful either compiling gRPC or
your app ?

also check this patch
https://git.openembedded.org/meta-openembedded/commit/?id=38f6ef9b1432cbafd416ec162b0a30366311095b

especially how it looks for libcares, might give some ideas how to solve
this issue perhaps.

> 
> Thanks for the help,
> 
> Kind regards,
> Goran Broeckaert
> 
> 
> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#142337): 
https://lists.openembedded.org/g/openembedded-core/message/142337
Mute This Topic: https://lists.openembedded.org/mt/76731562/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to