简体   繁体   中英

Building gRPC for Qt / Android

I currently have a Qt for Android application and would like to use the gRPC framework in my project in order to have a mobile device function as a gRPC client.

I'm struggling to find a good starting point on this, I've read through the gRPC Github pages and noticed an Android/C++ example which I got to run but I just want a library I can drop into Qt. There are also some mentions of it compiling via the NDK so it sounds do-able

This isn't an area I'm too familiar with, would anyone with any experience here be able to advise?

Any assistance is appreciated

I'm not familiar with qt in Android. but answering your question is easy.

You can define a module for network communication and implement gRPC-java on it and use from this module in your qt codes!

This module must be android-library or java type module. Checking this repos are useful for you

I use this way to implements gRPC in my application and wrapped all gRPC codes and classes in a separate module !

Whole project are present on my github. You can check it out from here (It fixed and working)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM