Building grpc-included Protobuf using Bionic for Android

281 views
Skip to first unread message

zanella...@gmail.com

unread,
Sep 2, 2016, 6:21:52 AM9/2/16
to grpc.io
Hello!
I have to develop a full native software in c++ for an Android device. I'm using bionic toolchain to cross-compiling from Linux to Android platform.
I want to use grpc into the software so I included grpc as a plugin module of the software and I'm trying to compile it during entire building.
Now, the problem is that I have some conversion errors during grpc compilation (for example):
toolchains/arm/bionic/include/c++/4.8/memory:2630:34: error: invalid conversion from 'std::__1::unique_ptr<std::__1::__function::__base<void()>, std::__1::__allocator_destructor<std::__1::allocator<std::__1::__function::__func<std::__1::__bind<void (grpc::Server::*)(), grpc::Server* const>, std::__1::allocator<std::__1::__bind<void (grpc::Server::*)(), grpc::Server* const> >, void()> > > >::pointer {aka std::__1::__function::__base<void()>*}' to 'std::__1::__allocator_destructor<std::__1::allocator<std::__1::__function::__func<std::__1::__bind<void (grpc::Server::*)(), grpc::Server* const>, std::__1::allocator<std::__1::__bind<void (grpc::Server::*)(), grpc::Server* const> >, void()> > >::pointer {aka std::__1::__function::__func<std::__1::__bind<void (grpc::Server::*)(), grpc::Server* const>, std::__1::allocator<std::__1::__bind<void (grpc::Server::*)(), grpc::Server* const> >, void()>*}' [-fpermissive]
             __ptr_.second()(__tmp);

And I cannot compile protobuf included in the thirdy-part folder of grpc.
*** No rule to make target 'google/protobuf/compiler/main.cc', needed by 'google/protobuf/compiler/main.o'



Does anyone know how I can build grpc and protobuf using bionic toolchain? Does some project already exist?

Thank you.

kang joni

unread,
Sep 3, 2016, 4:16:23 AM9/3/16
to grpc.io
I had submitted grpc c++ on android, but sadly no response https://github.com/grpc/grpc/issues/7898 , I'll wait official ndk release that have been supporting exception unwinding c++_shared though.

zanella...@gmail.com

unread,
Sep 12, 2016, 6:18:13 AM9/12/16
to grpc.io
Any news?
Reply all
Reply to author
Forward
0 new messages