Boost libraries on Android

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

    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.

  • Lifetime Qt Champion

    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

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

  • Lifetime Qt Champion

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

Log in to reply

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