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

Matlab Compiler

0 views
Skip to first unread message

Bilal

unread,
Sep 2, 2010, 3:30:24 PM9/2/10
to
I'm trying to make my program as a stand-alone executable using the Matlab Compiler. I realize that any PC I use to run the file must have the MCR installed on it. When i click "Add MCR" when building the project, it adds a file called MCRInstaller.exe, but i cant find it in the project folder once the build is complete. What am i doing wrong? How can i install this file on other computers if i cant find it?

Matt J

unread,
Sep 2, 2010, 3:45:24 PM9/2/10
to
"Bilal " <bilalh...@gmail.com> wrote in message <i5ou0g$quk$1...@fred.mathworks.com>...

> I'm trying to make my program as a stand-alone executable using the Matlab Compiler. I realize that any PC I use to run the file must have the MCR installed on it. When i click "Add MCR" when building the project, it adds a file called MCRInstaller.exe, but i cant find it in the project folder once the build is complete. What am i doing wrong? How can i install this file on other computers if i cant find it?
===========

As I recall, the package .exe contains both MCR.exe (because you chose to add it) and the application .exe . When you execute the package .exe, it will unpack both of these.

Bilal

unread,
Sep 3, 2010, 7:56:08 AM9/3/10
to
"Matt J " <mattja...@THISieee.spam> wrote in message <i5ousj$obk$1...@fred.mathworks.com>...


When I deploy the compiler, I place my program as the "main file" in the build tab. Then in the package tab, i say "Add MCR". once the build is complete, a folder is created with the name of my program. Inside that folder, there are two folders. One is called "distrb" which has a readme file and the .exe file for my program. The other folder is called "src" and contains another .exe file for my program, two .txt files and three C Source files. There is no other .exe file. I'm guessing i'm doing something wrong.

Matt J

unread,
Sep 3, 2010, 12:17:20 PM9/3/10
to
"Bilal " <bilalh...@gmail.com> wrote in message <i5qnoo$flu$1...@fred.mathworks.com>...

> When I deploy the compiler, I place my program as the "main file" in the build tab. Then in the package tab, i say "Add MCR". once the build is complete, a folder is created with the name of my program. Inside that folder, there are two folders. One is called "distrb" which has a readme file and the .exe file for my program. The other folder is called "src" and contains another .exe file for my program, two .txt files and three C Source files. There is no other .exe file. I'm guessing i'm doing something wrong.

=================

How big is the .exe in distrib and what happens when you execute it?

Matt J

unread,
Sep 3, 2010, 12:21:20 PM9/3/10
to
"Bilal " <bilalh...@gmail.com> wrote in message <i5qnoo$flu$1...@fred.mathworks.com>...

> When I deploy the compiler, I place my program as the "main file" in the build tab. Then in the package tab, i say "Add MCR". once the build is complete, a folder is created with the name of my program. Inside that folder, there are two folders. One is called "distrb" which has a readme file and the .exe file for my program. The other folder is called "src" and contains another .exe file for my program, two .txt files and three C Source files. There is no other .exe file. I'm guessing i'm doing something wrong.

==============

After you run the build, you need to run a packaging step, as explained here

http://www.kxcad.net/cae_MATLAB/toolbox/compiler/bqrw9k_-1.html

Either use the menu option Tools > Package or use the package icon. The packaging step will create a self-extracting executable containing the MCR.

Bilal

unread,
Sep 3, 2010, 3:12:20 PM9/3/10
to
"Matt J " <mattja...@THISieee.spam> wrote in message <i5r7a0$eha$1...@fred.mathworks.com>...

Yea thats what i was doing wrong. I went back and looked up some demo's again...i missed the packaging part last time i watched the demo. Thanks anyway.

0 new messages