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. Bits/c++config.h missing
Forum Updated to NodeBB v4.3 + New Features

Bits/c++config.h missing

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 4 Posters 15.1k 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.
  • M Offline
    M Offline
    mpalfy
    wrote on 27 Mar 2014, 10:49 last edited by
    #1

    Hello,

    I'm totally new in QT Android development. I'm trying to run the sample application.

    https://qt-project.org/doc/qtcreator-2.8/creator-android-app-tutorial.html

    When I want to build it, i get this error message.

    11:47:39: Running steps for project accelbubble...
    11:47:39: Configuration unchanged, skipping qmake step.
    11:47:39: Starting: "D:\qtinstall\Tools\mingw48_32\bin\mingw32-make.exe"
    D:\android\android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++ -c -pipe -std=gnu++0x -g -g -gdwarf-2 -marm -O0 -fno-omit-frame-pointer -Wall -Wno-psabi -W -D_REENTRANT -fPIE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_QUICK_LIB -DQT_SVG_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DQT_SENSORS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I....\5.2.1\android_armv7\mkspecs\android-g++ -I..\accelbubble -I....\5.2.1\android_armv7\include -I....\5.2.1\android_armv7\include\QtQuick -I....\5.2.1\android_armv7\include\QtSvg -I....\5.2.1\android_armv7\include\QtQml -I....\5.2.1\android_armv7\include\QtWidgets -I....\5.2.1\android_armv7\include\QtXml -I....\5.2.1\android_armv7\include\QtSensors -I....\5.2.1\android_armv7\include\QtNetwork -I....\5.2.1\android_armv7\include\QtGui -I....\5.2.1\android_armv7\include\QtCore -I. -I......\android\android-ndk-r9d\sources\cxx-stl\gnu-libstdc++\4.8\include -ID:\android\android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/4.8/libs/default/armeabi-v7a/include -I......\android\android-ndk-r9d\platforms\android-19\arch-arm\usr\include -I. -o main.obj ..\accelbubble\main.cpp
    In file included from ......\android\android-ndk-r9d\sources\cxx-stl\gnu-libstdc++\4.8\include/algorithm:60:0,
    from ....\5.2.1\android_armv7\include/QtCore/qglobal.h:82,
    from ....\5.2.1\android_armv7\include/QtCore/qcoreapplication.h:45,
    from ....\5.2.1\android_armv7\include/QtGui/qguiapplication.h:45,
    from ....\5.2.1\android_armv7\include/QtGui/QGuiApplication:1,
    from ..\accelbubble\main.cpp:1:
    ......\android\android-ndk-r9d\sources\cxx-stl\gnu-libstdc++\4.8\include/utility:68:28: fatal error: bits/c++config.h: No such file or directory
    #include <bits/c++config.h>
    ^
    compilation terminated.
    makefile:810: recipe for target 'main.obj' failed
    mingw32-make: *** [main.obj] Error 1
    11:47:43: The process "D:\qtinstall\Tools\mingw48_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project accelbubble (kit: Android for armeabi-v7a (GCC 4.8, Qt 5.2.1))
    When executing step 'Make'
    11:47:43: Elapsed time: 00:04.

    Could anybody help, me to find the solution? I have already search all over the internet for solution :)

    Thank you.

    mpalfy

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 27 Mar 2014, 12:12 last edited by
      #2

      Hi and welcome to devnet,

      IIRC, I saw recently that the ndk r9d made some changes that might break things. You should have a look at the "bug report system":http://bugreports.qt-project.org , you might find something there.

      You can also ask on the interest mailing list (don't forget to subscribe first)

      Hope it helps

      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
      • M Offline
        M Offline
        mpalfy
        wrote on 31 Mar 2014, 13:13 last edited by
        #3

        Hi,

        Thank you, for the aswer. I downgraded the ndk to r9c, but i'm still having tha same problem.

        I tried to find some useful information at the bug tracker system, but i found nothing.

        Do anybody have any idea to solve my problem?

        Thank you.

        mpalfy

        1 Reply Last reply
        0
        • X Offline
          X Offline
          xanm
          wrote on 31 Mar 2014, 19:15 last edited by
          #4

          I had this problem after updating.
          Try previous version of NDK.

          1 Reply Last reply
          0
          • E Offline
            E Offline
            EdOfTheMountain
            wrote on 24 Jul 2014, 21:20 last edited by
            #5

            mpalfy,

            Have you had any success with running a Qt app on Android?

            I have same issue with r10. I rolled back to r8e and no improvement. I have tried Qt 5.2.1 and Qt 5.3.1.

            @
            16:10:07: Running steps for project qt-5-3-1-hello...
            16:10:07: Configuration unchanged, skipping qmake step.
            16:10:07: Starting: "/usr/bin/make"
            /Users/esutton/Qt5.3.1/5.3/android_armv7/bin/uic mainwindow.ui -o ui_mainwindow.h
            /Users/esutton/android/android-ndk-r10/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86/bin/arm-linux-androideabi-g++ -c -pipe -std=gnu++0x -g -g -gdwarf-2 -marm -O0 -fno-omit-frame-pointer -Wall -Wno-psabi -W -D_REENTRANT -fPIE -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../Qt5.3.1/5.3/android_armv7/mkspecs/android-g++ -I. -I../../../Qt5.3.1/5.3/android_armv7/include -I../../../Qt5.3.1/5.3/android_armv7/include/QtWidgets -I../../../Qt5.3.1/5.3/android_armv7/include/QtGui -I../../../Qt5.3.1/5.3/android_armv7/include/QtCore -I. -I. -I../../../android/android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.8/include -I/Users/esutton/android/android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.8/libs/default/armeabi-v7a/include -I../../../android/android-ndk-r10/platforms/android-19/arch-arm/usr/include -o main.o main.cpp
            In file included from ../../../Qt5.3.1/5.3/android_armv7/include/QtCore/qcompilerdetection.h:845:0,
            from ../../../Qt5.3.1/5.3/android_armv7/include/QtCore/qglobal.h:74,
            from ../../../Qt5.3.1/5.3/android_armv7/include/QtGui/qwindowdefs.h:45,
            from ../../../Qt5.3.1/5.3/android_armv7/include/QtWidgets/qwidget.h:45,
            from ../../../Qt5.3.1/5.3/android_armv7/include/QtWidgets/qmainwindow.h:45,
            from ../../../Qt5.3.1/5.3/android_armv7/include/QtWidgets/QMainWindow:1,
            from mainwindow.h:4,
            from main.cpp:1:
            ../../../android/android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.8/include/utility:68:28: fatal error: bits/c++config.h: No such file or directory
            #include <bits/c++config.h>
            ^
            compilation terminated.
            make: *** [main.o] Error 1
            @

            1 Reply Last reply
            0
            • E Offline
              E Offline
              EdOfTheMountain
              wrote on 24 Jul 2014, 21:51 last edited by
              #6

              Adding the following include path and lib path to my Qt project file fixed the compile issue:

              @
              INCLUDEPATH += /home/edward/android/android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include
              LIBS += -L/home/edward/android/android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi
              @
              Or using the build environment variables:
              @
              INCLUDEPATH += $$(ANDROID_NDK_ROOT)/sources/cxx-stl/gnu-libstdc++/$$(ANDROID_NDK_TOOLCHAIN_VERSION)/libs/armeabi-v7a/include
              LIBS += -L$$(ANDROID_NDK_ROOT)/sources/cxx-stl/gnu-libstdc++/$$(ANDROID_NDK_TOOLCHAIN_VERSION)/libs/armeabi
              @

              However I am having incompatible ADV devices again:
              "ABI is incompatible, device supports ABIs: android-wear/armeabi-v7a"

              Adding this to build environment variable had fixed it in the past. It no longer seems to fix it for me?
              @

              Add the following to your Qt Project->Build-Build Environment->Details

              ANDROID_TARGET_ARCH=default/armeabi-v7a
              @

              1 Reply Last reply
              0
              • E Offline
                E Offline
                EdOfTheMountain
                wrote on 25 Jul 2014, 13:26 last edited by
                #7

                Success!! I have a Qt 5.3.1 "hello world" widget app finally running on an Android simulator.

                In summary, do not bother with developing under Ubuntu 64-bit. I expect it could be made to work but not worth the effort to me.

                Qt Android Development Environment:

                • Ubuntu Gnome 14.04 32-bit ( I failed using 64-bit Ubuntu )
                • Qt 5.3.1
                • JDK: /usr/lib/jvm/java-6-openjdk-i386 ( Do not use Java 7 )
                • SDK: /home/edward/android/adt-bundle-linux-x86-20140702/sdk
                • NDK: /home/edward/android/android-ndk-r10

                After installing all package updates I added one additional SDK.

                Eclipse->Android SDK Manager:

                • Android 3.2 (API 13)->SDK Platform Installed

                Android simulators are a pain. The default settings often will not work. They are slow and cumbersome.

                Simulator Settings;

                • AVD: nexus7-api-20armeabi-v7a
                  ** Target: Android 4.4W - API Level 20
                  ** Android Wear ARM (aremabi-v7a)
                  Hardware keyboard

                  ** Skin: No Skin
                  ** RAM: 1024 ( If I made any bigger the simulator would not run )
                  ** VM Heap: 32
                  ** Internal Storage: 200 MiB
                  ** SD Card: Size: 1024 MiB
                  ** Enmlation Options: (none)

                I thought I would try Qt 5.3.1 once again. This time when I installed, I did not try selecting Android x86 or Android armv5 as doing so seemed to break the Qt 5.3.1 installer under Ubuntu 64-bit. This may have been due to a missing 32-bit dependency under Ubuntu 64-bit. Anyway all I wanted was the default gcc and Android armv7 anyway

                • qt-opensource-linux-x86-android-5.3.1.run

                I no longer needed to manually add the following build environment variable fro my Qt project:

                • ANDROID_TARGET_ARCH

                There is nothing Android specific in my Qt project file. I also removed the INCLUDEPATH and LIBS from my Qt project file:
                @
                #INCLUDEPATH += $$(ANDROID_NDK_ROOT)/sources/cxx-stl/gnu-libstdc++/$$(ANDROID_NDK_TOOLCHAIN_VERSION)/libs/armeabi-v7a/include
                #LIBS += -L$$(ANDROID_NDK_ROOT)/sources/cxx-stl/gnu-libstdc++/$$(ANDROID_NDK_TOOLCHAIN_VERSION)/libs/armeabi
                @

                I hope this may help some other Android newbie.

                -Ed

                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