Hello all. I am running Debian 10 and have an issue building the GroundSDK - this is my error message. I have tried to install libtinfo5 to no luck. No idea what is wrong.
[I] Starting task 'build'
[I] Starting task 'build-jni'
[I] Starting task 'build-common'
[I] Starting task 'build-common-armeabi-v7a'
[I] In '/home/meraki/AAR_Folder/groundsdk': ALCHEMY_HOST_OUT_BUILD="/home/meraki/AAR_Folder/groundsdk/out/groundsdk-android/host/build" ALCHEMY_HOST_OUT_STAGING="/home/meraki/AAR_Folder/groundsdk/out/groundsdk-android/host/staging" ALCHEMY_TARGET_CONFIG_DIR="/home/meraki/AAR_Folder/groundsdk/products/groundsdk/android/config" ALCHEMY_TARGET_OUT="/home/meraki/AAR_Folder/groundsdk/out/groundsdk-android/armeabi-v7a" ALCHEMY_TARGET_PRODUCT="groundsdk" ALCHEMY_TARGET_PRODUCT_VARIANT="android" ALCHEMY_TARGET_SCAN_ADD_DIRS=" /home/meraki/AAR_Folder/groundsdk/packages" ALCHEMY_TARGET_SCAN_PRUNE_DIRS=" /home/meraki/AAR_Folder/groundsdk" ALCHEMY_USE_COLORS="1" ALCHEMY_WORKSPACE_DIR="/home/meraki/AAR_Folder/groundsdk" ANDROID_ABI="armeabi-v7a" PARROT_BUILD_PROP_GROUP="drones" PARROT_BUILD_PROP_PRODUCT="groundsdk" PARROT_BUILD_PROP_PROJECT="groundsdk" PARROT_BUILD_PROP_UID="groundsdk-android-20220113-0042-0.0.0" PARROT_BUILD_PROP_VARIANT="android" PARROT_BUILD_PROP_VERSION="0.0.0" /home/meraki/AAR_Folder/groundsdk/build/alchemy/scripts/alchemake -j 4 all sdk
/bin/bash: line 1: cc: command not found
/bin/bash: line 1: cc: command not found
/bin/bash: line 1: llvm-config: command not found
expr: syntax error: unexpected argument ‘4.4.0’
expr: syntax error: unexpected argument ‘4.0.0’
expr: syntax error: unexpected argument ‘4.9.0’
expr: syntax error: unexpected argument ‘4.9.0’
expr: syntax error: unexpected argument ‘4.5.0’
expr: syntax error: unexpected argument ‘4.5.2’
expr: syntax error: unexpected argument ‘7’
expr: syntax error: unexpected argument ‘4.5.0’
----------------------------------------------------------------------
+ ALCHEMY_WORKSPACE_DIR = /home/meraki/AAR_Folder/groundsdk
+ TARGET_PRODUCT = groundsdk
+ TARGET_PRODUCT_VARIANT = android
+ TARGET_OS = linux
+ TARGET_OS_FLAVOUR = android
+ TARGET_LIBC = bionic
+ TARGET_ARCH = arm
+ TARGET_CPU = armv7a
+ TARGET_OUT = /home/meraki/AAR_Folder/groundsdk/out/groundsdk-android/armeabi-v7a
+ TARGET_CONFIG_DIR = /home/meraki/AAR_Folder/groundsdk/products/groundsdk/android/config
+ TARGET_CC_PATH = /home/meraki/AAR_Folder/groundsdk/out/groundsdk-android/armeabi-v7a/toolchain/bin/arm-linux-androideabi-clang
+ TARGET_CC_VERSION =
----------------------------------------------------------------------
/bin/bash: line 1: cc: command not found
Scanning /home/meraki/AAR_Folder/groundsdk/packages for makefiles...
Found 52 makefiles
Found 100 modules
Computing modules dependencies...
Checking modules dependencies...
Generating rules...
/home/meraki/AAR_Folder/groundsdk/build/alchemy/classes/CMAKE/rules.mk:10: *** json: cmake not found. Stop.
[E] Command failed (returncode=2)
1.) Increasing the memory size of my VM
2.) Installing the lz4 missing dependancy
3.) Installing android studio Android 8 image
4.) creating a local.properties file where i stored the path to the SDK
turns out - i didn’t solve it. The build failed at the end with this error
Task :groundsdkdemo:lint
Ran lint on variant debug: 16 issues found
Ran lint on variant release: 14 issues found
Wrote HTML report to file:///home/meraki/AAR_Folder/groundsdk/out/groundsdk-android/gradle/groundsdkdemo/reports/lint-results.html
Wrote XML report to file:///home/meraki/AAR_Folder/groundsdk/out/groundsdk-android/gradle/groundsdkdemo/reports/lint-results.xml
> Task :groundsdkdemo:lint FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':groundsdkdemo:lint'.
> Lint found errors in the project; aborting build.
Fix the issues identified by lint, or add the following to your build script to proceed with errors:
...
android {
lintOptions {
abortOnError false
}
}
...
The first 3 errors (out of 11) were:
/home/meraki/AAR_Folder/groundsdk/packages/groundsdk-android/sdkcore/src/main/java/com/parrot/drone/sdkcore/arsdk/backend/ble/ArsdkBleConnection.java:191: Error: Missing permissions required by BluetoothDevice.connectGatt: android.permission.BLUETOOTH_CONNECT [MissingPermission]
mGatt = mBtDevice.connectGatt(mContext, false, mDeviceConnectionListener);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/meraki/AAR_Folder/groundsdk/packages/groundsdk-android/sdkcore/src/main/java/com/parrot/drone/sdkcore/arsdk/backend/ble/ArsdkBleConnection.java:211: Error: Missing permissions required by BluetoothGatt.close: android.permission.BLUETOOTH_CONNECT [MissingPermission]
mGatt.close();
~~~~~~~~~~~~~
/home/meraki/AAR_Folder/groundsdk/packages/groundsdk-android/sdkcore/src/main/java/com/parrot/drone/sdkcore/arsdk/backend/ble/ArsdkBleConnection.java:239: Error: Missing permissions required by BluetoothGatt.writeDescriptor: android.permission.BLUETOOTH_CONNECT [MissingPermission]
mGatt.writeDescriptor(descriptor);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2m 33s
201 actionable tasks: 201 executed
[E] Command failed (returncode=1)
now that it’s built, i opened the project in android studio and i get this warning:
Unsupported Modules Detected: Compilation is not supported for following modules: groundsdk-android. Unfortunately you can’t have non-Gradle Java modules and Android-Gradle modules in one project.