Installation Location of MEX

12 visualizaciones (últimos 30 días)
Connie
Connie el 21 de Feb. de 2013
Comentada: ZHUJUN SHI el 29 de En. de 2018
Hi,
I am building a peripheral (NLopt library) on an Ubuntu machine where the MATLAB plugin that gets built needs to know the location of MEX. aka:
./configure MEX=/path/to/mex
Where is MEX actually located?
  4 comentarios
Connie
Connie el 24 de Feb. de 2013
hmm. Well I think that at least shows what the problem is, even if I have the MEX variable correct. I will try installing a secondary gcc version to see if that does better.
You are using gcc version "4.6.3-1ubuntu5)". The version currently supported with MEX is "4.4.6". For a list of currently supported compilers see: http://www.mathworks.com/support/compilers/current_release/
Connie
Connie el 24 de Feb. de 2013
Cool. Well that solved this problem (I can get the timestwo(4) stuff to work), so I'll mark the below as answered. Unfortunately, the program still can't find matlab or compile its c code
checking for extension of compiled mex files... mexa64 checking for matlab... no
with a bunch of other c errors, but closer.

Iniciar sesión para comentar.

Respuesta aceptada

Ryan Livingston
Ryan Livingston el 21 de Feb. de 2013
There is usually a shell script in
$MATLABROOT/bin/mex
where $MATLABROOT is the output of
matlabroot
in MATLAB. This should be marked executable and can be invoked as such.
  3 comentarios
Richard
Richard el 23 de Mzo. de 2014
Hi Connie, your problem is that you're using MEX=/home/connie/MATLAB/R2012b/bin/ instead of:
./configure MEX=/home/connie/MATLAB/R2012b/bin/mex
Hope that helps.
ZHUJUN SHI
ZHUJUN SHI el 29 de En. de 2018
Hi I got the same problem ' failed to compile a simple file; won't compile Matlab plugin'. Would you mind sharing how you solved this problem?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Troubleshooting in MATLAB Compiler SDK en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by