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: Mex compiling problem - comp.soft-sys.matlabmex problem :: can't map file, errno=22 - comp.soft-sys.matlab ... Hi, I really hope I will get an answer to this thread. I'm trying to port a C++ function for an image ... mex compiling error with header file - comp.soft-sys.matlab ...mex problem :: can't map file, errno=22 - comp.soft-sys.matlab ... I have to compile a mex file (originally compiled on Win32 and running ... Now I get Error 1017 Can't ... mex on 64 bits mac os 10.6.3 - comp.soft-sys.matlabmex problem :: can't map file, errno=22 - comp.soft-sys.matlab ... mex on 64 bits mac os 10.6.3 - comp.soft-sys.matlab mex problem :: can't map file, errno=22 - comp.soft ... gfortran 4.4 and mex files on Linux - comp.soft-sys.matlab ...mex problem :: can't map file, errno=22 - comp.soft-sys.matlab ... gfortran 4.4 and mex files on Linux - comp.soft-sys.matlab ... I can open matlab, mex ... use the ifort ... Creating static libs to use in mex - comp.soft-sys.matlab ...mex problem :: can't map file, errno=22 - comp.soft-sys.matlab ..... file, errno=22 - comp.soft-sys.matlab ... > Now when trying to create a mex ... open matlab, mex the ... passwd file problem,,,help - comp.unix.solarismex problem :: can't map file, errno=22 - comp.soft-sys.matlab ... Help needed: read 3-dimensional array from a MAT-file in Fortran ... ... map" > > have you fixed ... building on osx - comp.compilers.lccmex problem :: can't map file, errno=22 - comp.soft-sys.matlab ... building on osx - comp.compilers.lcc mex problem :: can't map file, errno=22 - comp.soft-sys.matlab ... 64bit linux, mex, Fortran, and -largeArrayDims - comp.soft-sys ...... 6.26-2-amd64 #1 SMP Tue Mar 9 22:29 ... large array access, but if it can't compile, then there is a more serious problem. mex ... How to use the 32bit mex file in a 64bit ... Unable to compile CUDA mex in Matlab R2010a 64bit CUDA - comp.soft ...Running > mex -setup may resolve this problem. Can you read error ... NO /implib:"%LIB_NAME%.x" /MAP:"%OUTDIR%%MEX ... UNKNOWN' branch since it can't find that file or ... Help needed: read 3-dimensional array from a MAT-file in Fortran ...You can't do that ... mex.h is strictly for C applications ... LIB_NAME%.x" /MAP:"%OUTDIR%%MEX_NAME%%MEX_EXT%.map ... problems in .MAT file.. creation - comp.soft-sys.matlab Help ... can't map file, errno=22 for architecture i386 - The macosxhints ...The macosxhints Forums > Working with OS X > OS X Developer: can't map file, errno=22 for ... I figured out the problem is that I was missing the -c switch when building ... ./configure fails - C compiler cannot create executables ...... installation or configuration problem: C ... return type defaults to 'int' ld: can't open output file for writing: conftest.dSYM, errno ... This is frustrating as, errno 22 is ... 7/24/2012 4:13:02 AM
|