Qt Creator can't even build default new project successfully.



  • I'm not actually convinced this is the right way to make android apps, but I can't chose my tools so I am making C++ Qt Android app.

    I downlaoded this software:

    • Android SDK
    • Android SDK
    • Qt libraries for android (windows-x86-android-5.5.1.exe)
    • Qt Creator

    This is all based on this tutorial: http://doc.qt.io/qt-5/androidgs.html
    I started Qt Creator and created C++ empty project expecting everything is going to work. But it doesn't even compile:

    image description

    image description

    The full output:

      10:03:55: Running steps for project androidtest...
      10:03:55: Starting: "C:\Qt\android.5.5.1\5.5\android_armv7\bin\qmake.exe" D:\techsys\androidtest\androidtest.pro -r -spec android-g++ "CONFIG+=debug"
      10:03:56: The process "C:\Qt\android.5.5.1\5.5\android_armv7\bin\qmake.exe" exited normally.
      10:03:56: Starting: "C:\MinGW\bin\mingw32-make.exe" 
      'C:\Qt\android.5.5.1\5.5\android_armv7\bin\uic.exe' ../androidtest/mainwindow.ui -o ui_mainwindow.h
      D:\libs\android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/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 -fno-builtin-memmove -std=c++11 -g -g -marm -O0 -fno-omit-frame-pointer -Wall -Wno-psabi -W -D_REENTRANT -fPIC -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../androidtest -I. -IC:/Qt/android.5.5.1/5.5/android_armv7/include -IC:/Qt/android.5.5.1/5.5/android_armv7/include/QtWidgets -IC:/Qt/android.5.5.1/5.5/android_armv7/include/QtGui -IC:/Qt/android.5.5.1/5.5/android_armv7/include/QtCore -I. -I. -I../../libs/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -I../../libs/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I../../libs/android-ndk-r10e/platforms/android-9/arch-arm/usr/include -IC:/Qt/android.5.5.1/5.5/android_armv7/mkspecs/android-g++ -o main.obj ../androidtest/main.cpp
      D:\libs\android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/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 -fno-builtin-memmove -std=c++11 -g -g -marm -O0 -fno-omit-frame-pointer -Wall -Wno-psabi -W -D_REENTRANT -fPIC -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../androidtest -I. -IC:/Qt/android.5.5.1/5.5/android_armv7/include -IC:/Qt/android.5.5.1/5.5/android_armv7/include/QtWidgets -IC:/Qt/android.5.5.1/5.5/android_armv7/include/QtGui -IC:/Qt/android.5.5.1/5.5/android_armv7/include/QtCore -I. -I. -I../../libs/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -I../../libs/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I../../libs/android-ndk-r10e/platforms/android-9/arch-arm/usr/include -IC:/Qt/android.5.5.1/5.5/android_armv7/mkspecs/android-g++ -o mainwindow.obj ../androidtest/mainwindow.cpp
      'C:\Qt\android.5.5.1\5.5\android_armv7\bin\moc.exe' -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -IC:/Qt/android.5.5.1/5.5/android_armv7/mkspecs/android-g++ -ID:/techsys/androidtest -IC:/Qt/android.5.5.1/5.5/android_armv7/include -IC:/Qt/android.5.5.1/5.5/android_armv7/include/QtWidgets -IC:/Qt/android.5.5.1/5.5/android_armv7/include/QtGui -IC:/Qt/android.5.5.1/5.5/android_armv7/include/QtCore -I. -I'D:\libs\android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include' -I'D:\libs\android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include' -I'D:\libs\android-ndk-r10e/platforms/android-9/arch-arm//usr/include' ../androidtest/mainwindow.h -o moc_mainwindow.cpp
      D:\libs\android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/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 -fno-builtin-memmove -std=c++11 -g -g -marm -O0 -fno-omit-frame-pointer -Wall -Wno-psabi -W -D_REENTRANT -fPIC -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../androidtest -I. -IC:/Qt/android.5.5.1/5.5/android_armv7/include -IC:/Qt/android.5.5.1/5.5/android_armv7/include/QtWidgets -IC:/Qt/android.5.5.1/5.5/android_armv7/include/QtGui -IC:/Qt/android.5.5.1/5.5/android_armv7/include/QtCore -I. -I. -I../../libs/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include -I../../libs/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I../../libs/android-ndk-r10e/platforms/android-9/arch-arm/usr/include -IC:/Qt/android.5.5.1/5.5/android_armv7/mkspecs/android-g++ -o moc_mainwindow.obj moc_mainwindow.cpp
      D:\libs\android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++ --sysroot=D:\libs\android-ndk-r10e/platforms/android-9/arch-arm/ -Wl,-soname,libandroidtest.so -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libandroidtest.so main.obj mainwindow.obj moc_mainwindow.obj   -LD:\libs\android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a -LD:\libs\android-ndk-r10e/platforms/android-9/arch-arm//usr/lib -LC:/Qt/android.5.5.1/5.5/android_armv7/lib -lQt5Widgets -Lc:\utils\android\ndk/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a -Lc:\utils\android\ndk/platforms/android-9/arch-arm//usr/lib -lQt5Gui -lQt5Core -lGLESv2 -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc
      10:04:01: The process "C:\MinGW\bin\mingw32-make.exe" exited normally.
      10:04:01: Starting: "C:\MinGW\bin\mingw32-make.exe" "INSTALL_ROOT=D:/techsys/build-androidtest-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Debug/android-build" install
      cp -f libandroidtest.so D:/techsys/build-androidtest-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Debug/android-build/libs/armeabi-v7a/libandroidtest.so
      Makefile:1641: recipe for target 'install_target' failed
      process_begin: CreateProcess(NULL, cp -f libandroidtest.so D:/techsys/build-androidtest-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Debug/android-build/libs/armeabi-v7a/libandroidtest.so, ...) failed.
      make (e=2): The system cannot find the file specified.
      
      mingw32-make: [install_target] Error 2 (ignored)
      10:04:01: The process "C:\MinGW\bin\mingw32-make.exe" exited normally.
      10:04:01: Starting: "C:\Qt\android.5.5.1\5.5\android_armv7\bin\androiddeployqt.exe" --input D:/techsys/build-androidtest-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Debug/android-libandroidtest.so-deployment-settings.json --output D:/techsys/build-androidtest-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Debug/android-build --deployment bundled --android-platform android-23 --jdk "C:/Program Files (x86)/Java/jdk1.7.0_11" --ant D:/programs/eclipse/plugins/org.apache.ant_1.9.4.v201504302020/bin/ant.bat
      Generating Android Package
        Input file: D:/techsys/build-androidtest-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Debug/android-libandroidtest.so-deployment-settings.json
        Output directory: D:/techsys/build-androidtest-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Debug/android-build/
        Application binary: D:/techsys/build-androidtest-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Debug/libandroidtest.so
        Android build platform: android-23
        Install to device: No
      Application binary is not in output directory: D:/techsys/build-androidtest-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Debug/android-build//libs/armeabi-v7a/libandroidtest.so. Please run 'mingw32-make install INSTALL_ROOT=D:/techsys/build-androidtest-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Debug/android-build/' first.
      10:04:02: The process "C:\Qt\android.5.5.1\5.5\android_armv7\bin\androiddeployqt.exe" exited with code 7.
      Error while building/deploying project androidtest (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.5.1))
      When executing step "Build Android APK"
      10:04:02: Elapsed time: 00:07.


  • Solved, cygwin was missing in the system.


Log in to reply
 

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