Qt World Summit: Register Today!

Compile QtLocation for android [install_target]

  • QtLocation, checked out version 5.4.1 comiles for windows, not for android:
    makefile:953: recipe for target 'install_target' failed
    mingw32-make: *** [install_target] Error 1
    16:06:30: The process "I:\Qt\Qt5.4.1_Android\Tools\mingw491_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project mapviewer (kit: Android for armeabi-v7a (GCC 4.8, Qt 5.4.1))
    When executing step "Copy application data"

    This has to do with the https://bugreports.qt.io/browse/QTBUG-37718 and https://bugreports.qt.io/browse/QTBUG-37638

    I have tried CONFIG -= android_install but didn't help.

    Any suggestions how to compile it for Android? For those that have managed, does QtLocation work for Android? iOS?

  • By just uncommenting the line:
    #INSTALLS += target additional

    in mapviewer.pro,

    It runs up and shows the map on my android phone, great!