Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Build QtLocation for Android
Qt 6.12 LTS is out! See what's new in the release blog

Build QtLocation for Android

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 2.6k Views 1 Watching
  • 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.
  • O Offline
    O Offline
    onurozcelik
    wrote on last edited by
    #1

    Nowadays I am trying to build Qt 5.1.2 for Android(for armeabi libs)

    I figured out that Qt5 sources from git does not include QtLocation and some other modules.
    So I tried

    @git clone git://gitorious.org/qt/qtlocation.git qtlocation
    perl init-repository -f
    ./configure -android-toolchain-version 4.8 -android-arch armeabi -android-ndk-host linux-x86 -developer-build -xplatform android-g++ -nomake tests -nomake examples -android-ndk /home/onurozcelik/Android/android-ndk-r9/ -android-sdk /home/onurozcelik/Android/android-sdk-linux/ -skip qttools -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples
    make@

    After make I got the following error

    @ Entering directory /home/onurozcelik/qt5/qtlocation/src/3rdparty/poly2tri' make[3]: Nothing to be done for first'.
    make[3]: Leaving directory /home/onurozcelik/qt5/qtlocation/src/3rdparty/poly2tri' make[2]: Leaving directory /home/onurozcelik/qt5/qtlocation/src/3rdparty'
    cd location/ && ( test -e Makefile || /home/onurozcelik/qt5/qtbase/bin/qmake /home/onurozcelik/qt5/qtlocation/src/location/location.pro -o Makefile ) && make -f Makefile
    Project ERROR: Module does not define version.
    make[1]: *** [sub-location-make_first-ordered] Error 3
    make[1]: Leaving directory `/home/onurozcelik/qt5/qtlocation/src'
    make: *** [sub-src-make_first] Error 2@

    What is the problem? How can I build QtLocation for Android?

    1 Reply Last reply
    0
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      please make sure you have checked out "this commit":https://qt.gitorious.org/qt/qtlocation/commit/fe0499f0ba44ab7d1a22139d88fee03486ff8b59 in your repository.

      Btw. just so you know: it's very possible that QtLocation doesn't even work on Android.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

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