Why am I unable to compile a C shared library on a MAC Snow Leopard with MATLAB Compiler 7.11 (R2009b) ?
조회 수: 1 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2009년 11월 23일
편집: MathWorks Support Team
2017년 1월 27일
I am trying to compile a C shared library from MATLAB 7.9 (R2009b) and I get the following errors:
/Applications/MATLAB_R2009b.app/bin/mbuild: line 1749: gcc-4.0: command not found
mbuild: compile of ' "/Users/panagas/work/yo_wrapper/lab_lib/src/imuLabLib/src/libImuCalibration.c"' failed.
Error: An error occurred while shelling out to mbuild (error code = 1).
I was able to compile this same code earlier with Leopard. I recently upgraded to Snow Leopard.
채택된 답변
MathWorks Support Team
2017년 1월 27일
When upgrading from Leopard to Snow Leopard, XCode does not get upgraded by default. In order to be able to compile your code with the MATLAB Compiler 7.11 (R2009b), you should do either one of two things:
1) Upgrade your XCode to Snow Leopard.
2) Create a symbolic link from /usr/bin to the actual location where GCC is installed. The name of the symbolic link should be gcc-4.0. The command to create this link will be
ln -s MYTARGET gcc-4.0
where MYTARGET is the location where the GCC compiler is installed on your system.
댓글 수: 0
추가 답변 (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!