- The make command returned an error of 2.
- Fatal error: ad9361.h: No such file or directory.
- This error can occur if you have installed MinGW for one MATLAB version and are using another MATLAB version to generate code.
- To resolve this issue, make sure that you install MinGW for the correct version of MATLAB you are using.
- You can refer to the following MATLAB Answers link for more information on installing MinGW for use in MATLAB: https://www.mathworks.com/matlabcentral/answers/313290-how-do-i-install-mingw-for-use-in-matlab
- To resolve this error, restart MATLAB as administrator (sudo on Linux). Then, re-run the set up for "Embedded Coder Support Package" for your particular board(s). You can do this by clicking on Add-Ons > Manage Add-Ons and then clicking the Gear icon next to the support package.
- Running the support package setup will register the "sysroot" folder with the toolchain and also regenerate the correct Linux image needed to boot the Xilinx board.
- If re-running the setup alone does not resolve the issue, please re-install the support package as an administrator. Then, perform the setup steps with the fresh installation.