mex problem :: can't map file, errno=22

  • Follow


Hi, I really hope I will get an answer to this thread.

I'm trying to port a C++ function for an image based object segmentation written and compiled on a fedora linux system, a mex-file was created and run successfully on matlab.
Now when trying to create a mex-file for a Mac based OSX 10.5 (intel based) with Matlab (7.9 / 64-bit - maci64) I get the following error:

ld: warning in /Applications/MATLAB_R2009b.app/extern/lib/maci64/mexFunction.map, file is not of required architecture
ld: in /Applications/MATLAB_R2009b.app/bin/maci64, can't map file, errno=22
collect2: ld returned 1 exit status
make[2]: *** [mex_category_db.mexmaci64] Error 1
make[1]: *** [recognition/] Error 2
make: *** [matlab] Error 2

I hope someone can help on this as I can't figure out what is the problem on this error and what required architecture is mentioned in here, is it related to Matlab architecture, OS architecture, or the compiler architecture?

Many Thanks
0
Reply Musef 3/22/2010 5:15:22 PM

Hello!

I found your post and I have a similar problem with mex files. 
I have to compile a mex file (originally compiled on Win32 and running successfully) on my MAC Leopard OSX 10.5 (intel based). 
can you tell how you created a mex-file for your Mac? Did you fix the problem?
thank you a lot!

bye, 
a


"Musef Hlou" wrote in message <ho88ja$qa7$1@fred.mathworks.com>...
> Hi, I really hope I will get an answer to this thread.
> 
> I'm trying to port a C++ function for an image based object segmentation written and compiled on a fedora linux system, a mex-file was created and run successfully on matlab.
> Now when trying to create a mex-file for a Mac based OSX 10.5 (intel based) with Matlab (7.9 / 64-bit - maci64) I get the following error:
> 
> ld: warning in /Applications/MATLAB_R2009b.app/extern/lib/maci64/mexFunction.map, file is not of required architecture
> ld: in /Applications/MATLAB_R2009b.app/bin/maci64, can't map file, errno=22
> collect2: ld returned 1 exit status
> make[2]: *** [mex_category_db.mexmaci64] Error 1
> make[1]: *** [recognition/] Error 2
> make: *** [matlab] Error 2
> 
> I hope someone can help on this as I can't figure out what is the problem on this error and what required architecture is mentioned in here, is it related to Matlab architecture, OS architecture, or the compiler architecture?
> 
> Many Thanks
0
Reply amvegni (1) 1/24/2011 10:54:04 AM


1 Replies
596 Views

(page loaded in 0.375 seconds)

Similiar Articles:













7/24/2012 4:13:02 AM


Reply: