Please nominate your Qt Champions for 2021!

STL on android

  • Hi,

    I'm trying to compile a Qt project for adroid against a library that uses STL. Linking fails due to STL symbols not being found. Googling around I found that this could be overcome by defining following in

    APP_STL := stlport_static
    APP_CPPFLAGS += -fexceptions

    Is there some way replicate this using qt and qmake?

  • As a temporary solution, I manually linked against the libstlport_static.a library but this of course breaks if a different target arch is selected or something changes in android ndk paths.

    So, proper solution still welcome.

Log in to reply