Questions tagged [mcc]

mcc stand for MATLAB® Compiler™. The command line utility that can compile MATLAB code into stand-alone application or C/C++ library.

Official product site: http://www.mathworks.com/help/toolbox/compiler/

92 questions
3
votes
2 answers

How to run external .m code in a MATLAB compiled application?

I've got a MATLAB project, which I compile in order to have a single executable file, using MCC. Then I would want to know if it's possible for an external programmer to execute some of his .m files within the .exe, without re-compiling the whole…
adrien.pain
  • 443
  • 2
  • 11
  • 18
2
votes
1 answer

Compile standalone Windows .exe using MATLAB on a mac

I am currently using this code to compile a standalone .app file of a MATLAB GUI on my mac: mcc -m eotvos.m -a ./* This works perfectly and I have a fully-functional mac executable. Is there a way to create a windows executable on my mac? I know…
Alex Nichols
  • 876
  • 5
  • 12
  • 23
2
votes
0 answers

Does MATLAB MCR contain MCC?

I have a script which I need to run remotely using a Docker image. For compatibility with another pre-compiled MATLAB application (SPM), I need to use a specific MATLAB version in the Docker, and also a different OS. Thing is, I don't have access to…
jessexknight
  • 756
  • 7
  • 20
2
votes
1 answer

The mcc compiler "Depfun error" when building dll with .NET-dependencies and Enumerations That Encapsulate Data

I ran into problems in MATLAB R2010b when creating a DLL that uses .NET-integration and enumerations with encapsulate data. Example: There is a .NET Assembly which is used in MATLAB, let's call it "MyAssembly" (MyAssembly.dll). There Matlab…
iroln
  • 1,116
  • 1
  • 16
  • 16
2
votes
1 answer

No command MCC found

I am trying to create an executable using Matlab 2013a in Ubuntu 14.04, and after some research, I understood the following command, creates the executable mcc -mv matlabfile.m However, when I run this command, I get following error No…
Lakshmi Narayanan
  • 5,220
  • 13
  • 50
  • 92
2
votes
2 answers

How to compile Matlab script for specified Matlab Runtime (MCR)

I have Matlab 2010a installed on my machine, and MCR 7.6 installed on client's machine. I try to figure out how can I compile my code for MCR 7.6. Currently mcc comlipes scripts for 7.9 ( which has been installed with Matlab). Does mcc has any…
Ivan
  • 1,103
  • 2
  • 10
  • 15
2
votes
1 answer

Loading Compiled Matlab Shared Library in Python Using Ctypes

I am trying to do Incomplete Cholesky Decomposition in Python, but no direct Python package I can find. Since the most available codes I can find online are written in Matlab, I want to take a detour by compiling the matlab code to a shared…
panc
  • 817
  • 2
  • 14
  • 30
2
votes
1 answer

MCC compiler "Internal Error: Could not determine class of method"

I have Matlab script that I am trying to compile as an executable that will run on a headless server as part of a large batch process. The script calls functions and classes written by several non-programmers (scientists) over the span of more than…
nick topper
  • 105
  • 7
2
votes
0 answers

How to use mcc, pass a C++ jpg image buffer to MATLAB and receive a cropped image back from MATLAB

I am using mcc on linux to build a C++ application that uses MATLAB for computing and image processing. The C++ application calls MATLAB functions and needs to pass a jpeg image buffer as a parameter to MATLAB. I have tried various combinations of…
2
votes
2 answers

Is it possible to link the Matlab compiler to Visual C++ compiler?

I am using Matlab 2010 and VS2010. I have the Matlab Compiler Runtime installed in my system. Whenever if run command mcc -setup I get only one compiler lcc. This compiler gives a lot of errors when used to build a C++ shared library using…
Animesh Pandey
  • 5,900
  • 13
  • 64
  • 130
1
vote
1 answer

Why does Matlab standalone application exit with error "TooManyOutputs"?

I have created a standalone application in Matlab, actually it works, it displays the desired output but it closes immediately, not even enough time to examine the output and read the error message on DOS (standalone mode) that…
Mary Ann
  • 133
  • 1
  • 10
1
vote
2 answers

Runtime error for MCC compiled program using parfor

I have problems running a program compiled with MCC that uses parfor. The non-compiled .m version works (no bug). When I run the compiled version, I get "distcomp.remoteparfor" is undefined. I believe I exactly have the error described in the…
1
vote
1 answer

The oneM2M Mcc interface?

I know that interface Mca is the channel throught CRUD operations comme from AE to CSE. But, what about Mcc? Mcc is proposed to connect two CSEs. But which kind of operations are executed through this Mcc interface? Please, a sample operation would…
Alex Co
  • 11
  • 1
1
vote
3 answers

error while compiling Matlab mex file on Ubuntu 11.04 with Matlab R2011a

I am trying to compile a shared library which will call MATLAB function on Ubuntu 11.04. Like the command: mcc - B cpplib:libStepCluster StepCluster.m Get the following error. /usr/lib/i38-linux-gnu/i686-linux-gnu/4.5.2/cc1plus:…
Eric Chu
  • 21
  • 1
  • 3
1
vote
1 answer

How to know if an mcc-compiled MATLAB function is called in MATLAB or via standalone application?

I have a MATLAB function that has been compiled into a standalone application with mcc. When the user works with the function through the standalone application, output arguments are not used and instead I would like to ensure that the user gives…
If_You_Say_So
  • 1,195
  • 1
  • 10
  • 25