Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
mcc gets depfun error

Subject: mcc gets depfun error

From: David

Date: 25 Apr, 2013 15:05:09

Message: 1 of 2

Hello,

im using mcc to compile come *.m files into jar package. I tried to copy the command from MATLAB to do that, becouse im forced to do that in command line. Anyway when i run the command:

mcc -W 'java:mypackage,MyClass' -T link:lib -d C:\Users\Jero\Documents\MATLAB\mypackage\src -w enable:specified_file_mismatch -w enable:repeated_file -w enable:switch_ignored -w enable:missing_lib_sentinel -w enable:demo_license -v class{MyClass:C:\Users\Jero\Documents\MATLAB\func.m}

Im getting error: " 'java:mypackage " is not a valid -W option argument.

After few attempts of getting it right, i figured out, that mcc was having a problem with ' quotes. But now im getting different error:

Depfun error: 'Unable to locate MyClass as a function on the MATLAB path'

Could anyone help me to resolve this? Thanks

Subject: mcc gets depfun error

From: David

Date: 25 Apr, 2013 15:50:10

Message: 2 of 2

Ok, so i finally managed to solve it by myself.

The problem was as originaly the quotes. They were really needed and not sure with cmd, he needs them to be there " ... ".

So the working command is:

mcc -W "java:aaaa,MyClass" -T link:lib -d C:\Users\Jero\Documents\MATLAB\aaaa\src -w enable:specified_file_mismatch -w enable:repeated_file -w enable:switch_ignored -w enable:missing_lib_sentinel -w enable:demo_license -v class{MyClass:C:\Users\Jero\Documents\MATLAB\funkce.m}

SOLVED!

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us