I think you may just be linking incorrectly, that method is part of the grpc core https://grpc.io/grpc/core/alloc_8h.html
for example, one of the errors is:
/home/jay/works_Versa_imx7/xgrpc_server/src/libgrpc.a(httpcli.cc.o): In function `append_error':
/usr/src/debug/grpc/1.8.5-r0/git/src/core/lib/http/httpcli.cc:124: undefined reference to `gpr_free'
So inside libgrpc.a(httpcli.cc.o) the function append_error is calling gpr_free.
I guess I am missing some libraries.
I did a cross compilation a grpc within YOCTO and ended up with the following libraries:
libgrpc.a
libgrpc_cronet.a
libgrpc++_error_details.a
libgrpc++_reflection.a
libgrpc++_unsecure.a
libprotobuf-c.a libgrpc++.a
libgrpc++_cronet.a
libgrpc_plugin_support.a
libgrpc_unsecure.a
libprotobuf.a
libprotobuf-lite.a
When I compile the greeter_server within Eclipse, I get lots of errors of classes not recognized. I presume these classes are defined in libraries.
Does anyone know which libraries do I need to include in Eclipse project?
Thanks, S
Still having lots of issues to cross compile.
Is it a good strategy to give up on libraries and instead compile the source code?
If so, does anyone knows which source code is required to be able to cross-compile the greeter_server example?
~/grpc/src/cpp$ ls -l total 32 drwxrwxr-x 2 jay jay 4096 Aug 24 15:04 client drwxrwxr-x 2 jay jay 4096 Aug 24 15:04 codegen drwxrwxr-x 2 jay jay 4096 Aug 24 15:04 common drwxrwxr-x 2 jay jay 4096 Aug 24 15:04 ext -rwxrwxr-x 1 jay jay 1170 Aug 24 15:04 README.md drwxrwxr-x 3 jay jay 4096 Oct 23 10:59 server drwxrwxr-x 2 jay jay 4096 Aug 24 15:04 thread_manager drwxrwxr-x 2 jay jay 4096 Aug 24 15:04 util
Is it source code in ~/grpc/src/cpp/server directory and ~/grpc/src/cpp/common directory I need to include?
Tx, S.
--
You received this message because you are subscribed to the Google Groups " grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CANmTPBYN__MkReUKXtuPqdVUQrB6pKn%2B9mOhJA0J6TTQYD5a0g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/F85A1DE2-EAD5-440C-A960-7CB9D5D03486%40earthlink.net.
For more options, visit https://groups.google.com/d/optout.
|