This project has been developed with Linux in mind. However, it is technically possibile to compile it under Windows using any MATLAB-supported C compilers.
This guide uses the MSYS2 software, which is based on the MinGW-w64 compiler.
- Install and update 64-bit MSYS2 following the instructions on the website.
- Install 64-bit MinGW-w64 in MSYS2
pacman -S mingw-w64-x86_64-gcc
- Export the location of the MEX executable:
export PATH="${PATH}:/c/Program Files/MATLAB/R2018a/bin/win64"
- Export the location of MinGW-w64 for MEX:
export MW_MINGW64_LOC=/mingw64
- Compile this project using
make
(like Linux)