Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[SOLVED] Android Hello World



  • Even when I create a brand new Project I can't get it to run on AVD.

    Here is my error:
    @
    13:44:06: Running steps for project AnotherTest...
    13:44:06: Starting: "C:\Qt\5.2.1\android_armv7\bin\qmake.exe" "C:\Users\Darrel\Desktop\New folder\AnotherTest\AnotherTest.pro" -r -spec android-g++ "CONFIG+=debug" "CONFIG+=declarative_debug" "CONFIG+=qml_debug"
    The system cannot find the path specified.
    13:44:07: The process "C:\Qt\5.2.1\android_armv7\bin\qmake.exe" exited normally.
    13:44:07: Starting: "C:\Qt\Tools\mingw48_32\bin\mingw32-make.exe"
    C:\Users\Darrel\android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/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 -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_QML_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..........\Qt\5.2.1\android_armv7\mkspecs\android-g++ -I..\AnotherTest -I..........\Qt\5.2.1\android_armv7\include -I..........\Qt\5.2.1\android_armv7\include\QtQuick -I..........\Qt\5.2.1\android_armv7\include\QtQml -I..........\Qt\5.2.1\android_armv7\include\QtWidgets -I..........\Qt\5.2.1\android_armv7\include\QtNetwork -I..........\Qt\5.2.1\android_armv7\include\QtGui -I..........\Qt\5.2.1\android_armv7\include\QtCore -I. -I......\android-ndk-r9d\sources\cxx-stl\gnu-libstdc++\4.6\include -I......\android-ndk-r9d\sources\cxx-stl\gnu-libstdc++\4.6\libs\armeabi-v7a\include -I......\android-ndk-r9d\platforms\android-9\arch-arm\usr\include -I. -o main.obj ..\AnotherTest\main.cpp
    C:\Qt\5.2.1\android_armv7\bin\rcc.exe -name qml ..\AnotherTest\qml.qrc -o qrc_qml.cpp
    C:\Users\Darrel\android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/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 -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_QML_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..........\Qt\5.2.1\android_armv7\mkspecs\android-g++ -I..\AnotherTest -I..........\Qt\5.2.1\android_armv7\include -I..........\Qt\5.2.1\android_armv7\include\QtQuick -I..........\Qt\5.2.1\android_armv7\include\QtQml -I..........\Qt\5.2.1\android_armv7\include\QtWidgets -I..........\Qt\5.2.1\android_armv7\include\QtNetwork -I..........\Qt\5.2.1\android_armv7\include\QtGui -I..........\Qt\5.2.1\android_armv7\include\QtCore -I. -I......\android-ndk-r9d\sources\cxx-stl\gnu-libstdc++\4.6\include -I......\android-ndk-r9d\sources\cxx-stl\gnu-libstdc++\4.6\libs\armeabi-v7a\include -I......\android-ndk-r9d\platforms\android-9\arch-arm\usr\include -I. -o qrc_qml.obj qrc_qml.cpp
    C:\Users\Darrel\android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++ --sysroot=C:\Users\Darrel\android-ndk-r9d/platforms/android-9/arch-arm/ -Wl,-soname,libAnotherTest.so -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libAnotherTest.so main.obj qrc_qml.obj -LC:\Users\Darrel\android-ndk-r9d/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a -LC:\Users\Darrel\android-ndk-r9d/platforms/android-9/arch-arm//usr/lib -LC:\Qt\5.2.1\android_armv7\lib -lQt5Quick -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 -LC:\Utils\icu32_51_1_mingw48\lib -LC:\utils\postgresql\pgsql\lib -LC:\utils\mysql\mysql\lib -LC:\Utils\pgsql\lib -LC:\temp\opensll-android-master\openssl-android-master\lib -LC:\Qt\5.2.1\android_armv7/lib -lQt5Qml -lQt5Widgets -lQt5Network -lQt5Gui -lQt5Core -lGLESv2 -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc
    13:44:10: The process "C:\Qt\Tools\mingw48_32\bin\mingw32-make.exe" exited normally.
    13:44:10: Starting: "C:\Qt\Tools\mingw48_32\bin\mingw32-make.exe" INSTALL_ROOT="C:\\\\Users\\\\Darrel\\\\Desktop\\\\New folder\\\\build-AnotherTest-Android_for_armeabi_GCC_4_8_Qt_5_2_1_Android_GCC_arm_4_6-Debug\\\\android-build" install
    The system cannot find the path specified.
    The system cannot find the path specified.
    makefile:789: recipe for target 'install_target' failed
    mingw32-make: *** [install_target] Error 1
    13:44:10: The process "C:\Qt\Tools\mingw48_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project AnotherTest (kit: Android for armeabi (GCC 4.8, Qt 5.2.1)-Android GCC (arm-4.6))
    When executing step 'Copy application data'
    13:44:10: Elapsed time: 00:04.@

    I don't know what to make of it. Seems like this would work right out of the box. Any ideas?



  • This problem is solved! The problem was the folder name!

    It didn't know how to handle "New folder". I needed to change path to "New_folder". I ended up just scrapping all of it and making new folder that didn't have a space in the name.

    Downside is that now I have a whole new slew of problems :/


Log in to reply