Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Problem compiling for android
Qt 6.11 is out! See what's new in the release blog

Problem compiling for android

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 3 Posters 2.8k 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
    MariuszWW
    wrote on last edited by
    #1

    Hi.
    I just start playing with Qt Quick. Trying to build template Qt Quick app for android and I'm getting this:

    @22:23:31: Running steps for project Transitions...
    22:23:31: Configuration unchanged, skipping qmake step.
    22:23:31: Starting: "/usr/bin/make"
    /home/user/projekty/android-ndk-r8-crystax-1/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 -Wall -Wno-psabi -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../5.2.0/android_armv7/mkspecs/android-g++ -I../Transitions -I../Transitions/qtquick2applicationviewer -I../../5.2.0/android_armv7/include -I../../5.2.0/android_armv7/include/QtQuick -I../../5.2.0/android_armv7/include/QtQml -I../../5.2.0/android_armv7/include/QtNetwork -I../../5.2.0/android_armv7/include/QtGui -I../../5.2.0/android_armv7/include/QtCore -I. -I../../../android-ndk-r8-crystax-1/sources/cxx-stl/gnu-libstdc++/4.7/include -I../../../android-ndk-r8-crystax-1/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi-v7a/include -I../../../android-ndk-r8-crystax-1/platforms/android-9/arch-arm/usr/include -I. -o main.o ../Transitions/main.cpp
    In file included from ../../../android-ndk-r8-crystax-1/sources/cxx-stl/gnu-libstdc++/4.7/include/bits/postypes.h:42:0,
    from ../../../android-ndk-r8-crystax-1/sources/cxx-stl/gnu-libstdc++/4.7/include/bits/char_traits.h:42,
    from ../../../android-ndk-r8-crystax-1/sources/cxx-stl/gnu-libstdc++/4.7/include/string:42,
    from ../../../android-ndk-r8-crystax-1/sources/cxx-stl/gnu-libstdc++/4.7/include/random:41,
    from ../../../android-ndk-r8-crystax-1/sources/cxx-stl/gnu-libstdc++/4.7/include/bits/stl_algo.h:67,
    from ../../../android-ndk-r8-crystax-1/sources/cxx-stl/gnu-libstdc++/4.7/include/algorithm:63,
    from ../../5.2.0/android_armv7/include/QtCore/qglobal.h:82,
    from ../../5.2.0/android_armv7/include/QtCore/qcoreapplication.h:45,
    from ../../5.2.0/android_armv7/include/QtGui/qguiapplication.h:45,
    from ../../5.2.0/android_armv7/include/QtGui/QGuiApplication:1,
    from ../Transitions/main.cpp:1:
    ../../../android-ndk-r8-crystax-1/sources/cxx-stl/gnu-libstdc++/4.7/include/cwchar:46:19: fatal error: wchar.h: No such file or directory
    compilation terminated.
    make: *** [main.o] Error 1
    22:23:32: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project Transitions (kit: Android for armeabi-v7a (GCC 4.7, Qt 5.2.0))
    When executing step 'Make'
    22:23:32: Elapsed time: 00:01.@

    Any ideas ?

    Platform: Ubuntu 12.04 32

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MariuszWW
      wrote on last edited by
      #2

      I have sorted it. The problem was ndk-r8x. With r9 work like charm :)

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        Glad you found out and thanks for sharing !

        Can you please also update the thread title prepending [solved] ? So other forum users may know a solution has been found :)

        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
        • metaDomM Offline
          metaDomM Offline
          metaDom
          wrote on last edited by
          #4

          same problem with Qt 5.4.0 alpha and NDK R10

          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