Re: xPC target w/ Matlab 2009a - unable to build model



Hi Gabriel,

The error message makes me believe that there is some compiler environment/path issue on the PC you are working on.

When you do a mex -setup are you able to see the Watcom 1.7 compiler?

If you are able to see the Watcom 1.7 compiler in mex -setup choose it and see if you are able to build the RTW demo model "rtwdemo_f14".

Also, are you setting the xPC Compiler through xPC Explorer?

Anish Anthony
The MathWorks


"Gabriel " <elgao68@xxxxxxxxx> wrote in message <h4tr2a$m3q$1@xxxxxxxxxxxxxxxxxx>...
Hi Anish,
I tried Open Watcom 1.7 but I get the following error during build time:

Error building Real-Time Workshop target for block diagram 'test1'. MATLAB error message: Undefined function or method 'RTW.BuildInfoString' for input arguments of type 'char'.

Any idea what the problem can be?
Thanks,
Gabriel

"Anish Anthony" <anish.anthony@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message <h4tfkm$5lq$1@xxxxxxxxxxxxxxxxxx>...
Hi Gabriel,

Watcom 1.8 is not supported in MATLAB R2009a. Download Watcom 1.7

http://openwatcom.mirrors.skynet.be/pub/ftp.openwatcom.org/archive/

the one released on 18 Aug 2007

Hope this helps.

Anish Anthony
The MathWorks

"Gabriel " <elgao68@xxxxxxxxx> wrote in message <h4t9i8$mkc$1@xxxxxxxxxxxxxxxxxx>...
I recently upgraded to Matlab 2009a, and I'm having trouble building an XPC Target model. I've tried two different compilers -Visual C++ Express 2008 and Open Watcom 1.8- to build a very simple model, but I get errors in each case:

========================================
Open Watcom 1.8 is apparently able to build the model, but when it downloads it to the target computer I get the following message from the target:
Unable to load DLL dependency: KERNEL32.DLL.GetEnvironmetStringsA
error: 127
Could not load model; corrupt file

=========================================
With Visual C++ Express 2008 I get the following output during the build:

Setting environment for using Microsoft Visual Studio 2008
(If you have another version of Visual Studio or Visual C++ installed and wish
to use its tools from the command line, run vcvars32.bat for that version.)
C:\Tactor_project\Matlab_code\test_tactor_code\cosa_xpc_rtw>cd .
C:\Tactor_project\Matlab_code\test_tactor_code\cosa_xpc_rtw>nmake -f
cosa.mk GENERATE_REPORT=0 EXT_MODE=1

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
NMAKE : fatal error U1065: invalid option '-'
Stop.

C:\Tactor_project\Matlab_code\test_tactor_code\cosa_xpc_rtw>echo The
make command returned an error of 2
The make command returned an error of 2

C:\Tactor_project\Matlab_code\test_tactor_code\cosa_xpc_rtw>An_error_occurred_during_the_call_to_make
'An_error_occurred_during_the_call_to_make' is not recognized as an
internal or external command,
operable program or batch file.

Any help will be appreciated.
=========================================
Gabriel
.



Relevant Pages

  • Re: Amusing C, amusing compiler
    ... In visual studio 2005, if the struct T haven't defined, ... the visual studio 2005, also give an run-time error message, said ptr ... compiler DJGPP's assemble tell me that, the foo is optimized by the ...
    (comp.lang.c)
  • Re: error in compiling 2002 code in 2005
    ... i have code build in visual studio 2002. ... The error message is correct, what you post here is invalid C++. ... compiler's include paths to your project settings? ... ->I had not added other's compiler include path ...
    (microsoft.public.vc.mfc)
  • Re: Error a: _mayn.c:12 illegal return type, found int expected void
    ... > a given compiler writer allows or forbids is ... The error message I recieved was in plain english ... >Do you, Jacob, perhaps have a belief that all C programers ... the purpose of lint is to provide error messages. ...
    (comp.compilers.lcc)
  • understanding segmentation faults
    ... Is "segmentation fault" an error message that is issued by the operating ... not a problem that the compiler vendors can easily solve. ... technical terminology an "array section"?). ...
    (comp.lang.fortran)
  • Re: operator function
    ... >> of them have anything to do with what the error message seems ... Setting (int h, int m, int s, int TT) ... Now the compiler knows, that it is safe to use that function on a const ... >> operator returns a Setting object. ...
    (alt.comp.lang.learn.c-cpp)