This error is generally caused by IT or security measures on the build computer causing conflicts with the cross compilation being attempted by gcc during the build of your model. Preventing this error for all models usually requires an analysis of security software and IT policies in place on the build computer to detect programs that could be interfering with the build, but some quicker steps that can be taken to address the issue for a single build or as follows:
- Ensure that you're running MATLAB and VeriStand as an administrator when attempting to build your model.
- Attempt to run the .bat file for your build directly using the command prompt. The .bat file should be named <model name>.bat or something similar - you can run it by navigating to its file location in command prompt and entering the name of your .bat file.
- Edit your .bat file to remove references to the create_lib_dir command, and its definition. You should comment out the below code block in the .bat file:
@if not exist "$(subst /,\,$(NIVERISTAND_LIB_DIR))"\ (mkdir "$(subst
and delete any other references to create_lib_dir in the .bat file. once this is done, try building your model again.