problems with rapid accelerator model
조회 수: 11 (최근 30일)
이전 댓글 표시
When I try to compile Rapid accelerator model, I get this:
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)
댓글 수: 0
답변 (1개)
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!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!