Qt 5.2 android peployment issue on mac



  • Hi folks,
    when I try to deploy a simple HelloWorld Qt application to an android device I always get this error message:

    • "[install_target] Error 71 (ignored)"

    I am using Qt 5.2 beta for mac and this is my configuration of android in qt creator:

    • Android SDK: /Applications/adt-bundle-mac-x86_64-20131030/sdk
    • Android NDK: /Applications/android-ndk-r8e
    • ant: /usr/local/Cellar/ant/1.9.2/bin/an
    • JDK-path: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home

    This is the Output of QtCreator:

    @13:52:31: Der Prozess "/usr/bin/make" wurde normal beendet.
    13:52:31: Starte "/usr/bin/make" 'INSTALL_ROOT=/Users/Ju7/Workspaces/Qt Workspace/build-QtQuick2Test-Android_für_armeabi_v7a_GCC_4_7_Qt_5_2_0-Debug/android' install
    /bin/sh: line 0: test: /Users/Ju7/Workspaces/Qt: binary operator expected
    cp -f -R /Users/Ju7/Workspaces/Qt\ Workspace/QtQuick2Test/qml/QtQuick2Test /Users/Ju7/Workspaces/Qt Workspace/build-QtQuick2Test-Android_für_armeabi_v7a_GCC_4_7_Qt_5_2_0-Debug/android/assets/qml/
    /bin/sh: line 0: test: /Users/Ju7/Workspaces/Qt: binary operator expected
    install -m 755 -p "libQtQuick2Test.so" "/Users/Ju7/Workspaces/Qt Workspace/build-QtQuick2Test-Android_für_armeabi_v7a_GCC_4_7_Qt_5_2_0-Debug/android/libs/armeabi-v7a/libQtQuick2Test.so"
    install: /Users/Ju7/Workspaces/Qt Workspace/build-QtQuick2Test-Android_für_armeabi_v7a_GCC_4_7_Qt_5_2_0-Debug/android/libs/armeabi-v7a/libQtQuick2Test.so: No such file or directory
    make: [install_target] Error 71 (ignored)
    13:52:32: Der Prozess "/usr/bin/make" wurde normal beendet.
    13:52:32: Starte "/Applications/Qt/5.2.0-beta1/android_armv7/bin/androiddeployqt" --input '/Users/Ju7/Workspaces/Qt Workspace/build-QtQuick2Test-Android_für_armeabi_v7a_GCC_4_7_Qt_5_2_0-Debug/android-libQtQuick2Test.so-deployment-settings.json' --output '/Users/Ju7/Workspaces/Qt Workspace/build-QtQuick2Test-Android_für_armeabi_v7a_GCC_4_7_Qt_5_2_0-Debug/android' --deployment bundled --install --ant /usr/local/Cellar/ant/1.9.2/bin/ant --android-platform android-19 --jdk /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home --device HT13RTJ45542
    13:52:32: Pulling files necessary for debugging.
    13:52:32: Package deploy: Running command '/Applications/adt-bundle-mac-x86_64-20131030/sdk/platform-tools/adb -s HT13RTJ45542 pull /system/bin/app_process /Users/Ju7/Workspaces/Qt Workspace/build-QtQuick2Test-Android_für_armeabi_v7a_GCC_4_7_Qt_5_2_0-Debug/app_process'.
    13:52:32: Package deploy: Running command '/Applications/adt-bundle-mac-x86_64-20131030/sdk/platform-tools/adb -s HT13RTJ45542 pull /system/lib/libc.so /Users/Ju7/Workspaces/Qt Workspace/build-QtQuick2Test-Android_für_armeabi_v7a_GCC_4_7_Qt_5_2_0-Debug/libc.so'.
    Invalid json file: /Users/Ju7/Workspaces/Qt Workspace/build-QtQuick2Test-Android_für_armeabi_v7a_GCC_4_7_Qt_5_2_0-Debug/android-libQtQuick2Test.so-deployment-settings.json
    13:52:32: Der Prozess "/Applications/Qt/5.2.0-beta1/android_armv7/bin/androiddeployqt" wurde mit dem Rückgabewert 2 beendet.
    Fehler beim Erstellen/Deployment des Projekts QtQuick2Test(Kit: Android für armeabi-v7a (GCC 4.7, Qt 5.2.0))
    Bei der Ausführung von Schritt 'Deploy to Android device'@

    Building android applications with eclipse works fine...

    Does anyone know about this problem? I'm stuck and there's no documentation on that issue :(
    I'd be so thankful if someone could help me...



  • Obviously you cannot use whitespaces in the project path.
    I removed that one whitespace my project path contained and the 'binary operator expected' error disappeared.

    However now there's still another problem:
    @Invalid json file: /Users/Ju7/Workspaces/QtWorkspace/build-QtQuick2Test-Android_für_armeabi_v7a_GCC_4_7_Qt_5_2_0-Debug/android-libQtQuick2Test.so-deployment-settings.json
    14:02:21: Der Prozess "/Applications/Qt/5.2.0-beta1/android_armv7/bin/androiddeployqt" wurde mit dem Rückgabewert 2 beendet.
    Fehler beim Erstellen/Deployment des Projekts QtQuick2Test(Kit: Android für armeabi-v7a (GCC 4.7, Qt 5.2.0))
    Bei der Ausführung von Schritt 'Deploy to Android device'@

    It's because of the length of the path.
    After shortening the path name it kinda works, but not quite...
    It creates the package successfully

    @14:13:19: Package deploy: Running command '/Applications/adt-bundle-mac-x86_64-20131030/sdk/platform-tools/adb -s HT13RTJ45542 pull /system/lib/libc.so /Users/Ju7/Workspaces/QtWorkspace/build-QtQuick2Test-Android-armeabi_v7a-Debug/libc.so'.@

    and then it takes very long to proceed and I get this message

    @3086 KB/s (11577012 bytes in 3.662s)@

    Finally the application launches on my device but the application output returns something like:

    @"starting remote process. 'org.qtproject.example.QtQuick2Test' could not launch"@

    Does anyone know about this?


Log in to reply
 

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