Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Build Qt with gRPC using cmake in Linux
Forum Updated to NodeBB v4.3 + New Features

Build Qt with gRPC using cmake in Linux

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 362 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jack reemoon
    wrote on last edited by
    #1

    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
    d53dc9bc-7774-4dc7-89ae-80bed6548388-image.png

    jsulmJ 1 Reply Last reply
    0
    • J jack reemoon

      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
      d53dc9bc-7774-4dc7-89ae-80bed6548388-image.png

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @jack-reemoon If I'm not mistaken the missing header file belongs to https://abseil.io/
      Is this library installed?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jack reemoon
        wrote on last edited by
        #3

        It's OK, need separate installation?d1b3ca34-22db-4f76-ae5f-93a0a51793ec-image.png
        de532b14-dd25-4fde-a2d6-80314117cd46-image.png

        1 Reply Last reply
        0
        • B Offline
          B Offline
          Bonnie
          wrote on last edited by
          #4

          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 Reply Last reply
          2

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved