Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Can't build Qt 5.1 (cross-compiling Android) for Mac

Can't build Qt 5.1 (cross-compiling Android) for Mac

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 3 Posters 2.6k 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.
  • T Offline
    T Offline
    tucnak
    wrote on last edited by
    #1

    Hello!

    I can't build latest Qt from Git for Mac with this configure:
    @
    configure -prefix /usr/local/Digia/Qt5.1-rc1-android -release -shared -opensource -c++11 -nomake examples -nomake tests -nomake tools -confirm-license -developer-build -xplatform android-g++ -android-ndk /usr/local/Android/ndk -android-sdk /usr/local/Android/sdk -android-ndk-host darwin-x86_64 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples
    @

    Instead of it I get this error in my error log:
    @
    Creating qmake...
    Running configuration tests...
    Warning: Disabling pkg-config since PKG_CONFIG_LIBDIR is not set.
    Warning: Disabling pkg-config since PKG_CONFIG_SYSROOT_DIR is not set.

    Could not determine the target architecture!
    Turn on verbose messaging (-v) to see the final report.

    Could not determine the host architecture!
    Turn on verbose messaging (-v) to see the final report.
    STL functionality check failed! Cannot build Qt with this STL library.
    @

    And, of course I use latest g++ and gcc in PATH.

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

      Hi,

      May I suggest that you modify your thread's title ? This one doesn't imply that your are trying to cross compile for Android thus you'll might miss some help.

      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
      • T Offline
        T Offline
        tucnak
        wrote on last edited by
        #3

        [quote author="SGaist" date="1372246583"]Hi,

        May I suggest that you modify your thread's title ? This one doesn't imply that your are trying to cross compile for Android thus you'll might miss some help.[/quote]

        done.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tk.fs
          wrote on last edited by
          #4

          adding -android-ndk-platform android-19 (android-19 being an installed platforms in you android-ndk/platforms folder) solved this issue for me.

          it seems the default ndk-platform used is no longer supplied with current editions of the android ndk for mac os x

          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