SoC Builder: "Build software application" step fails due to error regarding 'iio.h' or 'aarch64-linux-gnu-gcc'
7 views (last 30 days)
I am trying to follow the "Transmit and Receive a Tone Using Xilinx RFSoC Device" example from "SoC Blockset Support Package for Xilinx Devices": https://www.mathworks.com/help/supportpkg/xilinxsoc/ug/transmitandreceivetoneusingRFSoCdevicegenerate.html
In "Part 2 Deployment", I am trying to run SoC Builder tool to implement the model on my Xilinx board. But it fails in the "Build software application" step, as shown in the following screenshot:
The error message inside SoC Builder is:
Error(s) encountered while building "soc_rfsoc_datacapture_proc_rtwlib"
If I check the MATLAB Command Window for the full build log, I find an error thrown by iio_helper.c:
C:/ProgramData/MATLAB/SupportPackages/RXXXXx/toolbox/shared/libiio/base/src/iio_helper.c:2:17:\nfatal error: iio.h: No such file or directory #include "iio.h"
or an error related to "aarch64-linux-gnu-gcc" not being found:
/bin/sh: 1: bin/aarch64-linux-gnu-gcc: not found
The error messages indicate that the "SoC Blockset Support Package for Xilinx Devices" has not been set up correctly.
To resolve this, restart MATLAB as administrator (sudo). Then, re-run the "SoC Blockset Support Package for Xilinx Devices" setup. You can do this by clicking on Add-Ons > Manage Add-Ons and then clicking the Gear icon next to the support package. You will see the following panel:
The integrated SoC Builder workflow will not work unless all third-party tools have been sucessfully installed. If this is the first time that you ran the support package setup, click on Install, or, re-launch the installation of the third-party tools by clicking on Retry. As mentioned in the "What to consider" note on the right-hand side of the panel, pay attention for any permission prompts that might show up during the installation process.
Once you see a green check mark for every third-party tool, click "Next" and follow through with the setup until it is finished. This should resolve the above issue with SoC Builder.