Unable to find library -ldoca_pcc_dev

I try to run “meson cross-build --cross-file /root/doca-cross/arm64_armv8_linux_gcc”, but I got

pcc/src/meson.build:37:0: ERROR: Command /bin/bash /opt/mellanox/doca/applications/pcc/src/build_device_code.sh /opt/mellanox/doca/applications /opt/mellanox/doca/applications/pcc/src/device/ /opt/mellanox/doca/applications/cross-build/pcc/device/build_dpacc pcc_main_app /opt/mellanox/doca/lib/aarch64-linux-gnu` failed with status 1.

then I run

cat /opt/mellanox/doca/applications/cross-build/meson-logs/meson-log.txt

there find

— stderr —
dpacc warning : option ‘devicecc’ has been deprecated
ld.lld: error: unable to find library -ldoca_pcc_dev
clang-15: error: ld.lld command failed with exit code 1 (use -v to see invocation)

final I run

find / -name libdoca_pcc_dev.a

got
/opt/mellanox/doca/lib/x86_64-linux-gnu/libdoca_pcc_dev.a
/root/doca-cross/opt/mellanox/doca/lib/aarch64-linux-gnu/libdoca_pcc_dev.a
how can I do next?

I fix it by modify DOCA_LIB_DIR Field in /opt/mellanox/doca/applications/pcc/src/build_device_code.sh

#DOCA_LIB_DIR=$5
DOCA_LIB_DIR=“/root/doca-cross/opt/mellanox/doca/lib/aarch64-linux-gnu”

but when I run “ninja -C cross-build”, bug again

…/file_compression/src/file_compression_core.c:21:10: fatal error: zlib.h: No such file or directory
include <zlib.h>