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:
nmake not recognized in MATLAB 2009b

Subject: nmake not recognized in MATLAB 2009b

From: Mark Dranias

Date: 22 Jan, 2010 08:49:05

Message: 1 of 5

I have MATLAB 2009b 64 bit running on Windows 7. I have installed Visual Studio 9.0 (professional) and the Intel 64 bit compiler (evaluation).

 I am trying to run an install program that makes the call to the c++ compiler !nmake. The error I get is that 'nmake' is not recognized as an internal or external command,
operable program or batch file.
If I open a commandshell in windows, run vcvars64.bat, nmake is executable everywhere (except in matlab). If I try to !vcvars64 in matlab, nmake still doesnt work.
I have run mex -setup and set the compiler to Visual Studio 9.0 without major incident (a warning).

Help please!

Subject: nmake not recognized in MATLAB 2009b

From: Frank Maier

Date: 25 Jan, 2010 13:52:02

Message: 2 of 5

"Mark Dranias" <mdranias@netscape.net> wrote in message <hjboq0$ebt$1@fred.mathworks.com>...
> I have MATLAB 2009b 64 bit running on Windows 7. I have installed Visual Studio 9.0 (professional) and the Intel 64 bit compiler (evaluation).
>
> I am trying to run an install program that makes the call to the c++ compiler !nmake. The error I get is that 'nmake' is not recognized as an internal or external command,
> operable program or batch file.
> If I open a commandshell in windows, run vcvars64.bat, nmake is executable everywhere (except in matlab). If I try to !vcvars64 in matlab, nmake still doesnt work.
> I have run mex -setup and set the compiler to Visual Studio 9.0 without major incident (a warning).
>
> Help please!

Hello Mark,

how did you start matlab after you executed vcvars ? AFAIK vcvars only changes the environment inside the shell where it is executed.

Try following:
start the shell
execute vcvars
execute Matlab from that shell.

BR
Frank

Subject: nmake not recognized in MATLAB 2009b

From: Ender

Date: 10 Aug, 2011 16:23:10

Message: 3 of 5

"Frank" wrote in message <hjk7m2$oc1$1@fred.mathworks.com>...
> "Mark Dranias" <mdranias@netscape.net> wrote in message <hjboq0$ebt$1@fred.mathworks.com>...
> > I have MATLAB 2009b 64 bit running on Windows 7. I have installed Visual Studio 9.0 (professional) and the Intel 64 bit compiler (evaluation).
> >
> > I am trying to run an install program that makes the call to the c++ compiler !nmake. The error I get is that 'nmake' is not recognized as an internal or external command,
> > operable program or batch file.
> > If I open a commandshell in windows, run vcvars64.bat, nmake is executable everywhere (except in matlab). If I try to !vcvars64 in matlab, nmake still doesnt work.
> > I have run mex -setup and set the compiler to Visual Studio 9.0 without major incident (a warning).
> >
> > Help please!
>
> Hello Mark,
>
> how did you start matlab after you executed vcvars ? AFAIK vcvars only changes the environment inside the shell where it is executed.
>
> Try following:
> start the shell
> execute vcvars
> execute Matlab from that shell.
>
> BR
> Frank

I am having a similar problem. I am not familiar with the vcvars function, but I am familiar with the error. Here is the request for support that I posted yesterday.

am trying to run the bouncing ball demo from the MATLAB webinar located on this webpage:
http://www.mathworks.com/products/3d-animation/demos.html

However, I cannot get the program to run. I do not know if I needed to setup any software (e.g. compiler) before I started the demo, but I get this error whenever I try to run my simulation:

Message Source Reported by
Make Error bouncing_ball Make

Making simulation target "bouncing_ball_sfun", ...


 
I:\Matlab\Simulink\slprj\_sfprj\bouncing_ball\_self\sfun\src>call "mexopts.bat"
'nmake' is not recognized as an internal or external command,
operable program or batch file.


I tried setting up 'mex -setup' to use a compiler. I chose Microsoft Visual C++ 2008 Express as my compiler. Then when I run the program I get that error.

Has anyone trying replicating this demo? Can anyone at MATLAB give me the contact info of the presenter of this webinar so that I can ask him directly

--Ender--

Subject: nmake not recognized in MATLAB 2009b

From: gunesh

Date: 3 Apr, 2013 13:14:05

Message: 4 of 5

"Ender " <jr147@msstate.edu> wrote in message <j1ub9e$ejh$1@newscl01ah.mathworks.com>...
> "Frank" wrote in message <hjk7m2$oc1$1@fred.mathworks.com>...
> > "Mark Dranias" <mdranias@netscape.net> wrote in message <hjboq0$ebt$1@fred.mathworks.com>...
> > > I have MATLAB 2009b 64 bit running on Windows 7. I have installed Visual Studio 9.0 (professional) and the Intel 64 bit compiler (evaluation).
> > >
> > > I am trying to run an install program that makes the call to the c++ compiler !nmake. The error I get is that 'nmake' is not recognized as an internal or external command,
> > > operable program or batch file.
> > > If I open a commandshell in windows, run vcvars64.bat, nmake is executable everywhere (except in matlab). If I try to !vcvars64 in matlab, nmake still doesnt work.
> > > I have run mex -setup and set the compiler to Visual Studio 9.0 without major incident (a warning).
> > >
> > > Help please!
> >
> > Hello Mark,
> >
> > how did you start matlab after you executed vcvars ? AFAIK vcvars only changes the environment inside the shell where it is executed.
> >
> > Try following:
> > start the shell
> > execute vcvars
> > execute Matlab from that shell.
> >
> > BR
> > Frank
>
> I am having a similar problem. I am not familiar with the vcvars function, but I am familiar with the error. Here is the request for support that I posted yesterday.
>
> am trying to run the bouncing ball demo from the MATLAB webinar located on this webpage:
> http://www.mathworks.com/products/3d-animation/demos.html
>
> However, I cannot get the program to run. I do not know if I needed to setup any software (e.g. compiler) before I started the demo, but I get this error whenever I try to run my simulation:
>
> Message Source Reported by
> Make Error bouncing_ball Make
>
> Making simulation target "bouncing_ball_sfun", ...
>
>
>
> I:\Matlab\Simulink\slprj\_sfprj\bouncing_ball\_self\sfun\src>call "mexopts.bat"
> 'nmake' is not recognized as an internal or external command,
> operable program or batch file.
>
>
> I tried setting up 'mex -setup' to use a compiler. I chose Microsoft Visual C++ 2008 Express as my compiler. Then when I run the program I get that error.
>
> Has anyone trying replicating this demo? Can anyone at MATLAB give me the contact info of the presenter of this webinar so that I can ask him directly
>
> --Ender--


Hi Ender,

I am getting the same error when I edit the Matlab Function Block editor and try to build it again. I have set the Compiler to Microsoft Visual C++ 2010 Express.

Did you found any solution to it? If so please post it here.

Thanks

Gunesh

Subject: nmake not recognized in MATLAB 2009b

From: studentprojecthelp@gmail.com

Date: 24 Jan, 2014 14:27:31

Message: 5 of 5

can anyone solved this problem?

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