Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-30450

build Qt fails with android-ndk-r8e

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.1.0 Beta 1, 5.1.0
    • 5.1.0
    • Core: Threads
    • None
    • Kubuntu 12.10 32-bit
    • 786c790176461dbccc130d675b964017088105b7

    Description

      I've download latest android-ndk-r8e
      android-ndk-r8e-ma-linux-x86.7z from http://code.google.com/p/mingw-and-ndk/downloads/list

      git clone git://gitorious.org/qt/qt5.git qt5
      ...
      
      ./configure -prefix $PWD/qtbase -release -opensource -confirm-license -xplatform android-g++ -android-ndk /opt/android-ndk-r8e-ma -android-sdk /opt/android-sdk-linux \
       -nomake tests -nomake tools -nomake examples -nomake demos \
       -skip qtwebkit -skip qtwebkit-examples-and-demos -skip qtscript -skip qttools -skip qtdoc -skip qtqa -skip qtactiveqt -skip qtquick1
      
      make
      

      build fails

      /opt/android-ndk-r8e-ma/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ -c -Wno-psabi -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -DANDROID -Wa,--noexecstack -std=gnu++0x -O2 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wno-psabi -W -D_REENTRANT -fPIC -DQT_NO_PRINTDIALOG -DQT_NO_LIBUDEV -DQT_NO_XCB -DQT_NO_USING_NAMESPACE -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DPCRE_HAVE_CONFIG_H -DQT_CORE_LIB -DQT_NO_DEBUG -I../../mkspecs/android-g++ -I. -I../../include -I../../include/QtCore -I../../include/QtCore/5.1.0 -I../../include/QtCore/5.1.0/QtCore -Iglobal -I../3rdparty/pcre -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I../3rdparty/sha3 -I.moc/release-shared -I/opt/android-ndk-r8e-ma/sources/cxx-stl/gnu-libstdc++/4.7/include -I/opt/android-ndk-r8e-ma/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi-v7a/include -I/opt/android-ndk-r8e-ma/platforms/android-9/arch-arm/usr/include -o .obj/release-shared/qwaitcondition_unix.o thread/qwaitcondition_unix.cpp
      thread/qwaitcondition_unix.cpp: In function 'void qt_initialize_pthread_cond(pthread_cond_t*, const char*)':
      thread/qwaitcondition_unix.cpp:75:61: error: 'pthread_condattr_setclock' was not declared in this scope
      

      reason:
      limits.h in the new toolchain contains

      #define  _POSIX_MONOTONIC_CLOCK     0    /* the monotonic clock may be available; ask sysconf */
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            spise Andrew Sposobin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes