mex error ARCH: Unsupported platform.

hey, I am trying to use mex -setup but when I input commend "mex -setup", the error message comes as below: Error: ARCH: Unsupported platform. but I still can select the compiler and continue it. can anyone tell me what is the error message mean? is it effect the work? Im using matlab2013a and windows8 64bit thanks very much for your kindly answer

댓글 수: 21

What do you get when running:
system(fullfile(matlabroot,'bin','mexext.bat'));
wei
wei 2013년 4월 23일
hey, thanks for your helping, when I run your commend I got ^D:Program^ can not be recognized (because im using Japaese, so this message comes in Japnaese) Error: MEXEXT: Unsupported platform
wei
wei 2013년 4월 23일
btw, I installed matlab2013a in D:program files/
Walter Roberson
Walter Roberson 2013년 4월 23일
편집: Walter Roberson 2013년 4월 23일
Friedrich's command did not work because you have a space in the path. But you should not need it; you should be able to just type
mexext
Also we will need to see the output of
computer('arch')
wei
wei 2013년 4월 23일
thank you Walter, I got mexw64 when I type mexext; and win64 when I typed computer('arch'); can you tell me what should I do for this?
Yes, right my fault. I asked for mexext.bat because its easily debugable whereas mexext in MATLAB isn't. This should work now:
system(['"',fullfile(matlabroot,'bin','mexext.bat'),'"']);
wei
wei 2013년 4월 23일
Thank you Friedrich, I run your commend but it wont work as last time,do I did it wrong? what should I do now?
Walter Roberson
Walter Roberson 2013년 4월 23일
Is it still saying that D:Program cannot be recognized? Or is it just saying MEXEXT: Unsupported platform now?
wei
wei 2013년 4월 24일
Hi Walter, It says both
curdir = cd( fullfile(matlabroot, 'bin') );
system('mexext.bat');
cd(curdir);
wei
wei 2013년 4월 24일
Hey,Walter, These commend also not work, still the same both error message come. I checked all the commend you told me in my old pc win7, everything works fine
wei
wei 2013년 4월 24일
dear Walter, forgot to say, my current dir is D:MATLAB
Walter Roberson
Walter Roberson 2013년 4월 24일
Ah... what does matlabroot return for you? In particular, does it include the C: or D: drive prefix?
wei
wei 2013년 4월 24일
when I type the commend curdir = cd( fullfile(matlabroot, 'bin') ); it returns the 'D:MATLAB'
wei
wei 2013년 4월 24일
but dose it suppose to be like this? D:\program files\MATLAB\R2013a\bin
It's okay, cd() returns as its value the old directory.
Is it returning 'D:MATLAB' or is it 'D:\MATLAB' ? If it does not have the \ in there then you are making use of some icky MS Windows relative-directory semantics that are going to cause trouble later. Better if you use the full path rather than the relative path. How are you getting to D:MATLAB ? Are you cd'ing to there or is it by way of the Windows Explorer properties set for the MATLAB icon ?
Anyhow, please also show the content of
matlabroot
wei
wei 2013년 4월 24일
편집: wei 2013년 4월 24일
Walter, thank you for your patiently help. sorry, I missed the\, It returns the "D:\MATLAB". matlabroot returns; ans =D:\Program Files\MATLAB\R2013a
Please run
!set
in MATLAB and post the output here.
I thinking if it is the problem of windows 8?
since in my win7 machine, everything goes well, when I try to use mex for totally same code
Friedrich
Friedrich 2013년 4월 24일
At least those env. vars suggesting that you started the matlab.exe from the D:\Program Files\MATLAB\R2013a\bin\win64 folder. Whats happening when you start the matlab.exe in the D:\Program Files\MATLAB\R2013a\bin folder?
wei
wei 2013년 4월 25일
Yes! Thank you Friedrich, It is the problem, when I run matlab from D:\Program Files\MATLAB\R2013a\bin folder, every thing became normal. thank you!

댓글을 달려면 로그인하십시오.

답변 (1개)

Jan
Jan 2013년 4월 24일

0 개 추천

Two chances to find out more about the serious problem:
  1. dbstop if all error, then run mex -setup again. Now look if you find any comments near to the failing line. Perhaps you can check the value, hwioch does not match the filter.
  2. Call the technical support of TMW. The help for installation problems.

제품

태그

질문:

wei
2013년 4월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by