Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Building qt5.1 for android on mac
Forum Updated to NodeBB v4.3 + New Features

Building qt5.1 for android on mac

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 2.5k 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.
  • E Offline
    E Offline
    eSKon
    wrote on last edited by
    #1

    I'm trying to build qt5.1 beta on mac for android. Here is steps i passed:

    1. Installed Android SDK
    2. Installed Android NDK
    3. With NDK tools downloaded and installed neccessary platforms
    4. Made attempt to build qt
      Latest step is main problem now. I got following error during building:

    In file included from ./wtf/unicode/Unicode.h:34:0,
    from ./wtf/text/ASCIIFastPath.h:30,
    from ./wtf/text/WTFString.h:28,
    from wtf/DateMath.h:54,
    from wtf/DateMath.cpp:73:
    ./wtf/unicode/icu/UnicodeIcu.h:27:27: fatal error: unicode/uchar.h: No such file or directory

    Perhaps i can skip webkit building but i need webkit. As i understood problem is in lack of ICU library in installed android platforms. I.e. now i need build ICU. I cloned it from https://android.googlesource.com/platform/external/icu4c but now i just can't understand how to build it. How to run configure to configure ICU for android? How to build it? How to make icu library available for further qt build? Could anybody help?

    1 Reply Last reply
    0
    • E Offline
      E Offline
      eSKon
      wrote on last edited by
      #2

      Also i tryed following:

      1. Create folder icu4c-android
      2. cd icu4c-android
      3. git clone https://android.googlesource.com/platform/external/icu4c jni
      4. $NDK_ROOT/ndk-build
        And got errors:
        Android NDK: WARNING: Unsupported source file extensions in jni/i18n/Android.mk for module icui18n
        Android NDK: smpdtfst.h
        Compile++ thumb : icui18n <= dtptngen.cpp
        jni/i18n/dtptngen.cpp: In member function 'void icu_50::DateTimePatternGenerator::addICUPatterns(const icu_50::Locale&, UErrorCode&)':
        jni/i18n/dtptngen.cpp:420:68: error: 'dynamic_cast' not permitted with -fno-rtti
        jni/i18n/dtptngen.cpp:430:68: error: 'dynamic_cast' not permitted with -fno-rtti
        make: *** [obj/local/armeabi/objs/icui18n/dtptngen.o] Error 1

      I suspect i need run configure script but how to do it to configure for android?

      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