[Android Software Development] qinyj12:
Met a problem with ziparchive and zip_archive.h

Following the guide, I replace the lineage/bootable/recovery with omnirom/bootable/recovery-twrp, but met a problem.

Here is the code. I hope someone can help me. Thanks a lot.

[ 11% 6446/54654] target C++: libotautil <= bootable/recovery-twrp/otautil/ZipUtil.cpp

FAILED: /home/qinyj12/lineage/out/target/product/kugo/obj/STATIC_LIBRARIES/libotautil_intermediates/ZipUtil.o

/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++	-I bootable/recovery-twrp/otautil -I /home/qinyj12/lineage/out/target/product/kugo/obj/STATIC_LIBRARIES/libotautil_intermediates -I /home/qinyj12/lineage/out/target/product/kugo/gen/STATIC_LIBRARIES/libotautil_intermediates -I libnativehelper/include_deprecated \$(cat /home/qinyj12/lineage/out/target/product/kugo/obj/STATIC_LIBRARIES/libotautil_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem /home/qinyj12/lineage/out/target/product/kugo/obj/include -isystem device/sony/common-headers/kernel-headers -isystem bionic/libc/arch-arm64/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -fno-strict-aliasing -fstack-protector-strong -ffunction-sections -fdata-sections -funwind-tables -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -Werror=implicit-function-declaration -DNDEBUG -O2 -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -mcpu=cortex-a53 -target aarch64-linux-android -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -fvisibility-inlines-hidden -std=gnu++14 -fno-rtti -Werror -Wall -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF /home/qinyj12/lineage/out/target/product/kugo/obj/STATIC_LIBRARIES/libotautil_intermediates/ZipUtil.d -o /home/qinyj12/lineage/out/target/product/kugo/obj/STATIC_LIBRARIES/libotautil_intermediates/ZipUtil.o bootable/recovery-twrp/otautil/ZipUtil.cpp"

In file included from bootable/recovery-twrp/otautil/ZipUtil.cpp:17:

bootable/recovery-twrp/otautil/ZipUtil.h:25:10: fatal error: 'ziparchive/zip_archive.h' file not found

#include <ziparchive/zip_archive.h>

I found that even in lineage/bootable/recovery, there is no file named ziparchive or zip_archive.h. But when I build this rom using lineage/bootable/recovery, I neve met problem like this.

Hope anyone's reply.