How to compile MEX binary that only works on 64 bit Linux to use it on macOS?

1 visualización (últimos 30 días)
Hello,
I have a compiled MEX binary that only works on 64 bit Linux ( https://github.com/getzlab/MutSig2CV/blob/master/src/str2doubleq.mexa64 ) and I would like to recompile it for my system (macOS Monterey). I have MatLab compiler but I have no idea how to do it as I am fearly new to MatLab. Could anyone please give me any advice, please?
Best regards,
Gabriela

Respuesta aceptada

Walter Roberson
Walter Roberson el 8 de Ag. de 2022
It is not necessary to cross-compile; the GIT repository includes the .cpp source code (and the .c sources needed for different .mex* files.)
Unfortunately the repository does not include a build script.
You probably start by installing XCode -- though possibly you can get away with installing the command line tools, by going into terminal and commanding
xcode-select --install
Then in MATLAB,
mex -setup C++
mex -setup C
then (I suspect)
mex str2doubleq.cpp
mex count_overlaps_fast2.c
mex hist2d_fast.c
mex projection_1d_convolutions_fast.c

Más respuestas (0)

Categorías

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

Etiquetas

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by