Forums

OverviewFelgo 2 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

    Tahar

    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

    Tahar

    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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support