Using a .mexw64 function on a Mac.

6 visualizzazioni (ultimi 30 giorni)
Hsiu
Hsiu il 19 Giu 2014
Commentato: Walter Roberson il 24 Lug 2018
Hey! I realize that .mexw64 is a compiled machine code for a Windows 64-bit setup, and thus I cannot use that on the Mac. Is there any way that I can use it anyhow? Maybe by changing it to another format or reading the file and copying and pasting it? Thank you! P.S. The function is the pixelIdlistsn.mexw64.

Risposta accettata

James Tursa
James Tursa il 19 Giu 2014
No. The mexw64 file can only be used by a 64-bit MATLAB version running under Windows. There is no way to modify it (copying, pasting, reformatting, etc) that will allow it to run on a Mac.
  4 Commenti
Josephine Cruzat
Josephine Cruzat il 24 Lug 2018
Any ideas on how to do that?
Walter Roberson
Walter Roberson il 24 Lug 2018
A .mex* file is typically originally C or C++ code (sometimes fortran) that has been compiled with the 'mex' command, such as
mex -v pixelIdlistsn.c
If you were starting with .m code then you would need to use MATLAB Coder to generate the C or C++ code to be built with mex; see https://www.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/47593/versions/18/previews/documentation/modules/CodeGeneration/html/AccelerateMATLABDocumentation.html?access_key=

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su MATLAB Coder in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by