Problem compiling for android



  • 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



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


  • Lifetime Qt Champion

    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 :)



  • same problem with Qt 5.4.0 alpha and NDK R10


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.