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:
Deploytool problems

Subject: Deploytool problems

From: Matthew O'Brien

Date: 1 Nov, 2010 10:35:03

Message: 1 of 2

Hi,

Im trying to use the matlab compiler deploy tool in revision 2008b. First i had a problem getting mbuild to run but i sorted that by changing the order of the environmental variables, however i now get this issue:

'cmd' is not recognized as an internal or external command,
operable program or batch file.
Error: An error occurred while shelling out to mbuild (error code = 1).
Unable to build executable.
??? Error using ==> mcc
Error executing mcc, return status = 1.

So far i have tried reinstalling matlab and installing on my D drive with no long file names or spaces (in case this was the problem) although i note this line appears in the verbose output:

--> if exist C:\DOCUME~1\OBRI10~1.SOL\LOCALS~1\Temp\mbuild_RRI4Py\templib.def del C:\DOCUME~1\OBRI10~1.SOL\LOCALS~1\Temp\mbuild_RRI4Py\templib.def
 
 --> if exist C:\DOCUME~1\OBRI10~1.SOL\LOCALS~1\Temp\mbuild_RRI4Py\templib_stub.obj del C:\DOCUME~1\OBRI10~1.SOL\LOCALS~1\Temp\mbuild_RRI4Py\templib_stub.obj

so i think matlab is still accessing areas where the directory structure has spaces.

Also i have checked i have the cmd command in the system32 windows folder and that it works using the run command in windows XP.

If anyone can help it would be much appreciated.

Thanks

Matt

Subject: Deploytool problems

From: Aurelien Queffurust

Date: 25 Nov, 2010 13:21:04

Message: 2 of 2

"Matthew O'Brien" <mob_ucl@yahoo.com> wrote in message <iam54n$mao$1@fred.mathworks.com>...
> Hi,
>
> Im trying to use the matlab compiler deploy tool in revision 2008b. First i had a problem getting mbuild to run but i sorted that by changing the order of the environmental variables, however i now get this issue:
>
> 'cmd' is not recognized as an internal or external command,
> operable program or batch file.
> Error: An error occurred while shelling out to mbuild (error code = 1).
> Unable to build executable.
> ??? Error using ==> mcc
> Error executing mcc, return status = 1.
>
> So far i have tried reinstalling matlab and installing on my D drive with no long file names or spaces (in case this was the problem) although i note this line appears in the verbose output:
>
> --> if exist C:\DOCUME~1\OBRI10~1.SOL\LOCALS~1\Temp\mbuild_RRI4Py\templib.def del C:\DOCUME~1\OBRI10~1.SOL\LOCALS~1\Temp\mbuild_RRI4Py\templib.def
>
> --> if exist C:\DOCUME~1\OBRI10~1.SOL\LOCALS~1\Temp\mbuild_RRI4Py\templib_stub.obj del C:\DOCUME~1\OBRI10~1.SOL\LOCALS~1\Temp\mbuild_RRI4Py\templib_stub.obj
>
> so i think matlab is still accessing areas where the directory structure has spaces.
>
> Also i have checked i have the cmd command in the system32 windows folder and that it works using the run command in windows XP.
>
> If anyone can help it would be much appreciated.
>
> Thanks
>
> Matt

There is a workaround in this bug report (it is fixed in 10a) :
http://www.mathworks.com/support/bugreports/565891

Aurélien
http://blog.developpez.com/matlab4geek/

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