Xilinx / VVAS

Vitis Video Analytics SDK
https://Xilinx.github.io/VVAS/
Other
38 stars 21 forks source link

Installation_issue_in_VVAS #24

Closed MohamedRaizz closed 1 year ago

MohamedRaizz commented 1 year ago

I'm facing VVAS installation issue in master branch hope could you please help me to solve this issue

user@user:~/VVAS$ ./build_install_vvas.sh TARGET=Edge PLATFORM_V70 ENABLE_PPE=1 USE_SIMD=1 Default: XRM is disabled Building for Edge INSTALL_ACCEL_SW = true TARGET = EDGE ENABLE_XRM = 0 USE_SIMD = 1 ENABLE_PPE = 1 VVAS_CORE_UTILS = GLIB Default: Using GLib utils TARGET = EDGE USE_SIMD = 1 ENABLE_PPE = 1 VVAS_CORE_UTILS = GLIB Building for Edge The Meson build system Version: 0.58.1 Source dir: /home/user/Raiz/Docker_setup/New_VVAS/VVAS/vvas-core Build dir: /home/user/Raiz/Docker_setup/New_VVAS/VVAS/vvas-core/build Build type: cross build Project name: vvas-libs-core Project version: 1.0 C compiler for the host machine: /home/user/petalinux_sdk_2022.2/sysroots/x86_64-petalinux-linux/usr/bin/aarch64-xilinx-linux/aarch64-xilinx-linux-gcc (gcc 11.2.0 "aarch64-xilinx-linux-gcc (GCC) 11.2.0") C linker for the host machine: /home/user/petalinux_sdk_2022.2/sysroots/x86_64-petalinux-linux/usr/bin/aarch64-xilinx-linux/aarch64-xilinx-linux-gcc ld.bfd 2.37.20210721 C++ compiler for the host machine: /home/user/petalinux_sdk_2022.2/sysroots/x86_64-petalinux-linux/usr/bin/aarch64-xilinx-linux/aarch64-xilinx-linux-g++ (gcc 11.2.0 "aarch64-xilinx-linux-g++ (GCC) 11.2.0") C++ linker for the host machine: /home/user/petalinux_sdk_2022.2/sysroots/x86_64-petalinux-linux/usr/bin/aarch64-xilinx-linux/aarch64-xilinx-linux-g++ ld.bfd 2.37.20210721 Compiler for language c for the build machine not found. Compiler for language cpp for the build machine not found. Build machine cpu family: x86_64 Build machine cpu: x86_64 Host machine cpu family: aarch64 Host machine cpu: arm64 Target machine cpu family: aarch64 Target machine cpu: arm64 Message: compiling for Embedded platform Message: Enabling PPE Compiler for C++ supports arguments -Wmissing-declarations: YES Compiler for C++ supports arguments -Wredundant-decls: YES Compiler for C++ supports arguments -Wwrite-strings: YES Compiler for C++ supports arguments -Winit-self: YES Compiler for C++ supports arguments -Wno-multichar: YES Compiler for C++ supports arguments -Wvla: YES Compiler for C++ supports arguments -Wpointer-arith: YES Compiler for C++ supports arguments -Wmissing-prototypes: NO Compiler for C++ supports arguments -Wdeclaration-after-statement: NO Compiler for C++ supports arguments -Wold-style-definition: NO Compiler for C++ supports arguments -Waggregate-return: YES Has header "stdio.h" : YES Has header "dlfcn.h" : YES Found pkg-config: /home/user/petalinux_sdk_2022.2/sysroots/x86_64-petalinux-linux/usr/bin/pkg-config (0.29.2) Run-time dependency xrt found: YES 2.14.0 Library uuid found: YES Library dl found: YES Library pthread found: YES Program python3 found: YES (/home/user/petalinux_sdk_2022.2/sysroots/x86_64-petalinux-linux/usr/bin/python3) Run-time dependency glib-2.0 found: YES 2.68.4 Library vart-util found: YES Library vitis_ai_library-xnnpp found: YES Library vitis_ai_library-model_config found: YES Library vitis_ai_library-dpu_task found: YES Library opencv_core found: YES Library vart-runner found: YES Library libvitis_ai_library-runner_helper found: YES Library xir found: YES Library vitis_ai_library-classification found: YES Library vitis_ai_library-vehicleclassification found: YES Library vitis_ai_library-yolov2 found: YES Library vitis_ai_library-yolov3 found: YES Library vitis_ai_library-refinedet found: YES Library vitis_ai_library-platedetect found: YES Library vitis_ai_library-platenum found: YES Library vitis_ai_library-facedetect found: YES Library vitis_ai_library-efficientdet_d2 found: YES Library vitis_ai_library-bcc found: YES Library vitis_ai_library-ssd found: YES Library vitis_ai_library-tfssd found: YES Library vitis_ai_library-ultrafast found: YES Library vitis_ai_library-lanedetect found: YES Library vitis_ai_library-facefeature found: YES Library vitis_ai_library-facelandmark found: YES Library vitis_ai_library-posedetect found: YES Library vitis_ai_library-reid found: YES Library vitis_ai_library-segmentation found: YES Library vitis_ai_library-graph_runner found: YES Library protobuf found: YES Library glog found: YES Found CMake: NO Run-time dependency jansson found: NO (tried pkgconfig)

dpuinfer/meson.build:251:0: ERROR: Dependency "jansson" not found, tried pkgconfig

A full log can be found at /home/VVAS/vvas-core/build/meson-logs/meson-log.txt

MohamedRaizz commented 1 year ago
  1. source ~/petalinux_sdk_2022.2/environment-setup-cortexa72-cortexa53-xilinx-linux from Vitis-AI-3.0 sdk.sh file

  2. download Common Images for Embedded Vitis Platforms https://www.xilinx.com/member/forms/download/xef.html?filename=xilinx-zynqmp-common-v2022.2_10141622.tar.gz

  3. extract sdk.sh file form common images

  4. copy sdk/sysroots/cortexa72-cortexa53-xilinx-linux/usr/lib/libjansson.so.4.14.0 libjansson.so.4 libjansson.so to vitis sdk/sysroots/cortexa72-cortexa53-xilinx-linux/usr/lib/

  5. copy sdk/sysroots/cortexa72-cortexa53-xilinx-linux/usr/lib/pkgconfig/jansson.pc to sdk/sysroots/cortexa72-cortexa53-xilinx-linux/usr/lib/pkgconfig/

  6. copy sdk/sysroots/cortexa72-cortexa53-xilinx-linux/usr/include/jansson_config.h jansson.h to sdk/sysroots/cortexa72-cortexa53-xilinx-linux/usr/include/

  7. ./build_install_vvas.sh TARGET=Edge