Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › How to build a third party lib for Android ( Google Protobuf )

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16026

    Felgo User

    Hi,

    I know this is not the right place to ask this question, but since you probably built and compiled so many cross platform libraries and source code to bring this SDK, I thought I should ask you.

    I want to install the Protobuf library for android, I followed this page and I built it and everything links and works fine when I run the project for Desktop.

    http://wiki.dreamrunner.org/public_html/C-C++/Library-Notes/Protobuf.html

    But when I build for Android, I get incompatible targets errors, I am using Linux mint 18, and here is how I linked to the library after installing it.

     

    INCLUDEPATH += /usr/local/include
    LIBS += /usr/local/lib/libprotobuf.a

     

     

    #16036

    Lorenz

    Hi Tahar,

    This sounds like you are trying to deploy a library, that is built for Desktop, to your Android phone. Of course this doesn’t work, as the library is built for x86 architecture, whereas your phone most likely uses the arm architecture.

    As far as I know, the Protobuf library is not available as pre-built C++ library for Android. However, you can have a look at this project:

    https://github.com/julienr/protobuf-android

    It’s a user effort to create exactly what you need. Of course thee is no guarantee that this works 😉

    As a second approach, you could also try to add the Protobuf Java SDK:

    https://github.com/google/protobuf/tree/master/java

    And use it via the Java Native Interface.

    Also, keep in mind that Android and iOS will need different libraries as well due to the different architectures.

    If you need help with the implementation, please send us an email with your detailed requirements so we can make you an offer.

    All the best,

    Lorenz

    #16053

    Felgo User

    OK, Thanks for the response, I will check that out.

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded