mex setup on Mac OS x (10.7.5) and matlab R2013b-64bit

4 views (last 30 days)
Hi everybody,
I am trying to install MAXDET optimization software which is a c based software and I need matlab interface such as mex compiler to use this package. I do not know how I should proceed to setup mex compiler for my 64bit R2013b matlab on mac system. When I type mex -setup in matlab command I get this:
Options files control which compiler to use, the compiler and link command
options, and the runtime libraries to link against.
Using the 'mexsh -setup' command selects an options file that is
placed in /Users/localadmin/.matlab/R2013b and used by default for 'mexsh'. An options
file in the current working directory or specified on the command line
overrides the default options file in /Users/localadmin/.matlab/R2013b.
To override the default options file, use the 'mexsh -f' command
(see 'mexsh -help' for more information).
The options files available for mexsh are:
1: /Applications/MATLAB/MATLAB_R2013b.app/bin/mexopts.sh :
Template Options file for building MEX-files
0: Exit with no changes
Enter the number of the compiler (0-1):
How do I proceed? I looked at the similar posts but I could not figure out how it works. I have Xcode 4.6.3 installed on my laptop with command line toolbox installed and when I type gcc -v on command line I get this:
"Using built-in specs. Target: i686-apple-darwin11 Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)"
So I guess my c compiler is properly installed.
Thanks for your help, I desperately need to make this work!
  1 Comment
Walter Roberson
Walter Roberson on 6 Dec 2013
What messages are you getting that suggest to you that your mex is not set up properly?

Sign in to comment.

Answers (0)

Categories

Find more on Troubleshooting in MATLAB Compiler SDK in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!