Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Add static libary of windows --.lib-- in project Qt/Adroid [solved]

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

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 2 Posters 1.5k 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.
  • L Offline
    L Offline
    lukasbady
    wrote on last edited by
    #1

    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....

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

      Hi,

      You need to compile protobufs for android first

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lukasbady
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

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

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lukasbady
            wrote on last edited by
            #5

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

            Thank's

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              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 :)

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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