• No results found

MATLAB Compiler

In document MATLAB Compiler 4 User s Guide (Page 172-176)

Typically, problems that occur when building standalone C and C++

applications involvembuild. However, it is possible that you may run into some difficulty with MATLAB Compiler. A good source for additional troubleshooting information for MATLAB Compiler is the MATLAB Compiler Product Support page at the MathWorks Web site.

Borland Compiler Does Not Work with the Builder Products. The only compiler that supports the building of COM objects is Microsoft Visual C/C++ (Versions 6.0, 7.1, and 8.0). The Microsoft Visual C# Compiler for the .NET Framework (Versions 1.1 and 2.0) is the only compiler that supports the building of .NET components.

libmwlapack: load error: stgsy2_. This error occurs when a customer has both R13 and R14 version of MATLAB or MCR/MGL specified in the directory path and the R14 version fails to load because of a lapack incompatability.

Licensing Problem. If you do not have a valid license for MATLAB Compiler, you will get an error message similar to the following when you try to access MATLAB Compiler.

Error: Could not check out a Compiler License:

No such feature exists.

If you have a licensing problem, contact The MathWorks. A list of contacts at The MathWorks is provided at the beginning of this manual.

MATLAB Compiler Does Not Generate Application. If you experience other problems with MATLAB Compiler, contact Technical Support at The MathWorks athttp://www.mathworks.com/contact_TS.html.

"MATLAB file may be corrupt" Message Appears. If you receive the message

This MATLAB file does not have proper version information and may

MATLAB Compiler

when you run your standalone that was generated by MATLAB Compiler, you should check the following:

• Do you have astartup.mfile that callsaddpath? If so, this will cause run-time errors. As a workaround, useisdeployedto have theaddpath command execute only from MATLAB. For example, use a construct such as:

if ~isdeployed addpath(path);

end

• Verify that the.ctfarchive file self extracted and that you have write permission to the directory.

• Verify that none of the files in the<application name>_mcrdirectory have been modified or removed. Modifying this directory is not supported, and if you have modified it, you should delete it and redeploy or restart the application.

• If none of the above possible causes apply, then the error is likely caused by a corruption. Delete the<application name>_mcrdirectory and run the application.

Missing Functions in Callbacks. If your application includes a call to a function in a callback string or in a string passed as an argument to the fevalfunction or an ODE solver, and this is the only place in your M-file this function is called, MATLAB Compiler will not compile the function. MATLAB Compiler does not look in these text strings for the names of functions to compile. See“Fixing Callback Problems: Missing Functions” on page 12-3 for more information.

"MCRInstance not available" Message Appears. If you receive the message MCRInstance not available when you try to run a standalone application that was generated with MATLAB Compiler, it could be that the MCR is not located properly on your path or the CTF file is not in the proper directory.

The UNIX verification process is the same, except you use the appropriate UNIX path information.

8-5

To verify that the MCR is properly located on your path, from a development Windows machine, confirm thatmatlabroot\bin\win32, wherematlabroot is your root MATLAB directory, appears on your system path ahead of any other MATLAB installations.

From a Windows target machine, verify that<mcr_root>\<ver>\run time\win32, where<mcr_root>is your root MCR directory, appears on your system path. To verify that the CTF file that MATLAB Compiler generated in the build process resides in the same directory as your program’s file, look at the directory containing the program’s file and make sure the corresponding .ctffile is also there.

Unable to Run MCRInstaller.exe on a Target Windows Machine. If you receive the message

This advertised application would not be installed because it might be Unsafe. Contact your administrator to change the installation user interface option of the package to basic.

when you try to install the MATLAB Component Runtime (MCR) using MCRInstaller.exeon a Windows machine, you need to log in as an

administrator. If this is not possible and you have no objection to installing the MCR in the default location, try the following command from a DOS window:

msiexec /qb /I MCRInstaller.msi

MCRInstaller.msishould have been placed in the installation directory after your first attempt to install the MCR. This command will start the installer using the basic UI configuration, which will execute at a lower security level.

warning LNK4248: unresolved typeref token (01000028) for

’mxArray_tag’; image may not run test3.obj. If you receive this message while compiling an MSVC application that calls a MATLAB Compiler generated shared library, you can safely ignore it. The message is due to changes in Visual C/C++ 2005 compiler and will not interfere with successful running of your application. If you desire, you can suppress the

MATLAB Compiler

at the beginning of your code and after theincludestatements, the warning will not recur.

8-7

In document MATLAB Compiler 4 User s Guide (Page 172-176)

Related documents