| MATLAB Central > MATLAB Newsreader > MEX Setup for Mac OS X 10.6 |
|
|
|
Hello, |
|
Subject: MEX Setup for Mac OS X 10.6 From: Brian Arnold Date: 11 Feb, 2010 22:21:23 Message: 2 of 14 |
|
Hi Christian, |
|
Hi Brian, since Christian didn't respond I'm going to ask this for him. I am running OSX 10.6.2, and I have XCode 3.1.2. I'm not sure why I don't have XCode 3.2, but I'm downloading it now. If I look in Developer/usr/bin/ there are files named gcc-4.0 and gcc-4.2, as well as an alias named gcc that's currently pointing to gcc-4.0. |
|
Hi Robert, |
|
Thanks for your help. I don't remember making a startup script, and I can't find any .login, .bash, or similar files. 'echo $PATH' gives me '/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin'. |
|
Subject: MEX Setup for Mac OS X 10.6 From: Brian Arnold Date: 14 Apr, 2010 15:29:17 Message: 6 of 14 |
|
Hi Robert, |
|
Ok, the problem seems to be that the mex command has to include all .cpp files involved in the project at once. So if you have alpha.cpp, bravo.cpp and charlie.cpp that all reference functions or classes defined in each other, you can't just type "mex alpha.cpp" even if it's the main file. You have to type: |
|
Brian Arnold <Brian.Arnold@mathworks.com> wrote in message <hpl74k$6cn$1@fred.mathworks.com>... |
|
Hi Remus, |
|
Subject: MEX Setup for Mac OS X 10.6 From: Alberto Luviano Date: 2 Oct, 2011 23:14:13 Message: 10 of 14 |
|
Hi Brian, |
|
|
|
Subject: MEX Setup for Mac OS X 10.6 From: Alberto Luviano Date: 3 Oct, 2011 03:40:31 Message: 12 of 14 |
|
Hi Steven: |
|
|
|
Hi, I didn't read through this entire thread so I apologize if this is already settled, but I was having a similar problem and fixed it very easily. See here: |
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.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| mex mac os x lion | Stephen | 10 Apr, 2012 00:38:21 |
| path | Robert | 5 Oct, 2011 13:24:30 |
| mex | Robert | 5 Oct, 2011 13:24:30 |
| gcc compiler | Alberto Luviano | 2 Oct, 2011 19:19:15 |
| mex | Alberto Luviano | 2 Oct, 2011 19:19:15 |
| mac os x lion | Alberto Luviano | 2 Oct, 2011 19:19:15 |
| mex | Robert | 7 Apr, 2010 11:09:19 |
| mac | Christian | 11 Feb, 2010 16:49:05 |
| osx | Christian | 11 Feb, 2010 16:49:05 |
| compiler | Christian | 11 Feb, 2010 16:49:05 |
| mex | Christian | 11 Feb, 2010 16:49:05 |
Contact us at files@mathworks.com
