How do I fix this Simulink ERROR "error C1083: Cannot open include file: 'iHalideFI​RInterpola​tor.hpp': No such file or directory"?

13 Ansichten (letzte 30 Tage)
This is my first project with MATLAB and Simulink, and Tech Support has not been able to provide any assistance with solving this Simulink ERROR. The default install location for MATLAB is C:\Program Files\MATLAB\, which is intereating since MATLAB cannot work in a directory name containing spaces. Tech Support directed me to unistall MATLAB, and to reinstall it C:\MATLAB\. I reinstalled the minGW and Communications Toolbox Support Package for Analog Devices ADALM-Pluto Radio, but this did not fix the problem.
Tech Support directed me to install Microsoft Visual Studio Community so the C++ compiler could be used in place of the previosuly installed minGW compiler. This also did not fix the problem, so here is a complete explanation of the Simulink model creating this error.
I wanted to build a test case for transmitting an audio file (MPS) with an ADALM-Pluto FM transmitter. The procedure for building the model is relatively simple and is shown online at:
My Simulink model is attached, but the MP3 file I attempted to use cannot be uploaded, but you can download it at https://www.aoakley.com/articles/2018-08-24-stereo-test.php. Regardless, when I RUN this Simulink simulation, I receive the following ERROR messages:
=== Simulation (Elapsed: 14 sec) ===
### Building simulation target for model: 'Pluto_FM_Transmitter_Test_with_Audio_file'.
Microsoft (R) Program Maintenance Utility Version 14.40.33811.0
Copyright (C) Microsoft Corporation. All rights reserved.
### Compiling "Pluto_FM_Transmitter_Test_with_Audio_file_cgxe.c"
cl.exe /c /Zp8 /GR /w /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMX_COMPAT_64 /DMATLAB_MEXCMD_RELEASE=R2018a /DMATLAB_MEX_FILE /nologo /MD /I "D:\MATLAB\R2024a\extern\include" /I "D:\MATLAB\R2024a\simulink\include" /I "D:\MATLAB\R2024a\rtw\c\src" /I "C:\Users\scott\AppData\Roaming\mathworks\matlab add-ons\collections\slprj\_cgxe\pluto_fm_transmitter_test_with_audio_file\src" /I "C:\Users\scott\AppData\Roaming\mathworks\matlab add-ons\collections" /I "C:\Users\scott\AppData\Roaming\MathWorks\MATLAB Add-Ons\Collections\slprj\_cprj" /I "C:\Users\scott\AppData\Roaming\MathWorks\MATLAB Add-Ons\Collections\slprj\_cgxe\Pluto_FM_Transmitter_Test_with_Audio_file\src" /I "C:\Users\scott\AppData\Roaming\MathWorks\MATLAB Add-Ons\Collections" /I "D:\Program Files\MATLAB\R2024a\toolbox\dsp\halidesim\include" /I "D:\Program Files\MATLAB\R2024a\toolbox\dsp\include" "Pluto_FM_Transmitter_Test_with_Audio_file_cgxe.c"
Pluto_FM_Transmitter_Test_with_Audio_file_cgxe.c
Error:C:\Users\scott\AppData\Roaming\MathWorks\MATLAB Add-Ons\Collections\slprj\_cgxe\Pluto_FM_Transmitter_Test_with_Audio_file\src\Pluto_FM_Transmitter_Test_with_Audio_file_cgxe.h(13): fatal error C1083: Cannot open include file: 'iHalideFIRInterpolator.hpp': No such file or directory
NMAKE : fatal error U1077: 'cl.exe /c /Zp8 /GR /w /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMX_COMPAT_64 /DMATLAB_MEXCMD_RELEASE=R2018a /DMATLAB_MEX_FILE /nologo /MD /I "D:\MATLAB\R2024a\extern\include" /I "D:\MATLAB\R2024a\simulink\include" /I "D:\MATLAB\R2024a\rtw\c\src" /I "C:\Users\scott\AppData\Roaming\mathworks\matlab add-ons\collections\slprj\_cgxe\pluto_fm_transmitter_test_with_audio_file\src" /I "C:\Users\scott\AppData\Roaming\mathworks\matlab add-ons\collections" /I "C:\Users\scott\AppData\Roaming\MathWorks\MATLAB Add-Ons\Collections\slprj\_cprj" /I "C:\Users\scott\AppData\Roaming\MathWorks\MATLAB Add-Ons\Collections\slprj\_cgxe\Pluto_FM_Transmitter_Test_with_Audio_file\src" /I "C:\Users\scott\AppData\Roaming\MathWorks\MATLAB Add-Ons\Collections" /I "D:\Program Files\MATLAB\R2024a\toolbox\dsp\halidesim\include" /I "D:\Program Files\MATLAB\R2024a\toolbox\dsp\include" "Pluto_FM_Transmitter_Test_with_Audio_file_cgxe.c"' : return code '0x2'
Stop.
### Build procedure for model: 'Pluto_FM_Transmitter_Test_with_Audio_file' aborted due to an error.
Error:Problem creating simulation target for the model 'Pluto_FM_Transmitter_Test_with_Audio_file'.
Error:Error(s) encountered while building simulation target MEX-file for model 'Pluto_FM_Transmitter_Test_with_Audio_file'.
Caused by:
Microsoft (R) Program Maintenance Utility Version 14.40.33811.0
Copyright (C) Microsoft Corporation. All rights reserved.
### Compiling "Pluto_FM_Transmitter_Test_with_Audio_file_cgxe.c"
cl.exe /c /Zp8 /GR /w /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMX_COMPAT_64 /DMATLAB_MEXCMD_RELEASE=R2018a /DMATLAB_MEX_FILE /nologo /MD /I "D:\MATLAB\R2024a\extern\include" /I "D:\MATLAB\R2024a\simulink\include" /I "D:\MATLAB\R2024a\rtw\c\src" /I "C:\Users\scott\AppData\Roaming\mathworks\matlab add-ons\collections\slprj\_cgxe\pluto_fm_transmitter_test_with_audio_file\src" /I "C:\Users\scott\AppData\Roaming\mathworks\matlab add-ons\collections" /I "C:\Users\scott\AppData\Roaming\MathWorks\MATLAB Add-Ons\Collections\slprj\_cprj" /I "C:\Users\scott\AppData\Roaming\MathWorks\MATLAB Add-Ons\Collections\slprj\_cgxe\Pluto_FM_Transmitter_Test_with_Audio_file\src" /I "C:\Users\scott\AppData\Roaming\MathWorks\MATLAB Add-Ons\Collections" /I "D:\Program Files\MATLAB\R2024a\toolbox\dsp\halidesim\include" /I "D:\Program Files\MATLAB\R2024a\toolbox\dsp\include" "Pluto_FM_Transmitter_Test_with_Audio_file_cgxe.c"
Pluto_FM_Transmitter_Test_with_Audio_file_cgxe.c
C:\Users\scott\AppData\Roaming\MathWorks\MATLAB Add-Ons\Collections\slprj\_cgxe\Pluto_FM_Transmitter_Test_with_Audio_file\src\Pluto_FM_Transmitter_Test_with_Audio_file_cgxe.h(13): fatal error C1083: Cannot open include file: 'iHalideFIRInterpolator.hpp': No such file or directory
NMAKE : fatal error U1077: 'cl.exe /c /Zp8 /GR /w /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMX_COMPAT_64 /DMATLAB_MEXCMD_RELEASE=R2018a /DMATLAB_MEX_FILE /nologo /MD /I "D:\MATLAB\R2024a\extern\include" /I "D:\MATLAB\R2024a\simulink\include" /I "D:\MATLAB\R2024a\rtw\c\src" /I "C:\Users\scott\AppData\Roaming\mathworks\matlab add-ons\collections\slprj\_cgxe\pluto_fm_transmitter_test_with_audio_file\src" /I "C:\Users\scott\AppData\Roaming\mathworks\matlab add-ons\collections" /I "C:\Users\scott\AppData\Roaming\MathWorks\MATLAB Add-Ons\Collections\slprj\_cprj" /I "C:\Users\scott\AppData\Roaming\MathWorks\MATLAB Add-Ons\Collections\slprj\_cgxe\Pluto_FM_Transmitter_Test_with_Audio_file\src" /I "C:\Users\scott\AppData\Roaming\MathWorks\MATLAB Add-Ons\Collections" /I "D:\Program Files\MATLAB\R2024a\toolbox\dsp\halidesim\include" /I "D:\Program Files\MATLAB\R2024a\toolbox\dsp\include" "Pluto_FM_Transmitter_Test_with_Audio_file_cgxe.c"' : return code '0x2'
Stop.
I have been unable to find an answer for the cause of this ERROR message, and Tech Support also does not know the cause of this ERROR, or how to fix the problem. Does anyone know how to fix this problem so the Simulink model runs as shown in the referenced YouTube movie?
Thanks in advance for your timely assistance with fixing this Simulink ERROR,
Scott

Antworten (1)

Sravan Janamaddi
Sravan Janamaddi am 27 Jun. 2024
Hi Scott,
I can see that your build is referring to two installation paths:
cl.exe /c /Zp8 /GR /w /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMX_COMPAT_64 /DMATLAB_MEXCMD_RELEASE=R2018a /DMATLAB_MEX_FILE /nologo /MD /I "D:\MATLAB\R2024a\extern\include" /I "D:\MATLAB\R2024a\simulink\include" /I "D:\MATLAB\R2024a\rtw\c\src" /I "C:\Users\scott\AppData\Roaming\mathworks\matlab add-ons\collections\slprj\_cgxe\pluto_fm_transmitter_test_with_audio_file\src" /I "C:\Users\scott\AppData\Roaming\mathworks\matlab add-ons\collections" /I "C:\Users\scott\AppData\Roaming\MathWorks\MATLAB Add-Ons\Collections\slprj\_cprj" /I "C:\Users\scott\AppData\Roaming\MathWorks\MATLAB Add-Ons\Collections\slprj\_cgxe\Pluto_FM_Transmitter_Test_with_Audio_file\src" /I "C:\Users\scott\AppData\Roaming\MathWorks\MATLAB Add-Ons\Collections" /I "D:\Program Files\MATLAB\R2024a\toolbox\dsp\halidesim\include" /I "D:\Program Files\MATLAB\R2024a\toolbox\dsp\include" "Pluto_FM_Transmitter_Test_with_Audio_file_cgxe.c"
I believe you uninstalled MATLAB from "D:\Program Files\MATLAB\R2024a".
Can you delete all the files under C:\Users\scott\AppData\Roaming\MathWorks\MATLAB Add-Ons\Collections\slprj\,
(or) better to go to another new directory and simulate it again.
Thanks,
Sravan
  2 Kommentare
