Preparations

  • Install the ARM-based CANN development kit on Ubuntu 18.04 x86_64. For details, see Installing the NPU Driver, Firmware, and CANN.
  • Install the ARM-based Vision SDK package on Ubuntu 18.04 x86_64. For details, see Installing Vision SDK.
  • Run the following command to install the cross compilation toolchain:
    1
    sudo apt-get install g++-aarch64-linux-gnu
    
  • Download and compile the zlib source code.
    1. Download the .gz package of zlib (v1.2.11 is used as an example) from this link.
    2. Decompress and compile the zlib source code.
      1
      tar -zxvf zlib-1.2.11.tar.gz --no-same-owner
      

      Copy the build_zlib.sh script to the same directory and run the following command to compile the script. For details about the build_zlib.sh script, see build_zlib Script Code.

      1
      bash build_zlib.sh
      

    3. After the compilation is complete, copy the generated files to opensource in the Vision SDK installation directory.
      cp -r tmp/zlib/* ${MX_SDK_HOME}/opensource
      ll ${MX_SDK_HOME}/opensource/lib