Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
deploy standalone app on mac - desperate! please help

Subject: deploy standalone app on mac - desperate! please help

From: Jveer

Date: 24 Dec, 2008 19:15:05

Message: 1 of 6

does anyone know how to deploy a GUI using compiler for mac (OS X 10.5.6)??

i am so disappointed with how unhelpful the matlab documentation is regarding deployment on mac.

first of all when i do 'mbuild -setup' it cant even find my xcode like windows finds visual studio. i've been able to deploy on windows but here i'm totally clueless

please advise.

Subject: deploy standalone app on mac - desperate! please help

From: Jveer

Date: 29 Dec, 2008 05:15:03

Message: 2 of 6

no replies...guys come on...seriously...where are the mac user?

doesnt anyone know how to create a standalone application on mac os x?

Subject: deploy standalone app on mac - desperate! please help

From: Aurelien Queffurust

Date: 29 Dec, 2008 12:52:02

Message: 3 of 6


> first of all when i do 'mbuild -setup' it cant even find my xcode like windows finds visual studio.

Is your Xcode compiler supported ?
You need to have a supported version, for example if you are using R2008b:
http://www.mathworks.com/support/compilers/current_release/macintosh.html

Subject: deploy standalone app on mac - desperate! please help

From: Jveer

Date: 29 Dec, 2008 13:08:01

Message: 4 of 6

> Is your Xcode compiler supported ?
> You need to have a supported version, for example if you are using R2008b:
> http://www.mathworks.com/support/compilers/current_release/macintosh.html


yes it is supported. i'm using R2008b and i've got xcode 3.0 installed. i tried 2.5 as well but when i do mbuild -setup all i get are these useless ones:

>> mbuild -setup

    Options files control which compiler to use, the compiler and link command
    options, and the runtime libraries to link against.

    Using the 'mbuild -setup' command selects an options file that is
    placed in ~/.matlab/R2008b and used by default for 'mbuild'. An options
    file in the current working directory or specified on the command line
    overrides the default options file in ~/.matlab/R2008b.
 
    To override the default options file, use the 'mbuild -f' command
    (see 'mbuild -help' for more information).

The options files available for mbuild are:

  1: /Applications/MATLAB_R2008b.app/bin/mbuildopts.sh :
      Build and link with MATLAB C-API or MATLAB Compiler-generated library via the system ANSI C/C++ compiler
 

  0: Exit with no changes

Enter the number of the compiler (0-1):

maybe i'm missing something out? anything in particular i should do after installibng code to get matlab to detect it?

Subject: deploy standalone app on mac - desperate! please help

From: Aurelien Queffurust

Date: 29 Dec, 2008 13:47:02

Message: 5 of 6

"Jveer " <jveer@jveer.com> wrote in message <gjai3h$fjd$1@fred.mathworks.com>...
> > Is your Xcode compiler supported ?
> > You need to have a supported version, for example if you are using R2008b:
> > http://www.mathworks.com/support/compilers/current_release/macintosh.html
>
>
> yes it is supported. i'm using R2008b and i've got xcode 3.0 installed. i tried 2.5 as well but when i do mbuild -setup all i get are these useless ones:
>
> >> mbuild -setup
>
> Options files control which compiler to use, the compiler and link command
> options, and the runtime libraries to link against.
>
> Using the 'mbuild -setup' command selects an options file that is
> placed in ~/.matlab/R2008b and used by default for 'mbuild'. An options
> file in the current working directory or specified on the command line
> overrides the default options file in ~/.matlab/R2008b.
>
> To override the default options file, use the 'mbuild -f' command
> (see 'mbuild -help' for more information).
>
> The options files available for mbuild are:
>
> 1: /Applications/MATLAB_R2008b.app/bin/mbuildopts.sh :
> Build and link with MATLAB C-API or MATLAB Compiler-generated library via the system ANSI C/C++ compiler
>
>
> 0: Exit with no changes
>
> Enter the number of the compiler (0-1):
>
> maybe i'm missing something out? anything in particular i should do after installibng code to get matlab to detect it?


What you get is normal. The mbuild -setup command returns a list of "detected" compilers only under Windows. As explained in the message you can edit the option file. To know which version of gcc compiller you have, you can type for example in MATLAB prompt:
>>gcc -v
But have you tried to compile magicsquare.m for example buy using mcc or deploytool?

Subject: deploy standalone app on mac - desperate! please help

From: Jveer

Date: 29 Dec, 2008 14:59:02

Message: 6 of 6

this is what gcc -v gives:

>> mbuild gcc -v
-> mbuildopts.sh sourced from directory (DIR = $HOME/.matlab/$REL_VERSION)
   FILE = /Users/jveer/.matlab/R2008b/mbuildopts.sh
-> TMW_ROOT = /Applications/MATLAB_R2008b.app
-> CC = gcc-4.0
-> CC flags:
         CFLAGS = -fno-common -no-cpp-precomp -I/Applications/MATLAB_R2008b.app/extern/include -DUNIX -DX11
         CDEBUGFLAGS = -g
         COPTIMFLAGS = -O3 -DNDEBUG
         CLIBS = -L/Applications/MATLAB_R2008b.app/bin/maci -lmwmclmcrrt -L/Applications/MATLAB_R2008b.app/sys/os/maci
         arguments =
-> LD = gcc-4.0
-> Link flags:
         LDFLAGS = -Wl,-flat_namespace -undefined suppress -bind_at_load
         LDDEBUGFLAGS = -g
         LDOPTIMFLAGS = -O
         arguments =

i have no clue what that means! it still doesnt show my gcc 4.01 compiler installed with xcode 3.0 (the one mentioned on the matlab website)

can u give me a stepwise explanation of what to do please?
or maybe if u have a mac can u send me your option file? will that work?

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us