Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-19835

Code model doesn't work with Android NDK r10e

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • None
    • Qt Creator 4.5.1, Qt Creator 4.6.0-beta1
    • None
    • Gentoo Linux 64-bit.

    Description

      Neither of the code models (built-in and Clang) work when using Android NDK r10e.

      The error is usually something like this:

      qglobal.h:45:12: fatal error: 'type_traits' file not found
      QDebug:1:10: note: in file included from [...]

      This is displayed by the yellow warning sign at the top. As a result, the code model is completely broken for the rest of the file.

      In general, standard C++ headers cannot be found. Only standard C headers work. So this:

      #include <cstdio>

      appears underlined with the pop-up error message being "no such file or directory".

      But this:

      #include <stdio.h>

      works fine.

      The current stable Creator version (4.5.1) is affected, as is the 4.6 beta1 (installed though the maintenance tool), and the latest rc1 snapshot (Feb 15, from download.qt.io).

      Upgrading to NDK r16b fixes the issue. However, as far as I know, the last recommended NDK to use with Qt is r10e, which is recommended by Qt's documentation:

      https://doc.qt.io/qt-5/androidgs.html

      And I suppose this is because of this:

      https://github.com/android-ndk/ndk/issues/67

      So it would seem that it's very important to keep the code model working with NDK r10e.

      Attachments

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

        Activity

          People

            realnc Nikos Chantziaras
            realnc Nikos Chantziaras
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes