Borrar filtros
Borrar filtros

Specifying a registered toolchain

61 visualizaciones (últimos 30 días)
Engenuity
Engenuity el 1 de Jul. de 2024 a las 19:26
Comentada: Umar el 2 de Jul. de 2024 a las 17:42
When I attempt to build my Simulink model, I receive an error that none of the toolchains specified in C:\Program Files\MATLAB\R2024a\toolbox\coder\compile\tmf\ert_unix.tmf are in the current list of registered toolchains:
Error using coder.make.internal.TMFProps/extractToolchainAttributesFromName (line 219)
None of the toolchains, "Xcode with Clang | gmake (64-bit Mac), GNU gcc/g++ | gmake (64-bit Linux)", specified
in C:\Program Files\MATLAB\R2024a\toolbox\coder\compile\tmf\ert_unix.tmf in are in the current list of
registered toolchains, "AUTOSAR Adaptive Linux Executable, AUTOSAR Adaptive | CMake, Cadence Xcelium (64-bit
Linux), Catkin, CMake, Colcon Tools, eProsima 2.x Project, IBIS-AMI GNU gcc/g++ cross-compiler source code |
gmake (64-bit Windows), IBIS-AMI GNU gcc/g++ cross-compiler | gmake (64-bit Windows), IBIS-AMI Microsoft Visual
C++ 2017 v15.0 | nmake (64-bit Windows), IBIS-AMI Microsoft Visual C++ 2019 v16.0 | nmake (64-bit Windows),
IBIS-AMI Microsoft Visual C++ 2022 v17.0 | nmake (64-bit Windows), IBIS-AMI MinGW64 | gmake (64-bit Windows),
Intel oneAPI 2021 (w/Microsoft Visual Studio 2017) | nmake (64-bit Windows), Intel oneAPI 2021 (w/Microsoft
Visual Studio 2019) | nmake (64-bit Windows), Intel oneAPI 2022 (w/Microsoft Visual Studio 2017) | nmake
(64-bit Windows), Intel oneAPI 2022 (w/Microsoft Visual Studio 2019) | nmake (64-bit Windows), Intel oneAPI
2022 (w/Microsoft Visual Studio 2022) | nmake (64-bit Windows), Intel oneAPI 2023 (w/Microsoft Visual Studio
2019) | nmake (64-bit Windows), Intel oneAPI 2023 (w/Microsoft Visual Studio 2022) | nmake (64-bit Windows),
Intel Parallel Studio XE 2020 (w/Microsoft Visual Studio 2017) | nmake (64-bit Windows), Intel Parallel Studio
XE 2020 (w/Microsoft Visual Studio 2019) | nmake (64-bit Windows), LCC-win64 v2.4.1 | gmake (64-bit Windows),
Mentor Graphics QuestaSim/Modelsim (32-bit Windows), Mentor Graphics QuestaSim/Modelsim (64-bit Linux), Mentor
Graphics QuestaSim/Modelsim (64-bit Windows), Microsoft Visual C++ 2017 v15.0 | CMake/Ninja (32-bit Windows),
Microsoft Visual C++ 2017 v15.0 | CMake/Ninja (64-bit Windows), Microsoft Visual C++ 2017 v15.0 | CMake/nmake
(32-bit Windows), Microsoft Visual C++ 2017 v15.0 | CMake/nmake (64-bit Windows), Microsoft Visual C++ 2017
v15.0 | nmake (64-bit Windows), Microsoft Visual C++ 2019 v16.0 | CMake/Ninja (32-bit Windows), Microsoft
Visual C++ 2019 v16.0 | CMake/Ninja (64-bit Windows), Microsoft Visual C++ 2019 v16.0 | CMake/nmake (32-bit
Windows), Microsoft Visual C++ 2019 v16.0 | CMake/nmake (64-bit Windows), Microsoft Visual C++ 2019 v16.0 |
nmake (64-bit Windows), Microsoft Visual C++ 2022 v17.0 | CMake/Ninja (32-bit Windows), Microsoft Visual C++
2022 v17.0 | CMake/Ninja (64-bit Windows), Microsoft Visual C++ 2022 v17.0 | CMake/nmake (32-bit Windows),
Microsoft Visual C++ 2022 v17.0 | CMake/nmake (64-bit Windows), Microsoft Visual C++ 2022 v17.0 | nmake (64-bit
Windows), Microsoft Visual Studio Project 2017 | CMake (32-bit Windows), Microsoft Visual Studio Project 2017 |
CMake (64-bit Windows), Microsoft Visual Studio Project 2019 | CMake (32-bit Windows), Microsoft Visual Studio
Project 2019 | CMake (64-bit Windows), Microsoft Visual Studio Project 2022 | CMake (32-bit Windows), Microsoft
Visual Studio Project 2022 | CMake (64-bit Windows), MinGW64 | CMake/gmake (64-bit Windows), MinGW64 |
CMake/Ninja (64-bit Windows), MinGW64 | gmake (64-bit Windows), NVIDIA CUDA (w/Microsoft Visual C++ 2017) |
nmake (64-bit Windows), NVIDIA CUDA (w/Microsoft Visual C++ 2019) | nmake (64-bit Windows), NVIDIA CUDA
(w/Microsoft Visual C++ 2022) | nmake (64-bit Windows), RTI Connext 6.x Project, RTI Connext Micro 2.4 Project,
Simulink Real-Time Linux arm64 Remote Build Toolchain, Simulink Real-Time Linux x64 Remote Build Toolchain,
Simulink Real-Time Toolchain, Synopsys VCS (64-bit Linux), Xilinx Vivado Simulator (64-bit Linux), Xilinx
Vivado Simulator (64-bit Windows)".
Error in coder.make.internal.TMFProps (line 325)
lToolchain = extractToolchainAttributesFromName...
Error in coder.make.internal.getTMFProperties (line 51)
lTMFProperties = coder.make.internal.TMFProps(lTemplateMakefile, lMexCompilerKey);
Error in coder.internal.getMexCompilerForModel
Error in coder.internal.getMexCompilerForModel
Error in coder.internal.ModelCompInfo/createModelCompInfoPrivate
Error in coder.internal.ModelCompInfo.createModelCompInfo
Error in slbuild_private
Error in slbuild_private
Error in sl_feval
Error in coder.internal.codegenAndCompile
Error in slbuild
Error in slbuild
Error in rtwbuild
My installation is set up to use MSVS 2019 to compile C code:
>> mex -setup C
Renamed options file 'C:\Users\...\AppData\Roaming\MathWorks\MATLAB\R2024a\mex_C_win64.xml' to 'C:\Users\...\AppData\Roaming\MathWorks\MATLAB\R2024a\mex_C_win64_backup.xml'.
MEX configured to use 'Microsoft Visual C++ 2019 (C)' for C language compilation.
My model configuration parameter setting for Code Generation -> Build process -> Toolchain is set to Automatically locate an installed toolchain, which I believe is required by my ert.tlc system target file setting.
What can I do to fix this error?
  6 comentarios
Engenuity
Engenuity el 2 de Jul. de 2024 a las 17:39
Editada: Engenuity el 2 de Jul. de 2024 a las 17:40
@Umar I'm unable to modify that setting...it's greyed out. I assume that it's unavailable because of the target, but 'll experiement with finding a setting to make it available again, such as a custom target file as you suggested.
Umar
Umar el 2 de Jul. de 2024 a las 17:42
Sounds great, please keep me updated.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Build Configuration en Help Center y File Exchange.

Productos


Versión

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by