Prev: Plotting percentage of data points in within a given range
Next: Anonymous, recursive, functions
From: Christoph on 22 Nov 2009 19:42 My simulink model runs fine in normal mode. In Accelerator mode I get the following error messages, which I find not very helpful. I have two compilers installed on my windows vista 64 bit machine as shown below and I get different errors depending which I choose in mex -setup. Any idea on what to do to fix or find the problem? Thank you, Christoph %%%%% COMPILERS %%%%% >> mex -setup Please choose your compiler for building external interface (MEX) files: Would you like mex to locate installed compilers [y]/n? y Select a compiler: [1] Microsoft Visual C++ 2008 SP1 in C:\Program Files (x86)\Microsoft Visual Studio 9.0 [2] Microsoft Visual C++ 2005 SP1 in C:\Program Files (x86)\Microsoft Visual Studio 8 [0] None %%%%% ERROR with compiler [1] %%%%% Embedded MATLAB parsing for model "HybridSimulatorControlled"...Done Embedded MATLAB code generation for model "HybridSimulatorControlled"........Done Embedded MATLAB compilation for model "HybridSimulatorControlled"... 1 file(s) copied. Done ### Building the Accelerator target for model: HybridSimulatorControlled ### Generating code into build directory: C:\Users\Christoph\Documents\549\Hybrid Simulator v03\Examples\juggling\HybridSimulatorControlled_accel_rtw ### Invoking Target Language Compiler on HybridSimulatorControlled.rtw tlc -r C:\Users\Christoph\Documents\549\Hybrid Simulator v03\Examples\juggling\HybridSimulatorControlled_accel_rtw\HybridSimulatorControlled.rtw C:\Program Files\MATLAB\R2009b\rtw\c\accel\accel.tlc -OC:\Users\Christoph\Documents\549\Hybrid Simulator v03\Examples\juggling\HybridSimulatorControlled_accel_rtw -IC:\Program Files\MATLAB\R2009b\rtw\c\accel -IC:\Users\Christoph\Documents\549\Hybrid Simulator v03\Examples\juggling\HybridSimulatorControlled_accel_rtw\tlc -IC:\Program Files\MATLAB\R2009b\rtw\c\tlc\mw -IC:\Program Files\MATLAB\R2009b\rtw\c\tlc\lib -IC:\Program Files\MATLAB\R2009b\rtw\c\tlc\blocks -IC:\Program Files\MATLAB\R2009b\rtw\c\tlc\fixpt -IC:\Program Files\MATLAB\R2009b\stateflow\c\tlc -aEnforceIntegerDowncast=1 -aFoldNonRolledExpr=1 -aInlineInvariantSignals=0 -aInlineParameters=0 -aLocalBlockOutputs=0 -aRollThreshold=5 -aForceBlockIOInitOptimize=0 -aGenerateReport=0 -aGenCodeOnly=0 -aRTWVerbose=1 -aIncludeHyperlinkInReport=0 -aLaunchReport=0 -aGenerateTraceInfo=0 -aForceParamTrailComments=0 -aGenerateComments=1 -aIgnoreCustomStorageClasses=1 -aIncHierarchyInIds=0 -aMaxRTWIdLen=128 -aShowEliminatedStatements=0 -aIncDataTypeInIds=0 -aInsertBlockDesc=0 -aIgnoreTestpoints=0 -aSimulinkBlockComments=1 -aInlinedPrmAccess="Literals" -aTargetFcnLib="ansi_tfl_table_tmw.mat" -aIsPILTarget=0 -aLogVarNameModifier="rt_" -aGenerateFullHeader=1 -aGenerateTraceInfo=0 -aIgnoreTestpoints=0 -aProtectedModelReferenceTarget=0 -p10000 ### Loading TLC function libraries ..... ### Initial pass through model to cache user defined code ... ### Caching model source code ........................................ ### Writing header file HybridSimulatorControlled_acc_types.h ### Writing header file HybridSimulatorControlled_acc.h ### Writing header file rt_nonfinite.h ### Writing source file rt_nonfinite.c .. ### Writing header file rt_zcfcn.h ### Writing source file rt_zcfcn.c ### Writing header file rt_rand.h ### Writing source file rt_rand.c .. ### Writing header file rtGetInf.h ### Writing source file rtGetInf.c ### Writing header file rtGetNaN.h .. ### Writing source file rtGetNaN.c ### Writing source file HybridSimulatorControlled_acc.c ### Writing header file HybridSimulatorControlled_acc_private.h ### Writing source file HybridSimulatorControlled_acc_data.c .. ### TLC code generation complete. ### Creating project marker file: rtw_proj.tmw .. ### Processing Template Makefile: C:\Program Files\MATLAB\R2009b\rtw\c\accel\accel_vcx64.tmf ### Creating HybridSimulatorControlled.mk from C:\Program Files\MATLAB\R2009b\rtw\c\accel\accel_vcx64.tmf ### Building HybridSimulatorControlled: .\HybridSimulatorControlled.bat C:\Users\Christoph\Documents\549\Hybrid Simulator v03\Examples\juggling\HybridSimulatorControlled_accel_rtw>call "C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\Tools\..\..\VC\vcvarsall" AMD64 The specified configuration type is missing. The tools for the configuration might not be installed. 'nmake' is not recognized as an internal or external command, operable program or batch file. The make command returned an error of 9009 'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command, operable program or batch file. ### Real-Time Workshop build procedure for model: 'HybridSimulatorControlled' aborted due to an error. ??? Error using ==> runJuggling at 24 Error due to multiple causes. Caused by: Error using ==> runJuggling at 24 Error(s) encountered while building model "HybridSimulatorControlled" Error using ==> runJuggling at 24 Problem creating Accelerator MEX file for model 'HybridSimulatorControlled'. Error returned is: Error(s) encountered while building model "HybridSimulatorControlled" %%%%% ERROR with compiler [2] %%%%% Embedded MATLAB parsing for model "HybridSimulatorControlled"...Done Embedded MATLAB code generation for model "HybridSimulatorControlled"........Done Embedded MATLAB compilation for model "HybridSimulatorControlled"...Making simulation target "HybridSimulatorControlled_sfun", ... C:\Users\Christoph\Documents\549\Hybrid Simulator v03\Examples\juggling\slprj\_sfprj\HybridSimulatorControlled\_self\sfun\src>call "mexopts.bat" 'nmake' is not recognized as an internal or external command, operable program or batch file. ??? Error using ==> runJuggling at 24 Error using ==> targetman>throw_make_error at 563 (SLSF Diagnostic).
From: Arnaud Miege on 23 Nov 2009 05:02 "Christoph " <dribusch(a)email.arizona.edu> wrote in message news:heclou$9sj$1(a)fred.mathworks.com... > My simulink model runs fine in normal mode. In Accelerator mode I get the > following error messages, which I find not very helpful. I have two > compilers installed on my windows vista 64 bit machine as shown below and > I get different errors depending which I choose in mex -setup. Any idea on > what to do to fix or find the problem? > > Thank you, > Christoph > > %%%%% > COMPILERS > %%%%% > >>> mex -setup > Please choose your compiler for building external interface (MEX) files: > > Would you like mex to locate installed compilers [y]/n? y > > Select a compiler: > [1] Microsoft Visual C++ 2008 SP1 in C:\Program Files (x86)\Microsoft > Visual Studio 9.0 > [2] Microsoft Visual C++ 2005 SP1 in C:\Program Files (x86)\Microsoft > Visual Studio 8 > > [0] None > > %%%%% > ERROR with compiler [1] > %%%%% > > Embedded MATLAB parsing for model "HybridSimulatorControlled"...Done > Embedded MATLAB code generation for model > "HybridSimulatorControlled"........Done > Embedded MATLAB compilation for model "HybridSimulatorControlled"... > 1 file(s) copied. > Done > ### Building the Accelerator target for model: HybridSimulatorControlled > ### Generating code into build directory: > C:\Users\Christoph\Documents\549\Hybrid Simulator > v03\Examples\juggling\HybridSimulatorControlled_accel_rtw > ### Invoking Target Language Compiler on HybridSimulatorControlled.rtw > tlc > -r > C:\Users\Christoph\Documents\549\Hybrid Simulator > v03\Examples\juggling\HybridSimulatorControlled_accel_rtw\HybridSimulatorControlled.rtw > C:\Program Files\MATLAB\R2009b\rtw\c\accel\accel.tlc > -OC:\Users\Christoph\Documents\549\Hybrid Simulator > v03\Examples\juggling\HybridSimulatorControlled_accel_rtw > -IC:\Program Files\MATLAB\R2009b\rtw\c\accel > -IC:\Users\Christoph\Documents\549\Hybrid Simulator > v03\Examples\juggling\HybridSimulatorControlled_accel_rtw\tlc > -IC:\Program Files\MATLAB\R2009b\rtw\c\tlc\mw > -IC:\Program Files\MATLAB\R2009b\rtw\c\tlc\lib > -IC:\Program Files\MATLAB\R2009b\rtw\c\tlc\blocks > -IC:\Program Files\MATLAB\R2009b\rtw\c\tlc\fixpt > -IC:\Program Files\MATLAB\R2009b\stateflow\c\tlc > -aEnforceIntegerDowncast=1 > -aFoldNonRolledExpr=1 > -aInlineInvariantSignals=0 > -aInlineParameters=0 > -aLocalBlockOutputs=0 > -aRollThreshold=5 > -aForceBlockIOInitOptimize=0 > -aGenerateReport=0 > -aGenCodeOnly=0 > -aRTWVerbose=1 > -aIncludeHyperlinkInReport=0 > -aLaunchReport=0 > -aGenerateTraceInfo=0 > -aForceParamTrailComments=0 > -aGenerateComments=1 > -aIgnoreCustomStorageClasses=1 > -aIncHierarchyInIds=0 > -aMaxRTWIdLen=128 > -aShowEliminatedStatements=0 > -aIncDataTypeInIds=0 > -aInsertBlockDesc=0 > -aIgnoreTestpoints=0 > -aSimulinkBlockComments=1 > -aInlinedPrmAccess="Literals" > -aTargetFcnLib="ansi_tfl_table_tmw.mat" > -aIsPILTarget=0 > -aLogVarNameModifier="rt_" > -aGenerateFullHeader=1 > -aGenerateTraceInfo=0 > -aIgnoreTestpoints=0 > -aProtectedModelReferenceTarget=0 > -p10000 > > > ### Loading TLC function libraries > > .... > ### Initial pass through model to cache user defined code > .. > ### Caching model source code > ....................................... > ### Writing header file HybridSimulatorControlled_acc_types.h > ### Writing header file HybridSimulatorControlled_acc.h > ### Writing header file rt_nonfinite.h > ### Writing source file rt_nonfinite.c > . > ### Writing header file rt_zcfcn.h > ### Writing source file rt_zcfcn.c > ### Writing header file rt_rand.h > ### Writing source file rt_rand.c > . > ### Writing header file rtGetInf.h > ### Writing source file rtGetInf.c > ### Writing header file rtGetNaN.h > . > ### Writing source file rtGetNaN.c > ### Writing source file HybridSimulatorControlled_acc.c > ### Writing header file HybridSimulatorControlled_acc_private.h > ### Writing source file HybridSimulatorControlled_acc_data.c > . > ### TLC code generation complete. > ### Creating project marker file: rtw_proj.tmw > . > ### Processing Template Makefile: C:\Program > Files\MATLAB\R2009b\rtw\c\accel\accel_vcx64.tmf > ### Creating HybridSimulatorControlled.mk from C:\Program > Files\MATLAB\R2009b\rtw\c\accel\accel_vcx64.tmf > ### Building HybridSimulatorControlled: .\HybridSimulatorControlled.bat > > C:\Users\Christoph\Documents\549\Hybrid Simulator > v03\Examples\juggling\HybridSimulatorControlled_accel_rtw>call "C:\Program > Files (x86)\Microsoft Visual Studio 8\Common7\Tools\..\..\VC\vcvarsall" > AMD64 > The specified configuration type is missing. The tools for the > configuration might not be installed. > 'nmake' is not recognized as an internal or external command, > operable program or batch file. > The make command returned an error of 9009 > 'An_error_occurred_during_the_call_to_make' is not recognized as an > internal or external command, > operable program or batch file. > ### Real-Time Workshop build procedure for model: > 'HybridSimulatorControlled' aborted due to an error. > ??? Error using ==> runJuggling at 24 > Error due to multiple causes. > > Caused by: > Error using ==> runJuggling at 24 > Error(s) encountered while building model "HybridSimulatorControlled" > Error using ==> runJuggling at 24 > Problem creating Accelerator MEX file for model > 'HybridSimulatorControlled'. Error > returned is: > Error(s) encountered while building model "HybridSimulatorControlled" > > > %%%%% > ERROR with compiler [2] > %%%%% > > Embedded MATLAB parsing for model "HybridSimulatorControlled"...Done > Embedded MATLAB code generation for model > "HybridSimulatorControlled"........Done > Embedded MATLAB compilation for model "HybridSimulatorControlled"...Making > simulation target "HybridSimulatorControlled_sfun", ... > > > > C:\Users\Christoph\Documents\549\Hybrid Simulator > v03\Examples\juggling\slprj\_sfprj\HybridSimulatorControlled\_self\sfun\src>call > "mexopts.bat" > 'nmake' is not recognized as an internal or external command, > operable program or batch file. > > > > ??? Error using ==> runJuggling at 24 > Error using ==> targetman>throw_make_error at 563 > (SLSF Diagnostic). > Did you select the X64 Compilers and Tools whenn installing Visual Studio? Have a look at note #6 on (assuming you are using R2009b): http://www.mathworks.com/support/compilers/R2009b/win64.html HTH, Arnaud
From: Ramesh Junnuri on 15 Dec 2009 08:26 Hello Christoph, To Solve your " 'nmake' is not recognized " issue run vcvars32.bat file from the folder you are getting this error. you can find this batch file in your MSVC installed files. Thanks & Regards Ramesh Junnuri "Christoph " <dribusch(a)email.arizona.edu> wrote in message <heclou$9sj$1(a)fred.mathworks.com>... > My simulink model runs fine in normal mode. In Accelerator mode I get the following error messages, which I find not very helpful. I have two compilers installed on my windows vista 64 bit machine as shown below and I get different errors depending which I choose in mex -setup. Any idea on what to do to fix or find the problem? > > Thank you, > Christoph > > %%%%% > COMPILERS > %%%%% > > >> mex -setup > Please choose your compiler for building external interface (MEX) files: > > Would you like mex to locate installed compilers [y]/n? y > > Select a compiler: > [1] Microsoft Visual C++ 2008 SP1 in C:\Program Files (x86)\Microsoft Visual Studio 9.0 > [2] Microsoft Visual C++ 2005 SP1 in C:\Program Files (x86)\Microsoft Visual Studio 8 > > [0] None > > %%%%% > ERROR with compiler [1] > %%%%% > > Embedded MATLAB parsing for model "HybridSimulatorControlled"...Done > Embedded MATLAB code generation for model "HybridSimulatorControlled"........Done > Embedded MATLAB compilation for model "HybridSimulatorControlled"... 1 file(s) copied. > Done > ### Building the Accelerator target for model: HybridSimulatorControlled > ### Generating code into build directory: C:\Users\Christoph\Documents\549\Hybrid Simulator v03\Examples\juggling\HybridSimulatorControlled_accel_rtw > ### Invoking Target Language Compiler on HybridSimulatorControlled.rtw > tlc > -r > C:\Users\Christoph\Documents\549\Hybrid Simulator v03\Examples\juggling\HybridSimulatorControlled_accel_rtw\HybridSimulatorControlled.rtw > C:\Program Files\MATLAB\R2009b\rtw\c\accel\accel.tlc > -OC:\Users\Christoph\Documents\549\Hybrid Simulator v03\Examples\juggling\HybridSimulatorControlled_accel_rtw > -IC:\Program Files\MATLAB\R2009b\rtw\c\accel > -IC:\Users\Christoph\Documents\549\Hybrid Simulator v03\Examples\juggling\HybridSimulatorControlled_accel_rtw\tlc > -IC:\Program Files\MATLAB\R2009b\rtw\c\tlc\mw > -IC:\Program Files\MATLAB\R2009b\rtw\c\tlc\lib > -IC:\Program Files\MATLAB\R2009b\rtw\c\tlc\blocks > -IC:\Program Files\MATLAB\R2009b\rtw\c\tlc\fixpt > -IC:\Program Files\MATLAB\R2009b\stateflow\c\tlc > -aEnforceIntegerDowncast=1 > -aFoldNonRolledExpr=1 > -aInlineInvariantSignals=0 > -aInlineParameters=0 > -aLocalBlockOutputs=0 > -aRollThreshold=5 > -aForceBlockIOInitOptimize=0 > -aGenerateReport=0 > -aGenCodeOnly=0 > -aRTWVerbose=1 > -aIncludeHyperlinkInReport=0 > -aLaunchReport=0 > -aGenerateTraceInfo=0 > -aForceParamTrailComments=0 > -aGenerateComments=1 > -aIgnoreCustomStorageClasses=1 > -aIncHierarchyInIds=0 > -aMaxRTWIdLen=128 > -aShowEliminatedStatements=0 > -aIncDataTypeInIds=0 > -aInsertBlockDesc=0 > -aIgnoreTestpoints=0 > -aSimulinkBlockComments=1 > -aInlinedPrmAccess="Literals" > -aTargetFcnLib="ansi_tfl_table_tmw.mat" > -aIsPILTarget=0 > -aLogVarNameModifier="rt_" > -aGenerateFullHeader=1 > -aGenerateTraceInfo=0 > -aIgnoreTestpoints=0 > -aProtectedModelReferenceTarget=0 > -p10000 > > > ### Loading TLC function libraries > > .... > ### Initial pass through model to cache user defined code > .. > ### Caching model source code > ....................................... > ### Writing header file HybridSimulatorControlled_acc_types.h > ### Writing header file HybridSimulatorControlled_acc.h > ### Writing header file rt_nonfinite.h > ### Writing source file rt_nonfinite.c > . > ### Writing header file rt_zcfcn.h > ### Writing source file rt_zcfcn.c > ### Writing header file rt_rand.h > ### Writing source file rt_rand.c > . > ### Writing header file rtGetInf.h > ### Writing source file rtGetInf.c > ### Writing header file rtGetNaN.h > . > ### Writing source file rtGetNaN.c > ### Writing source file HybridSimulatorControlled_acc.c > ### Writing header file HybridSimulatorControlled_acc_private.h > ### Writing source file HybridSimulatorControlled_acc_data.c > . > ### TLC code generation complete. > ### Creating project marker file: rtw_proj.tmw > . > ### Processing Template Makefile: C:\Program Files\MATLAB\R2009b\rtw\c\accel\accel_vcx64.tmf > ### Creating HybridSimulatorControlled.mk from C:\Program Files\MATLAB\R2009b\rtw\c\accel\accel_vcx64.tmf > ### Building HybridSimulatorControlled: .\HybridSimulatorControlled.bat > > C:\Users\Christoph\Documents\549\Hybrid Simulator v03\Examples\juggling\HybridSimulatorControlled_accel_rtw>call "C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\Tools\..\..\VC\vcvarsall" AMD64 > The specified configuration type is missing. The tools for the > configuration might not be installed. > 'nmake' is not recognized as an internal or external command, > operable program or batch file. > The make command returned an error of 9009 > 'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command, > operable program or batch file. > ### Real-Time Workshop build procedure for model: 'HybridSimulatorControlled' aborted due to an error. > ??? Error using ==> runJuggling at 24 > Error due to multiple causes. > > Caused by: > Error using ==> runJuggling at 24 > Error(s) encountered while building model "HybridSimulatorControlled" > Error using ==> runJuggling at 24 > Problem creating Accelerator MEX file for model 'HybridSimulatorControlled'. Error > returned is: > Error(s) encountered while building model "HybridSimulatorControlled" > > > %%%%% > ERROR with compiler [2] > %%%%% > > Embedded MATLAB parsing for model "HybridSimulatorControlled"...Done > Embedded MATLAB code generation for model "HybridSimulatorControlled"........Done > Embedded MATLAB compilation for model "HybridSimulatorControlled"...Making simulation target "HybridSimulatorControlled_sfun", ... > > > > C:\Users\Christoph\Documents\549\Hybrid Simulator v03\Examples\juggling\slprj\_sfprj\HybridSimulatorControlled\_self\sfun\src>call "mexopts.bat" > 'nmake' is not recognized as an internal or external command, > operable program or batch file. > > > > ??? Error using ==> runJuggling at 24 > Error using ==> targetman>throw_make_error at 563 > (SLSF Diagnostic).
|
Pages: 1 Prev: Plotting percentage of data points in within a given range Next: Anonymous, recursive, functions |