Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!


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
  • #16026



    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.

    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





    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:

    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:

    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,




    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.