Re: [Qbs] Qtc: Cannot find the androiddeploy Json file
On Fri, 15 May 2020 at 00:45, Christian Gagneraud wrote: > > On Fri, 15 May 2020 at 00:16, Raphael Cotty wrote: > > > > Hi, > > The json file used in android_support.qbs is an input file used by the > > androiddeployqt tool to generate the apk. > > Here, the term deploy refers to gathering all the qt dependencies (qt libs, > > plugins...) in a directory in order to generate the apk. > > > > The json file you talk about looks more to me to something linked to the > > deployment on the target. > > Any idea of the json file name when it works? > When run by qbs: > /home/chgans/Projects/build-FactoryTools-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug/Debug_Android__54f9cea5714846ce/TestApp.93c1d015/androiddeployqt.json > > But this time, QtC didn't try to run androiddeployqt, honestly the > behaviour seems to be unstable. > > adb install fails. It's possible that these sort of APK are not > supported by our AOSP. > I'll ask someone if this is supposed to work or not. From QtC: Initializing deployment to Android device/simulator Deploying to 150c980e8288de07 00:50:34: Running steps for project Neon Factory Tools... 00:50:34: Starting: "/home/chgans/Android/Sdk/platform-tools/adb -s 150c980e8288de07 install -r /home/chgans/Projects/build-FactoryTools-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug/Debug_Android__54f9cea5714846ce/TestApp.93c1d015/factory-testapp-0.0.apk" 00:50:34: The process "/home/chgans/Android/Sdk/platform-tools/adb" exited with code 255. When i copy/paste the command in a terminal, it doesn't fail: chgans@chgans-pc:~/Projects/neon-testapp$ /home/chgans/Android/Sdk/platform-tools/adb -s 150c980e8288de07 install -r /home/chgans/Projects/build-FactoryTools-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug/Debug_Android__54f9cea5714846ce/TestApp.93c1d015/factory-testapp-0.0.apk Performing Streamed Install Success chgans@chgans-pc:~/Projects/neon-testapp$ echo $? 0 Will report on QtC ML. Thanks again for your help! Chris > > Thanks, > Chris ___ Qbs mailing list Qbs@qt-project.org https://lists.qt-project.org/listinfo/qbs
Re: [Qbs] Qtc: Cannot find the androiddeploy Json file
On Fri, 15 May 2020 at 00:16, Raphael Cotty wrote: > > Hi, > The json file used in android_support.qbs is an input file used by the > androiddeployqt tool to generate the apk. > Here, the term deploy refers to gathering all the qt dependencies (qt libs, > plugins...) in a directory in order to generate the apk. > > The json file you talk about looks more to me to something linked to the > deployment on the target. > Any idea of the json file name when it works? When run by qbs: /home/chgans/Projects/build-FactoryTools-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_14_2_for_Android-Debug/Debug_Android__54f9cea5714846ce/TestApp.93c1d015/androiddeployqt.json But this time, QtC didn't try to run androiddeployqt, honestly the behaviour seems to be unstable. adb install fails. It's possible that these sort of APK are not supported by our AOSP. I'll ask someone if this is supposed to work or not. Thanks, Chris ___ Qbs mailing list Qbs@qt-project.org https://lists.qt-project.org/listinfo/qbs
Re: [Qbs] Qtc: Cannot find the androiddeploy Json file
Hi, The json file used in android_support.qbs is an input file used by the androiddeployqt tool to generate the apk. Here, the term deploy refers to gathering all the qt dependencies (qt libs, plugins...) in a directory in order to generate the apk. The json file you talk about looks more to me to something linked to the deployment on the target. Any idea of the json file name when it works? Raph Le jeu. 14 mai 2020 à 11:52, Christian Gagneraud a écrit : > On Tue, 12 May 2020 at 18:37, Richard Weickelt > wrote: > > > > > > > When i want to "run" on the device: > > > Initializing deployment to Android device/simulator > > > Deploying to 150c980e8288de07 > > > Cannot find the androiddeploy Json file. > > > Error while building/deploying project Neon Factory Tools (kit: > > > Android for arm64-v8a (Clang Qt 5.12.8 for Android ARM64-v8a)) > > > When executing step "Deploy to Android device" > > > > > > I think this happens only when i do cosmetic changes in my qbs files. > > > The only way to recover is to trigger a manual build, changing a > > > source file is not enough. > > > > > > Any idea what's goind on? > > > Looks to me this problem is on QtC side. > > > > A quick guess and without ever having built an Android project: The > selected > > product is the application executable and thus, none of the subsequent > rules > > is executed. Could that explain it? Have a look at > > > https://code.qt.io/cgit/qbs/qbs.git/tree/share/qbs/module-providers/Qt/templates/android_support.qbs > > There is a rule that produces qt_androiddeployqt_input (the json file) > which > > I guess is not requested when you press the "run" button. There are also > > subsequent rules responsible for the deployment. > > > > You could add one of the rule's output to your product type, although I > > guess there is a cleaner way of doing it. > > > > YourAndroidProduct { > > type: base.concat("bundled_jar") > > } > > I've tried that and it didn't work :( > Maybe there's a problem on QtC side... > > Chris > ___ > Qbs mailing list > Qbs@qt-project.org > https://lists.qt-project.org/listinfo/qbs > ___ Qbs mailing list Qbs@qt-project.org https://lists.qt-project.org/listinfo/qbs
Re: [Qbs] Qtc: Cannot find the androiddeploy Json file
On Tue, 12 May 2020 at 18:37, Richard Weickelt wrote: > > > > When i want to "run" on the device: > > Initializing deployment to Android device/simulator > > Deploying to 150c980e8288de07 > > Cannot find the androiddeploy Json file. > > Error while building/deploying project Neon Factory Tools (kit: > > Android for arm64-v8a (Clang Qt 5.12.8 for Android ARM64-v8a)) > > When executing step "Deploy to Android device" > > > > I think this happens only when i do cosmetic changes in my qbs files. > > The only way to recover is to trigger a manual build, changing a > > source file is not enough. > > > > Any idea what's goind on? > > Looks to me this problem is on QtC side. > > A quick guess and without ever having built an Android project: The selected > product is the application executable and thus, none of the subsequent rules > is executed. Could that explain it? Have a look at > https://code.qt.io/cgit/qbs/qbs.git/tree/share/qbs/module-providers/Qt/templates/android_support.qbs > There is a rule that produces qt_androiddeployqt_input (the json file) which > I guess is not requested when you press the "run" button. There are also > subsequent rules responsible for the deployment. > > You could add one of the rule's output to your product type, although I > guess there is a cleaner way of doing it. > > YourAndroidProduct { > type: base.concat("bundled_jar") > } I've tried that and it didn't work :( Maybe there's a problem on QtC side... Chris ___ Qbs mailing list Qbs@qt-project.org https://lists.qt-project.org/listinfo/qbs
Re: [Qbs] Qtc: Cannot find the androiddeploy Json file
> When i want to "run" on the device: > Initializing deployment to Android device/simulator > Deploying to 150c980e8288de07 > Cannot find the androiddeploy Json file. > Error while building/deploying project Neon Factory Tools (kit: > Android for arm64-v8a (Clang Qt 5.12.8 for Android ARM64-v8a)) > When executing step "Deploy to Android device" > > I think this happens only when i do cosmetic changes in my qbs files. > The only way to recover is to trigger a manual build, changing a > source file is not enough. > > Any idea what's goind on? > Looks to me this problem is on QtC side. A quick guess and without ever having built an Android project: The selected product is the application executable and thus, none of the subsequent rules is executed. Could that explain it? Have a look at https://code.qt.io/cgit/qbs/qbs.git/tree/share/qbs/module-providers/Qt/templates/android_support.qbs There is a rule that produces qt_androiddeployqt_input (the json file) which I guess is not requested when you press the "run" button. There are also subsequent rules responsible for the deployment. You could add one of the rule's output to your product type, although I guess there is a cleaner way of doing it. YourAndroidProduct { type: base.concat("bundled_jar") } ___ Qbs mailing list Qbs@qt-project.org https://lists.qt-project.org/listinfo/qbs
[Qbs] Qtc: Cannot find the androiddeploy Json file
Hi there, Here is an error that happen every now and then, not sure if the problem is in QtC or not, so checking here first. When i want to "run" on the device: Initializing deployment to Android device/simulator Deploying to 150c980e8288de07 Cannot find the androiddeploy Json file. Error while building/deploying project Neon Factory Tools (kit: Android for arm64-v8a (Clang Qt 5.12.8 for Android ARM64-v8a)) When executing step "Deploy to Android device" I think this happens only when i do cosmetic changes in my qbs files. The only way to recover is to trigger a manual build, changing a source file is not enough. Any idea what's goind on? Looks to me this problem is on QtC side. Chris ___ Qbs mailing list Qbs@qt-project.org https://lists.qt-project.org/listinfo/qbs