vedderb / vesc_tool

The source code for VESC Tool. See vesc-project.com
GNU General Public License v3.0
702 stars 517 forks source link

Building Android apk within linux cli failed #194

Open livello opened 2 years ago

livello commented 2 years ago

I use the script build_lin then build_android. I get this error: Cannot read from input file: android-libvesc_tool.so-deployment-settings.json after run this command: https://github.com/vedderb/vesc_tool/blob/12467c2643a41063019da53d6dcafb5f33620ca8/build_android#L28

I also do not understand where to get this files: https://github.com/vedderb/vesc_tool/blob/12467c2643a41063019da53d6dcafb5f33620ca8/build_android#L19

I'm using dockerized ubuntu 18.04 in Arch Linux. I tried this in Arch Linux, (dockerized) ubuntu 20.04 and still get the same error.

QMake version 3.1 Using Qt version 5.15.3 in /opt/Qt/5.15-static/lib

Installed packages:=====================] 100% Computing updates...
Path
Version Description Location
build-tools;30.0.3 30.0.3 Android SDK Build-Tools 30.0.3 build-tools/30.0.3
cmdline-tools;latest 5.0 Android SDK Command-line Tools (latest) cmdline-tools/latest
emulator 31.1.4 Android Emulator emulator
ndk;21.3.6528147 21.3.6528147 NDK (Side by side) 21.3.6528147 ndk/21.3.6528147
ndk;23.1.7779620 23.1.7779620 NDK (Side by side) 23.1.7779620 ndk/23.1.7779620
patcher;v4 1 SDK Patch Applier v4 patcher/v4
platform-tools 31.0.3 Android SDK Platform-Tools platform-tools
platforms;android-29 5 Android SDK Platform 29 platforms/android-29
platforms;android-30 3 Android SDK Platform 30 platforms/android-30
mark99i commented 2 years ago

same problem

G-Pereira commented 2 years ago

Hey @livello I am trying to go down that same path you did but I am stuck a little before that. I am getting:

./build_android: line 28: androiddeployqt: command not found

I have read the Qt5 docs but I did not understand how can I get this tool installed