Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error in check_elf_files #256

Open
cheanc opened this issue Apr 10, 2020 · 1 comment
Open

Build error in check_elf_files #256

cheanc opened this issue Apr 10, 2020 · 1 comment

Comments

@cheanc
Copy link

cheanc commented Apr 10, 2020

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
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants