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. Boost libraries on Android

Boost libraries on Android

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 2 Posters 3.0k 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.
  • R Offline
    R Offline
    Rubin Stove
    wrote on last edited by
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      1
      • SGaistS SGaist

        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

        R Offline
        R Offline
        Rubin Stove
        wrote on last edited by
        #3

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

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

          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
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved