Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Is anyone using Google Protocol Buffers in a cross-platform project?

Is anyone using Google Protocol Buffers in a cross-platform project?

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
5 Posts 3 Posters 1.2k 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.
  • StokestackS Offline
    StokestackS Offline
    Stokestack
    wrote on last edited by
    #1

    Hi all.

    Nobody in the Google forum appears to know or want to answer this, but it's creating major aggravation.

    I'm building a cross-platform application that relies on protocol buffers. Therefore, I want to build the protobuf runtime (for C++) as part of the build for each platform and architecture that I'm targeting with my project.

    I've tried bringing what appears to be the necessary subset of Google's source into a Qt project (as a subproject) and building it into a lib. It builds, but any attempt to use it results in hundreds of "symbol not found" errors (despite symbols being present in the lib).

    I find it perplexing that this isn't a common scenario. Does anyone know how to resolve this problem?

    Thanks!

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      hi
      not a solution but i did wonder one thing.
      Normally PB builds as a shared library on all supported platforms.
      It requires pkg-config --cflags to setup flags to work properly so im not sure
      it is remotely possible to grab some of the code and get it to work.

      Why not use the included setup info to build as intended on each on your platform and simply link
      to the dll/so files in Qt ?
      I dont think you can build it with qmake alone.
      So integrating building it in the same project is most likely not possible.

      1 Reply Last reply
      2
      • StokestackS Offline
        StokestackS Offline
        Stokestack
        wrote on last edited by Stokestack
        #3

        Thanks for your reply.

        As far as I know, I can't build on each platform individually because I don't have them accessible. There are at least three flavors of Android for various processor types, then Mac OS, Windows, and iOS.

        iOS is an example of the problem: I can't really shell into an iOS environment and install all these tools and build there.

        Does that answer this question of yours: "Why not use the included setup info to build as intended on each on your platform"?

        mrjjM 1 Reply Last reply
        0
        • StokestackS Stokestack

          Thanks for your reply.

          As far as I know, I can't build on each platform individually because I don't have them accessible. There are at least three flavors of Android for various processor types, then Mac OS, Windows, and iOS.

          iOS is an example of the problem: I can't really shell into an iOS environment and install all these tools and build there.

          Does that answer this question of yours: "Why not use the included setup info to build as intended on each on your platform"?

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Stokestack
          Hi
          yes it answers it fine. I see your predicament.
          I wish you good luck.

          1 Reply Last reply
          1
          • M Offline
            M Offline
            maxwell31
            wrote on last edited by
            #5

            We do using cmake. Do you use cmake?

            1 Reply Last reply
            0

            • Login

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