How to set up Compiler Configuration?

Hi, I have set Compiler configuration using mex - setup. But one of my automation script invokes MATLAB instance as if run by the "system". And the invoke fails because, the compiler configuration is not set for the "system". DO any of you have any idea how to do it?
P.S. Just to provide some clarity, running MATLAB by "system", does not open the MATLAB GUI. And hence I am not able to run the mex -setup.
Your time is hugely appreciated,

 채택된 답변

Thorsten
Thorsten 2014년 12월 17일
편집: Thorsten 2014년 12월 17일

0 개 추천

When you run mex -setup you generate a personal mexopts.bat in your prefdir. Copy this to the system default lccopts.bat should solve your problem. And make a backup of lccopts.bat if you need the original lccopts.bat in the future.
Your prefdir is located in
prefdir
My lccopts.bat resides in C:\PROGRA~1\MATLAB\R2007b\bin\win32\mexopts\lccopts.bat

댓글 수: 1

ES
ES 2014년 12월 18일
Hi Thorsten, thanks for your answer and time. I tried the same. But the same error still exists.
"A 'Selected' compiler was not found. You may need to run mex -setup." Do you please have anymore information?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Titus Edelhofer
Titus Edelhofer 2014년 12월 18일

0 개 추천

Hi,
in this case invoke mex with the "-f" option: copy from your prefdir folder the mexopts.bat to where the source code is and in your call to mex do
mex -f mexopts.bat nameOfYourFile.c
Titus

댓글 수: 1

ES
ES 2014년 12월 18일
Thank you both for your inputs. I used your solutions, and I am able to run the tests now. Thanks for your time :)

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

질문:

ES
2014년 12월 17일

댓글:

ES
2014년 12월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by