Important: Please read the Qt Code of Conduct -

Android Qt Quick errors during Make

  • What am I doing wrong?

    I'm trying to build and run default Qt quick helloworld program with Qt 5.2 on Android.
    The build fails during Make with errors like these:

    ..\Proj2\main.cpp:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default]
    #include "qtquick2controlsapplicationviewer.h"
    ..\Proj2\main.cpp:1:0: error: bad value (armv7-a) for -march= switch
    makefile:847: recipe for target 'main.obj' failed
    mingw32-make: *** [main.obj] Error 1
    05:35:40: The process "C:\COMPILERS\Qt\Qt5.2.0_Android\Tools\mingw48_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project Proj2 (kit: VS Android for armeabi-v7a (GCC 4.8, Qt 5.2.0))
    When executing step 'Make'

    So It seems like Make doesn't like something in qtquick2controlsapplicationviewer.h ...

    My testing device is Huawei Mediapad 10 FHD, which has Cortex-A9 processor with arm v7.

Log in to reply