From: Samuel Rivera on
Has this issue been resolved? I am having the same problem, but -arch
i386 is already in the maci section, for CFLAGS and CXXFLAGS. I don't have thing called SHLLDFLAGS. Also get 'MACI' when run 'computer'. Running OSX 10.6 and matlab R2009a 32 bit.

Any help?

-Sam

"Devi Parikh" <deviparikh(a)gmail.com> wrote in message <h8v0u2$fgb$1(a)fred.mathworks.com>...
> Hi,
>
> I have a 64 bit MacPro running Mac OS 10.6. I am running a 32 bit Matlab. I am trying to compile a mex file, and I get the following error:
>
> mex -O -I/Users/dparikh/Documents/work/NS1/imrender_v2.3/vgg -Itrw-s/ vgg_trw_bp.cxx trw-s/MRFEnergy.cpp trw-s/minimize.cpp trw-s/ordering.cpp trw-s/treeProbabilities.cpp
> ld: warning: in vgg_trw_bp.o, file is not of required architecture
> ld: warning: in MRFEnergy.o, file is not of required architecture
> ld: warning: in minimize.o, file is not of required architecture
> ld: warning: in ordering.o, file is not of required architecture
> ld: warning: in treeProbabilities.o, file is not of required architecture
> ld: warning: in /Applications/MATLAB_R2008b.app/bin/maci/libmx.dylib, file is not of required architecture
> ld: warning: in /Applications/MATLAB_R2008b.app/bin/maci/libmex.dylib, file is not of required architecture
> ld: warning: in /Applications/MATLAB_R2008b.app/bin/maci/libmat.dylib, file is not of required architecture
> ??? Error using ==> feval
> Invalid MEX-file '/Users/dparikh/Documents/work/NS1/imrender_v2.3/vgg/vgg_trw_bp.mexmaci':
> dlopen(/Users/dparikh/Documents/work/NS1/imrender_v2.3/vgg/vgg_trw_bp.mexmaci, 1): no suitable
> image found. Did find:
> /Users/dparikh/Documents/work/NS1/imrender_v2.3/vgg/vgg_trw_bp.mexmaci: mach-o, but wrong
> architecture.
>
> Is this because I have a 32 bit Matlab, and so it is creating .mexmaci (instead of .mexmaci64?) files that are not the right ones for my 64 bit machine? Any help would be really appreciated!
>
> Thanks,
> D