Create a standalone application on linux
Show older comments
Hi everyone,
I'm Mirko from Italy. I need some helps to compiling/create a stand alone application from .m files created from a colleague. To simplify the job and understanding the process I work with a simple function without gui/toolbox calling.
Let's start:
linux/matlab command answer
OS is linux
uname -r 2.6.34.7-0.7-desktop
arch x86_64
matlab version:2009b
My simple example snippet work on matlab env. It get two input parameters and perform a sum.
.m
function [result] = DoSum(x1, x2)
% This function add two numbers
X = str2num(x1)
Y = str2num(x2);
result=X+Y;
end
I try to run
deploytool
but it doesn't work (command not found) maybe this tool is available only on newer version...
I try also with (inside folder that contains my .m file)
mcc DoSum.m -o DoSum
the answer is
*g++: error trying to exec 'cc1obj': execvp: No such file or directory *
Then I try with mbuild, to check compiler setting.
mbuild If 'mbuild' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf mbuild
I search trough the file system but nothing like "mbuild" was found.
I'm only an external consultant, maybe the MathLab compiler is not well installed or need to be configured, but I don't know how to find this information or fix it. Can you help me?
Thank you in advance, Mirko
1 Comment
Chirag Gupta
on 3 Jan 2012
Can you type ver on the MATLAB Command Prompt to check whether the MATLAB Compiler is installed? If installed, it will show up as one of the installed toolboxes!
R2009b did include deploytool
Answers (3)
Andreas Goser
on 3 Jan 2012
Please provide the output of the command
ver
Then we can see if the needed products are installed.
1 Comment
Andreas Goser
on 4 Jan 2012
Your license 620030 simply does not includes the products you need for this task. I will contact a MathWorks person for you, that can help you.
Walter Roberson
on 3 Jan 2012
0 votes
mbuild and deploytool need to be invoked from inside MATLAB.
Mirko
on 3 Jan 2012
2 Comments
Walter Roberson
on 3 Jan 2012
deploytool, not displaytool
Anyhow, you do not have the Compiler toolbox installed. It is an optional (and expensive) product.
Mirko
on 3 Jan 2012
Categories
Find more on C Shared Library Integration in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!