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

Android includes for NDK 10e not properly resolved

    XMLWordPrintable

Details

    Description

      1.) Setup your Creator for Android development

      2.) Close all projects and editor views

      3.) load qtconnectivity.pro in qtconnectivity module

      4.) select the android tool chain

      5.) configure the project

      6.) Load src/bluetooth/qlowenergycontroller_android.cpp

      Observe the C++ code model cannot resolve all headers. Click on "Show Details" for code model parse details. For starters it expects the following include path:

      sources/cxx-stl/gnu-libstdc++/4
      

      which does not exist. sources/cxx-stl/gnu-libstdc++ only has a 4.9 and 4.8 subdirs. The Android kit seems to generate wrong details.
      As second step (after manually creating the "4" directory as sym link to the 4.9 compiler further errors appear:

      math.h:497:8: error: function declared 'aapcs' here was previously declared without calling convention
      qlowenergycontroller_android.cpp:1:1: note: in file included from /home/ablasche/dev/qt/qt511android/qtconnectivity/src/bluetooth/qlowenergycontroller_android.cpp:1:
      qlowenergycontroller_android.cpp:40:10: note: in file included from /home/ablasche/dev/qt/qt511android/qtconnectivity/src/bluetooth/qlowenergycontroller_android.cpp:40:
      qlowenergycontroller_android_p.h:55:10: note: in file included from /home/ablasche/dev/qt/qt511android/qtconnectivity/src/bluetooth/qlowenergycontroller_android_p.h:55:
      qglobal.h:1:10: note: in file included from /home/ablasche/dev/qt/qt511android/qtbase/include/QtCore/qglobal.h:1:
      qglobal.h:142:10: note: in file included from /home/ablasche/dev/qt/qt511android/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:142:
      algorithm:62:10: note: in file included from /home/ablasche/java/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4/include/algorithm:62:
      stl_algo.h:66:10: note: in file included from /home/ablasche/java/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4/include/bits/stl_algo.h:66:
      random:38:10: note: in file included from /home/ablasche/java/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4/include/random:38:
      cmath:44:10: note: in file included from /home/ablasche/java/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4/include/cmath:44:
      math.h:497:8: note: previous declaration is here
      

       

      Attachments

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

        Activity

          People

            vikas Vikas Pachdha
            ablasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes