Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help about compiling one m file that calls mex file

3 views
Skip to first unread message

Edwards

unread,
Jun 6, 2005, 4:57:06 PM6/6/05
to
Hi,there;
I have a question about building a stand-alone application by
compiling m file which calls mex function.
Everything goes well in my maching including compiling by compiler
4.0 version(i use mcc -m main.m command), runing .exe file in another
folder. But when i deployed to another computer without matlab and
run it, it reported an error as follows:
"unable to load mex file : $deploly folder\main_mcr\main\mexfunc.dll
and the specified module could not be found."
"Invalid mex file: $deploly folder\main_mcr\main\mexfunc.dll
and the specified module could not be found"

As far as i know, it should be no problem to use mcc -m command to
compile a m file that calls mex function. But it turns out they could
not open mex dll file.And I checked the specified folder in the error
information and the .dll file is there.

Any kind of help is appreciated!

Edwards

unread,
Jun 6, 2005, 5:37:56 PM6/6/05
to
BTW, My desktop OS is windows XP AND matlab version is v7.0

thanks,
Edwards

Edwards

unread,
Jun 6, 2005, 5:38:02 PM6/6/05
to
BTW, My desktop OS is windows XP AND matlab version is v7.0

thanks,
Edwards

Herbert Ramoser

unread,
Jun 7, 2005, 3:19:49 AM6/7/05
to

Did you install all required DLLs on the other computer? Everything is
contained in MATLAB7\toolbox\compiler\deploy\win32\MCRInstaller.exe

-Herbert

Steven Lord

unread,
Jun 7, 2005, 10:16:45 AM6/7/05
to

"Edwards" <gan...@buffalo.edu> wrote in message
news:ef09e...@webx.raydaftYaTP...

In the documentation for the MATLAB Compiler:

http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/

in the Getting Started chapter, look in the Quick Start section. There's a
page in that section titled "Deploying Components to Other Machines". [Look
in the left-hand frame; it'll be on the first page of that frame.] Follow
the instruction on that page to deploy your application to a machine that
does not have MATLAB installed on it.

--
Steve Lord
sl...@mathworks.com


Edwards

unread,
Jun 7, 2005, 2:52:05 PM6/7/05
to
Thank for you reply. But I already did exactly the same thing as
documentation said. any other idea?

Peter Webb

unread,
Jun 10, 2005, 1:21:31 PM6/10/05
to
This is an indication that the PATH on the target machine is not set up
properly. Make sure that the directory containing the MCR libraries is on
the PATH on the deployment machine.

"Edwards" <gan...@buffalo.edu> wrote in message

news:ef09...@webx.raydaftYaTP...

Gang Liu

unread,
Jun 10, 2005, 3:37:02 PM6/10/05
to
Hi,Peter Webb;
I just checked the system path and the directory containing the MCR
libraries is on the path
\C:\Program Files\MathWorks\MATLAB Component
Runtime\v70\runtime\win32. I assume this path has all the libraries.
Correct me if i am wrong.

thanks,
edwards

0 new messages