Intel® FPGA SDK for OpenCL™ Standard Edition: Cyclone® V SoC Getting Started Guide

ID 683030
Date 4/20/2022
Public
Document Table of Contents

3.5. Setting the Intel® FPGA SDK for OpenCL™ User Environment Variables for SoC FPGA

Set the PATH and LD_LIBRARY_PATH user environment variables to point to the Intel® FPGA SDK for OpenCL™ and board libraries.
Attention: If you install the software on a system that does not contain any C Shell Run Commands file (.cshrc) or Bash Run Commands file (.bashrc) in your directory, you must set the environment variables INTELFPGAOCLSDKROOT and PATH manually. Alternatively, you may create the .cshrc and .bashrc files, and then append the environment variables to them. To ensure that the updates take effect, restart your terminal after you set the environment variables.
  1. At a command prompt, type export PATH=$INTELFPGAOCLSDKROOT/bin:$PATH to add the path to the SDK bin directory to PATH, where INTELFPGAOCLSDKROOT points to the path to the software installation.
  2. At a command prompt, type export AOCL_BOARD_PACKAGE_ROOT=$INTELFPGAOCLSDKROOT/board/c5soc to set AOCL_BOARD_PACKAGE_ROOT to point to the Cyclone® V SoC Development Kit Reference Platform.
  3. At a command prompt, specify the following environment variable settings:
    1. Invoke the export LD_LIBRARY_PATH=$INTELFPGAOCLSDKROOT/host/linux64/lib:$LD_LIBRARY_PATH command to add the path to the SDK host runtime libraries to LD_LIBRARY_PATH.
    2. Invoke the export LD_LIBRARY_PATH=$AOCL_BOARD_PACKAGE_ROOT/linux64/lib:$LD_LIBRARY_PATH command to add the path to the board libraries to LD_LIBRARY_PATH, where AOCL_BOARD_PACKAGE_ROOT points to the path to the Custom or Reference Platform.
  4. At a command prompt, type export QUARTUS_ROOTDIR_OVERRIDE=<Quartus Prime software installation directory> , where <Quartus Prime software installation directory> is the path to the installation directory of the Intel® Quartus® Prime Standard Edition software.