Sravan Janamaddi
Sravan Janamaddi am 27 Jun. 2024
On a side note, here are couple of suggestions on Windows installation (which I follow personally):
  1. I mostly use MSVC compilers as mex compiler, usually I don't see such issues even when MATLAB is installed in a path that has space characters.
  2. With MinGW compiler, there might be issues if the path has space. But it can be fixed by enabling the short file path option in windows (8dot3 reference ).
  • To enable short path in Windows, at Command prompt (need to open as adminstrator), we need to give below commands
  • fsutil behavior set disable8dot3 0
  • Reboot machine
Make sure to always delete previously generated artifcats whenever switching between the mex compilers / MATLAB versions.
Dr. Scott
Dr. Scott am 27 Jun. 2024
Dear Sravan,
I installed MATLAB the first time to D:\Program Files\MATLAB\, since I do not like to install software on my c:\ drive. The default location for installing MATLAB is c:\Program Files\MATLAB\, so I changed the default c: drive to the d: drive since I have a lot of room on this drive. Tech Support told me that the space in "Program Files" was causing problems for me, so they recommended uninstalling MATLAB, and reinstalling at D:\MATLAB\. I did this procedure, which did not solve the problem with the Simulink Error Message.
Next, I unistalled the C:\Users\scott\AppData\Roaming\MathWorks\MATLAB Add-Ons\Collections\slprj\ directory as shown here:
I can open the Pluto_FM_Transmitter_Test_with_Audio_file.slx file in Simulink, and my attempt to Run it again yielded the following result! Deleting the OLD slprj simulation directory solved the problem, and the Simulink model now runs without any problems.
Thanks for the assistance with solving this Simulink Simulation Error!
Respectfully,
Scott

Melden Sie sich an, um zu kommentieren.

Produkte


Version

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by