Build Qt with gRPC using cmake in Linux
-
wrote on 11 Feb 2022, 07:06 last edited by
-
my .pro
INCLUDEPATH += $$PWD/lgrpc/include
LIBS+= -L$$PWD/lgrpc/lib/ -lgrpc++
LIBS+= -L$$PWD/lgrpc/lib/ -lgrpc
LIBS+= -L$$PWD/lgrpc/lib/ -lgpr
LIBS+= -L$$PWD/lgrpc/lib/ -lz
LIBS+= -L$$PWD/lgrpc/lib/ -lprotobuf
LIBS+= -L$$PWD/lgrpc/lib/ -lgrpc++_reflection
@jack-reemoon If I'm not mistaken the missing header file belongs to https://abseil.io/
Is this library installed? -
wrote on 11 Feb 2022, 08:41 last edited by
-
wrote on 11 Feb 2022, 17:20 last edited by
But you didn't add that include dir to INCLUDEPATH and those libs to LIBS.
BTW, since you said "using cmake", why are you still using .pro files (which usually means using qmake)?
1/4