Add static libary of windows --.lib-- in project Qt/Adroid [solved]



  • I'm using the protobuf and logQt4 in my project, however i can not add in project.

    I tried add normally
    LIBS += -L$$PWD/../../../libraries/protobuf/vsprojects/Debug/ -- without success

    Declare it as android depencies
    ANDROID_DEPLOYMENT_DEPENDENCIES = $$PWD/../../../libraries/protobuf/vsprojects/Debug/libprotobuf.lib

    And change the res/values/libs.xml, also without success =/, but i see that in android_armv7/lib that all files are .so --linux static library --

    Then, this is true, him just "read" the .so?

    *Other form that i tried was including dependencies directly in my project --projects->Run->Deploy Configurations->Aditional Libraries-- and when clicked to select a library, just is possible select .so files

    Thank's....


  • Lifetime Qt Champion

    Hi,

    You need to compile protobufs for android first



  • And another lib that i use in my project is the logQt4, this also have to compile to android

    -- I find how to build protobuf the Anroid

    And in Qt/Android(or all android case) just is possible read linux static libraries?


  • Lifetime Qt Champion

    If you are thinking about taking your linux distributions libraries and stick them there, no not like that.



  • Ok, compile my libs with ndk solve the problem...

    Thank's


  • Lifetime Qt Champion

    You'r welcome !

    Since you have your libraries now, please update the head title prepending [solved] so other forum users may know a solution has been found :)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.