Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Boost libraries on Android

    Mobile and Embedded
    2
    4
    2759
    Loading More Posts
    • 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.
    • R
      Rubin Stove last edited by

      Hello,

      I am trying to use boost with my qt app which runs on android as well. I am having troubles including the boost libs for android. I downloaded the boost libs for android from below location.
      https://github.com/emileb/Boost-for-Android-Prebuilt
      I am using the following lines in .pro file to include the boost libs

      if (android)
      {
      INCLUDEPATH += $$PWD/../pathToBoostHeaders
      equals(ANDROID_TARGET_ARCH, armeabi-v7a){
      LIBS += -L$$PWD/../pathToBoostLibs
      libboost_atomic-gcc-mt-1_53.a
      }
      }

      But complains that it cannot find libboost_atomic-gcc-mt-1_53.a. Can you please suggest what might be wrong & how to include boost libs for android into my qt app.. Thanks in advance.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        From the looks of it, your LIBS line has an error, it should rather be -lboost_atomic-gcc-mt-1_53

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

        R 1 Reply Last reply Reply Quote 1
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          Hi and welcome to devnet,

          From the looks of it, your LIBS line has an error, it should rather be -lboost_atomic-gcc-mt-1_53

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

          R 1 Reply Last reply Reply Quote 1
          • R
            Rubin Stove @SGaist last edited by

            @SGaist Thanks a many lot for the welcome & the answer. It works now :-)

            1 Reply Last reply Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              You're welcome !

              Since you have it working now, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)

              Also, while browsing the forum, please consider up-voting answers that helped you. That will make them easier to find for other users :)

              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 Reply Quote 0
              • First post
                Last post