Cannot execute an mcc created standalone executable that employs a mex file

조회 수: 4 (최근 30일)
Dan
Dan 2011년 8월 8일
I've built a standalone executable that employs a mex file. When I attempt to run the standalone executable, I get this error (hand transcribed):
Cannot find authentication file 's:\analysis\GetIndex_mexw32.auth' Invalid mex file 's:\analysis\GetIndex.mex32'
Any help that anyone could provide to solve this problem would be appreciated.

답변 (3개)

Kaustubha Govind
Kaustubha Govind 2011년 8월 8일
This seems to have been a bug in versions older than R2006a, when the MATLAB Compiler Runtime is installed in a directory path containing spaces. What release of MATLAB did you use to compile the application? You could either try upgrading your MATLAB version, or install MCR in a directory without spaces in its path.
  댓글 수: 1
Dan
Dan 2011년 8월 8일
Am running MATLAB 2008a ... given that, does your installation directory theory still hold?

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


Image Analyst
Image Analyst 2011년 8월 8일
Did you try the FAQ: http://matlab.wikia.com/wiki/FAQ#My_standalone_executable_won.27t_run_on_the_target_computer._What_can_I_try.3F, particularly #3 where it talks about Dependency Walker. Maybe you forgot to ship some file with your executable.
  댓글 수: 1
Dan
Dan 2011년 8월 10일
I had not even attempted to deliver the product yet ... I was still just attempting to run the executable on the machine on which it was compiled.

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


Dan
Dan 2011년 8월 10일
Problem was solved by placing the mex file in the same directory as the m file that I was attempting to compile. Thanks to Tanmay Pai at the TMW.

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by