Nios® V Embedded Processor Design Handbook

ID 726952
Date 7/08/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

7.3.3.1. Generating the ZLIB libraries

The LibRSU HAL API requires the ZLIB libraries. Follow these steps to generate the ZLIB libraries:

  1. Acquire the latest version number of ZLIB libraries from the ZLIB home page.
  2. Navigate to the design project folder.
  3. Copy the following code and replace <version> with the latest version number:
    wget http://zlib.net/zlib-<version>.tar.gz 
    tar xf zlib-<version>.tar.gz 
    mv zlib-<version> zlib
    
  4. Run the command.
  5. The zlib folder is ready with the ZLIB libraries.
    Note: One of the LibRSU software component, librsu_ll_qspi.c includes the ZLIB libraries under a specific path. If the project directory tree is different than the following figure, modify the ZLIB libraries path in librsu_ll_qspi.c.
    Figure 123. Software Project Directory Tree