opengapps / aosp_build

AOSP Build system compatible version of Open GApps
GNU General Public License v3.0
319 stars 155 forks source link

Build error in check_elf_files #256

Open cheanc opened 4 years ago

cheanc commented 4 years ago

I tried to build the micro opengapps on a Pixel 2 with Android 10 AOSP and got this build error

FAILED: out/target/product/walleye/obj/SHARED_LIBRARIES/libsketchology_native_intermediates/check_elf_files.timestamp /bin/bash -c "(rm -f out/target/product/walleye/obj/SHARED_LIBRARIES/libsketchology_native_intermediates/check_elf_files.timestamp ) && (build/make/tools/check_elf_file.py --skip-bad-elf-magic --skip-unknown-elf-machine --soname libsketchology_native.so --shared-lib out/target/product/walleye/obj/SHARED_LIBRARIES/libc++_intermediates/libc++.so --shared-lib out/target/product/walleye/obj/SHARED_LIBRARIES/libc_intermediates/libc.so --shared-lib out/target/product/walleye/obj/SHARED_LIBRARIES/libm_intermediates/libm.so --shared-lib out/target/product/walleye/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.so --llvm-readobj=prebuilts/clang/host/darwin-x86/clang-r353983c1/bin/llvm-readobj vendor/opengapps/sources/arm64/lib64/29/libsketchology_native.so ) && (touch out/target/product/walleye/obj/SHARED_LIBRARIES/libsketchology_native_intermediates/check_elf_files.timestamp )" vendor/opengapps/sources/arm64/lib64/29/libsketchology_native.so: error: DT_NEEDED "libEGL.so" is not specified in shared_libs. vendor/opengapps/sources/arm64/lib64/29/libsketchology_native.so: error: DT_NEEDED "libGLESv2.so" is not specified in shared_libs. vendor/opengapps/sources/arm64/lib64/29/libsketchology_native.so: error: DT_NEEDED "libandroid.so" is not specified in shared_libs. vendor/opengapps/sources/arm64/lib64/29/libsketchology_native.so: error: DT_NEEDED "libjnigraphics.so" is not specified in shared_libs. vendor/opengapps/sources/arm64/lib64/29/libsketchology_native.so: error: DT_NEEDED "liblog.so" is not specified in shared_libs. vendor/opengapps/sources/arm64/lib64/29/libsketchology_native.so: error: DT_NEEDED "libGLESv1_CM.so" is not specified in shared_libs. vendor/opengapps/sources/arm64/lib64/29/libsketchology_native.so: note: vendor/opengapps/sources/arm64/lib64/29/libsketchology_native.so: note: Fix suggestions: vendor/opengapps/sources/arm64/lib64/29/libsketchology_native.so: note: Android.bp: shared_libs: ["libEGL", "libGLESv1_CM", "libGLESv2", "libandroid", "libc", "libdl", "libjnigraphics", "liblog", "libm"], vendor/opengapps/sources/arm64/lib64/29/libsketchology_native.so: note: Android.mk: LOCAL_SHARED_LIBRARIES := libEGL libGLESv1_CM libGLESv2 libandroid libc libdl libjnigraphics liblog libm vendor/opengapps/sources/arm64/lib64/29/libsketchology_native.so: note: vendor/opengapps/sources/arm64/lib64/29/libsketchology_native.so: note: If the fix above doesn't work, bypass this check with: vendor/opengapps/sources/arm64/lib64/29/libsketchology_native.so: note: Android.bp: check_elf_files: false, vendor/opengapps/sources/arm64/lib64/29/libsketchology_native.so: note: Android.mk: LOCAL_CHECK_ELF_FILES := false

Not sure which Android.bp or Android.mk I need to modify. Tried multiple ones and it still failed.

fltcaptriker commented 4 years ago

Try this out

--- a/vendor/opengapps/build/modules/MarkupGoogle/Android.mk 2020-05-23 22:10:11.902660834 -0400 +++ b/vendor/opengapps/build/modules/MarkupGoogle/Android.mk 2020-05-23 22:15:58.596491989 -0400 @@ -10,4 +10,5 @@ include $(CLEAR_VARS) include $(GAPPS_CLEAR_VARS) LOCAL_MODULE := libsketchology_native +LOCAL_CHECK_ELF_FILES := false include $(BUILD_GAPPS_PREBUILT_SHARED_LIBRARY)