Build Redroid 13 with MindTheGapps "tau" will show ERROR!
After reading the latest "Build Redroid with Docker" document, I can successfully build the Redroid 12 with MindTheGapps "sigma". Everything runs fine!
However, when we change the version to Redroid 13 with MindTheGapps "tau", when we run "m -j$(nproc)" following the Step 5), ERROR will come out:
titusbiao@redroid-builder:/src$ m -j$(nproc)
09:51:51 Build sandboxing disabled due to nsjail error.
build/make/core/soong_config.mk:209: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead.
build/make/core/soong_config.mk:210: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=13
TARGET_PRODUCT=redroid_arm64
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.8.0-1010-gcp-x86_64-Ubuntu-20.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=TQ3A.230805.001.S1
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=frameworks/av/services/audiopolicy/config vendor/gapps/arm64 vendor/gapps/common vendor/gapps/overlay
============================================
[100% 397/397] analyzing Android.bp files and generating ninja file at out/soong/build.ninja
FAILED: out/soong/build.ninja
cd "$(dirname "out/host/linux-x86/bin/soong_build")" && BUILDER="$PWD/$(basename "out/host/linux-x86/bin/soong_build")" && cd / && env -i "$BUILDER" --top "$TOP" --soong_out "out/soong" --out "out" -o out/soong/build.ninja --globListDir build --globFile out/soong/globs-build.ninja -t -l out/.module_paths/Android.bp.list --available_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used.build Android.bp
error: vendor/gapps/arm64/proprietary/product/app/MarkupGoogle/Android.bp:1:1: module "libsketchology_native" variant "android_vendor.33_arm64_armv8-a_shared": module source path "vendor/gapps/arm64/proprietary/product/app/MarkupGoogle/lib/arm64/libsketchology_native.so" does not exist
09:53:51 soong bootstrap failed with: exit status 1
#### failed to build some targets (02:00 (mm:ss)) ####
The problem seems that in MindTheGapps 13 "tau", there is no "libsketchology_native.so" in the "vendor/gapps/arm64/proprietary/product/app/MarkupGoogle/lib/arm64" folder. It can be checked here.
The similar situation occurs in Redroid 14 with MindTheGapps 14 "upsilon", no "libsketchology_native.so" either, see here.
So anything we should do to avoid the problem? Just ignore the following when "Patch GApps files" in Step 3) GApps (optional)?
# Then we create the "~/redroid/vendor/gapps/arm64/proprietary/product/app/MarkupGoogle/Android.bp"
echo 'cc_prebuilt_library_shared {
name: "libsketchology_native",
srcs: ["lib/arm64/libsketchology_native.so"],
shared_libs: [],
stl: "none",
system_shared_libs: [],
vendor: true,
}' > ~/redroid/vendor/gapps/arm64/proprietary/product/app/MarkupGoogle/Android.bp
Can anybody help?
Try skipping the section Patch GApps files from 3) GApps (optional) and see if it works. This patch was mainly needed for Redroid 12. Apply the redroid patch from section 4) normally.
I believe you need file an issue to MTG; Or apply patches just like you mentioned.
Try skipping the section
Patch GApps filesfrom3) GApps (optional)and see if it works. This patch was mainly needed for Redroid 12. Apply the redroid patch from section 4) normally.
OK, Thanks. I'll try it.
Try skipping the section
Patch GApps filesfrom3) GApps (optional)and see if it works. This patch was mainly needed for Redroid 12. Apply the redroid patch from section 4) normally.
Hello, after many attempts, I found that just ignoring the following paragraph when Patch GApps files in Step 3) GApps (optional) will pass the building process:
# Then we create the "~/redroid/vendor/gapps/arm64/proprietary/product/app/MarkupGoogle/Android.bp"
echo 'cc_prebuilt_library_shared {
name: "libsketchology_native",
srcs: ["lib/arm64/libsketchology_native.so"],
shared_libs: [],
stl: "none",
system_shared_libs: [],
vendor: true,
}' > ~/redroid/vendor/gapps/arm64/proprietary/product/app/MarkupGoogle/Android.bp
Thanks for tips.