problems with rapid accelerator model

8 ビュー (過去 30 日間)
Semion Kurochkin
Semion Kurochkin 2021 年 4 月 11 日
回答済み: Harsh Mahalwar 2024 年 2 月 23 日
When I try to compile Rapid accelerator model, I get this:
Unable to build a standalone executable to simulate the model 'exp1' in rapid accelerator mode.
Caused by:
  • xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance Please download a supported version of Xcode at /Applications/MATLAB_R2019b.app/rtw/c/tools/macsdkver.pl line 24. xcrun clang -arch x86_64 -isysroot /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=10.9 -c -fno-common -fexceptions -DTGTCONN -DON_TARGET_WAIT_FOR_START=0 -DRSIM_PARAMETER_LOADING -O0 -DEXT_MODE -DIS_RAPID_ACCEL -DMODEL=exp1 -DHAVESTDIO -DUNIX -DNRT -DRSIM_WITH_SL_SOLVER -DENABLE_SLEXEC_SSBRIDGE=1 -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I. -I../../.. -I/Users/derpy/work/Matlab/Group2 -I/Users/derpy/work/Matlab/Group2/slprj/raccel/exp1 -I/Applications/MATLAB_R2019b.app/extern/include -I/Applications/MATLAB_R2019b.app/simulink/include -I/Applications/MATLAB_R2019b.app/rtw/c/src -I/Applications/MATLAB_R2019b.app/rtw/c/src/rapid -I/Applications/MATLAB_R2019b.app/rtw/c/raccel -I/Applications/MATLAB_R2019b.app/rtw/c/src/ext_mode/common -I/Applications/MATLAB_R2019b.app/toolbox/coder/rtiostream/src -I/Applications/MATLAB_R2019b.app/toolbox/coder/rtiostream/src/rtiostreamtcpip -I/Applications/MATLAB_R2019b.app/toolbox/coder/rtiostream/src/utils /Applications/MATLAB_R2019b.app/rtw/c/src/rt_logging.c clang: warning: no such sysroot directory: '/Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk' [-Wmissing-sysroot] /Applications/MATLAB_R2019b.app/rtw/c/src/rt_logging.c:21:10: fatal error: 'stdlib.h' file not found #include <stdlib.h> ^~~~~~~~~~ 1 error generated. gmake: *** [rt_logging.o] Error 1
Why does it happen? One week ago it compiles properly.
Matlab 2019b, MacOS 10.14.6, Xcode 11.3 (11C29)

回答 (1 件)

Harsh Mahalwar
Harsh Mahalwar 2024 年 2 月 23 日
Hi Semion,
I can recognise that you are unable to use the Rapid Accelerator mode in Simulink due to the error mentioned above.
This error seems to be caused due to some issue in installation of Xcode on your mac.
To fix it, point Xcode-select to the Xcode app Developer directory using the following command: (This worked with MATLAB R2022a for me)
sudo xcode-select -s /Applications/Xcode11.3.1.app/Contents/Developer
(Make sure the Xcode app path is correct.)
There is a similar stack overflow thread for this issue, you can check it out from the link attached here:
I hope this helps, thanks!

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by