[Galaxy Grand Prime Android Development] Zippy Dufus:
Build issue

[MENTION=7569388]vince2678[/MENTION], I've tried a couple of times to build and get the errors below.

I'm using your 14.1 manifest.

Am I missing a patch or something?

I see good things about your latest build in previous posts!

[ 41% 14942/35811] target thumb C++: libhealthd_internal <= system/core/healthd/healthd_mode_charger.cpp

FAILED: /home/android/out/target/product/gprimelte/obj/STATIC_LIBRARIES/libhealthd_internal_intermediates/healthd_mode_charger.o

/bin/bash -c "(PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++ -I device/samsung/msm8916-common/include -I bootable/recovery-twrp -I system/core/healthd -I /home/android/out/target/product/gprimelte/obj/STATIC_LIBRARIES/libhealthd_internal_intermediates -I /home/android/out/target/product/gprimelte/gen/STATIC_LIBRARIES/libhealthd_internal_intermediates -I libnativehelper/include/nativehelper \$(cat /home/android/out/target/product/gprimelte/obj/STATIC_LIBRARIES/libhealthd_internal_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem hardware/ril-caf/include -isystem /home/android/out/target/product/gprimelte/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/common -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libm/include -isystem bionic/libm/include/arm -c -fno-exceptions -Wno-multichar -DMETADATA_CAMERA_SOURCE -msoft-float -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -mcpu=cortex-a7 -mfpu=neon-vfpv4 -D__ARM_FEATURE_LPAE=1 -mfloat-abi=softfp -DQCOM_HARDWARE -DQCOM_BSP -DQTI_BSP -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -DNDEBUG -g -Wstrict-aliasing=2 -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -nostdlibinc -target arm-linux-androideabi -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -fvisibility-inlines-hidden -DQCOM_HARDWARE -DQCOM_BSP -DQTI_BSP -Wsign-promo -Wno-inconsistent-missing-override -nostdlibinc -target arm-linux-androideabi -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -fno-rtti -DCHARGER_ENABLE_SUSPEND -fPIC -D_USING_LIBCXX -std=gnu++14 -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=null-dereference -Werror=return-type -MD -MF /home/android/out/target/product/gprimelte/obj/STATIC_LIBRARIES/libhealthd_internal_intermediates/healthd_mode_charger.d -o /home/android/out/target/product/gprimelte/obj/STATIC_LIBRARIES/libhealthd_internal_intermediates/healthd_mode_charger.o system/core/healthd/healthd_mode_charger.cpp ) && (cp /home/android/out/target/product/gprimelte/obj/STATIC_LIBRARIES/libhealthd_internal_intermediates/healthd_mode_charger.d /home/android/out/target/product/gprimelte/obj/STATIC_LIBRARIES/libhealthd_internal_intermediates/healthd_mode_charger.P; sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\\\\$//' -e '/^\$/ d' -e 's/\$/ :/' < /home/android/out/target/product/gprimelte/obj/STATIC_LIBRARIES/libhealthd_internal_intermediates/healthd_mode_charger.d >> /home/android/out/target/product/gprimelte/obj/STATIC_LIBRARIES/libhealthd_internal_intermediates/healthd_mode_charger.P; rm -f /home/android/out/target/product/gprimelte/obj/STATIC_LIBRARIES/libhealthd_internal_intermediates/healthd_mode_charger.d )"

system/core/healthd/healthd_mode_charger.cpp:388:33: error: use of undeclared identifier 'gr_sys_font'

int str_len_px = gr_measure(gr_sys_font(), str);

^

system/core/healthd/healthd_mode_charger.cpp:394:13: error: use of undeclared identifier 'gr_sys_font'

gr_text(gr_sys_font(), x, y, str, 0);

^

system/core/healthd/healthd_mode_charger.cpp:453:5: error: no matching function for call to 'gr_text'

gr_text(field.font, x, y, clock_str, false);

^~~~~~~

bootable/recovery-twrp/minui/minui.h:59:6: note: candidate function not viable: requires 4 arguments, but 5 were provided

void gr_text(int x, int y, const char *s, bool bold);

^

system/core/healthd/healthd_mode_charger.cpp:477:5: error: no matching function for call to 'gr_text'

gr_text(field.font, x, y, str.c_str(), false);

^~~~~~~

bootable/recovery-twrp/minui/minui.h:59:6: note: candidate function not viable: requires 4 arguments, but 5 were provided

void gr_text(int x, int y, const char *s, bool bold);

^

system/core/healthd/healthd_mode_charger.cpp:558:17: error: use of undeclared identifier 'gr_init_font'

gr_init_font(anim->text_clock.font_file.c_str(), &anim->text_clock.font)) < 0) {

^

system/core/healthd/healthd_mode_charger.cpp:565:17: error: use of undeclared identifier 'gr_init_font'

gr_init_font(anim->text_percent.font_file.c_str(), &anim->text_percent.font)) < 0) {

^

system/core/healthd/healthd_mode_charger.cpp:591:22: error: use of undeclared identifier 'gr_sys_font'

gr_font_size(gr_sys_font(), &char_width, &char_height);

^

7 errors generated.​