Stand-alone application on a non-Matlab machine

Stand-alone application on a non-Matlab machine

Post by Steve Irwi » Sat, 05 Mar 2005 07:54:02


Is it possible to create a "truly" stand-alone application using the mcc
compiler (ie. without the need for Matlab specific library files)?

I've created an executable using mcc -m on Linux with Matlab R13. It
works fine if I call it within Matlab using !, but from the command line
I got the error message;

error while loading shared libraries: libmat.so: cannot open shared
object file: No such file or directory

... and several similar error messages for various files.

I copied each of the "missing files" from their respective Matlab paths
into /usr/lib/ and now it runs fine on this machine. (In hindsight, this
could have probably been done by using a few "setenv" commands.)

If I want to run the application on a machine without Matlab, does this
mean that I would have to copy each of the necessary library files?
A quick search suggested that in Matlab 7 there is an MCRInstaller which
seems as though it effectively copies the Matlab libraries - would this
be backward compatible for R13?

Alternatively, is it possible to avoid the need for these library files
if I want to run this application on a machine without Matlab? In other
words, can the necessary libraries be included in the application somehow?

Any comments greatly appreciated.

Lata,
Steve
 
 
 

Stand-alone application on a non-Matlab machine

Post by Titus Edel » Sat, 05 Mar 2005 17:32:16


Hi Steve,
no, using the MCRInstaller from R14 does not work. The corresponding
installer for R13 is called mglInstaller and is found in
<MATLAB>extern\lib\glnx

Titus

"Steve Irwin" < XXXX@XXXXX.COM > schrieb im Newsbeitrag

 
 
 

Stand-alone application on a non-Matlab machine

Post by Steve Irwi » Sat, 05 Mar 2005 19:07:49


thanks for that Titus...i'll give it a proper try next week.

'avagoodweegend

lata,
steve