I’m currently using Ubuntu 18.04 and following the tutorial: Install and build GroundSdk - GroundSdk Android 7.0
But I keep getting the same error:
leontjuh@ubuntu:/opt/groundsdk$ ./build.sh -p groundsdk-android -t build -j
[I] Installed NDK version: r17c
/opt/groundsdk/products/groundsdk/android/config/product.mk:43: Missing ANDROID_ABI using armeabi-v7a
[I] Starting task ‘build’
[I] Starting task ‘build-jni’
[I] Starting task ‘build-common’
[I] Starting task ‘build-common-armeabi-v7a’
[I] In ‘/opt/groundsdk’: ALCHEMY_HOST_OUT_BUILD="/opt/groundsdk/out/groundsdk-android/host/build" ALCHEMY_HOST_OUT_STAGING="/opt/groundsdk/out/groundsdk-android/host/staging" ALCHEMY_TARGET_CONFIG_DIR="/opt/groundsdk/products/groundsdk/android/config" ALCHEMY_TARGET_OUT="/opt/groundsdk/out/groundsdk-android/armeabi-v7a" ALCHEMY_TARGET_PRODUCT=“groundsdk” ALCHEMY_TARGET_PRODUCT_VARIANT=“android” ALCHEMY_TARGET_SCAN_ADD_DIRS=" /opt/groundsdk/packages" ALCHEMY_TARGET_SCAN_PRUNE_DIRS=" /opt/groundsdk" ALCHEMY_USE_COLORS=“1” ALCHEMY_WORKSPACE_DIR="/opt/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-20211109-0658-0.0.0” PARROT_BUILD_PROP_VARIANT=“android” PARROT_BUILD_PROP_VERSION=“0.0.0” /opt/groundsdk/build/alchemy/scripts/alchemake -j 2 all sdk
Installing Android-24 toolchain from NDK
Traceback (most recent call last):
File “/opt/android-ndk-r17c/build/tools/make_standalone_toolchain.py”, line 666, in
main()
File “/opt/android-ndk-r17c/build/tools/make_standalone_toolchain.py”, line 650, in main
sysroot_path, args.stl, host_tag)
File “/opt/android-ndk-r17c/build/tools/make_standalone_toolchain.py”, line 423, in create_toolchain
copy_directory_contents(gcc_path, install_path)
File “/opt/android-ndk-r17c/build/tools/make_standalone_toolchain.py”, line 147, in copy_directory_contents
os.makedirs(dst_dir)
File “/usr/lib/python2.7/os.py”, line 150, in makedirs
makedirs(head, mode)
File “/usr/lib/python2.7/os.py”, line 150, in makedirs
makedirs(head, mode)
File “/usr/lib/python2.7/os.py”, line 150, in makedirs
makedirs(head, mode)
File “/usr/lib/python2.7/os.py”, line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: ‘/opt/groundsdk/out/groundsdk-android’
ls: cannot access ‘/opt/groundsdk/out/groundsdk-android/armeabi-v7a/toolchain/bin/*-objdump’: No such file or directory
/opt/groundsdk/build/alchemy/toolchains/linux/bionic/selection.mk:71: *** Failed to detect android toolchain prefix. Stop.
[E] Command failed (returncode=2)
anyone who knows how to fix this?