Using Qt GRPC on Ubuntu 24.04.3 LTS x86_64
-
Hi all,
I am using Ubuntu 24.04 and I am installing Qt via APT packages. The installed Qt version is:
$ qmake6 --version QMake version 3.1 Using Qt version 6.4.2 in /usr/lib/x86_64-linux-gnuNow, I am trying to use Qt GRPC for a client in my Qt app such that I connect to an external gRPC server. However, there isn't a qt6-grpc APT package on the stable sources for Ubuntu. My questions are:
- what's the cleanest way to use gRPC with my App?
- what are the alternatives out there? I wish to not change OS.
- could I not use Qt gRPC at all and directly use the "usual" C++ gRPC library? pros, cons?
-
Hi and welcome to devnet,
That module is available since Qt 6.5.
You have basically two options:
- Try to build it yourself against 6.4
- Use the online Qt installer and install a more recent version of Qt in your home folder.
Using gRPC directly means that you will have to implemented all the low-level details and integration with the event loop done by the QtGRPC module.