matlab - mcc producing an unresponsive executable -


i trying compile matlab function using mcc function. function writes line of text file.

function hello()     ofid = fopen('hello.txt','w');     fprintf(ofid, 'hello there, matlab.\n');     fclose(ofid); end 

it runs expected when called matlab console. however, when compile file executable using mcc

/opt/matlab/matlab2008a/bin/mcc -m hello.m 

and run as

./hello 

it seems run forever , produces no hello.txt file. both executable matlab function files in matlab working directory.

i unable see can possibly wrong in use of mcc. please help.

typically, need setup matlab runtime environment when executing mcc compiled applications.

you'll more mileage first time using deploytool (from command line) compile hello.m program here. matlab's application builder produce run_hello.sh file can peruse through see how setup libraries. then, execute program call this:

./run_hello.sh /applications/matlab/matlab_runtime/v90/

note: have included generic location matlab runtime environment, actual location vary depending on platform , version of matlab built application with.


Comments

  1. Casino, Resort & Spa - MapyRO
    Find the BEST & NEW CASINO, RESORT & SPA 부천 출장안마 in 영천 출장안마 Gary, IN at 강릉 출장샵 MapyRO. See activity, reviews and information 강원도 출장마사지 for Casino, Resort 김천 출장샵 & Spa in Gary, IN.

    ReplyDelete

Post a Comment

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -