Re: xPC target w/ Matlab 2009a - unable to build model
- From: "Anish Anthony" <anish.anthony@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 31 Jul 2009 20:25:04 +0000 (UTC)
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
- References:
- xPC target w/ Matlab 2009a - unable to build model
- From: Gabriel
- Re: xPC target w/ Matlab 2009a - unable to build model
- From: Anish Anthony
- xPC target w/ Matlab 2009a - unable to build model
- Prev by Date: Re: adding one data into an array
- Next by Date: PCA Materials
- Previous by thread: Re: xPC target w/ Matlab 2009a - unable to build model
- Next by thread: College Text Books
- Index(es):
Relevant Pages
|