Open thomasaarholt opened 7 years ago
For reference, I have tried both the MinGW and Visual Studio C++ compilers. The former took a bit of effort to install due to a known bug in Matlab.
Both compilers succeed with the following "compile test code":
>> copyfile(fullfile(matlabroot,'extern','examples','mex','yprime.c'),'.','f')
>> mex yprime.c
Building with 'Microsoft Visual C++ 2015 Professional (C)'.
MEX completed successfully.
Right. I've gone back to basics and realised that you specify Visual Studio 2013. I will attempt that now.
Right. I've just spent the better part of two days trying to install MULTEM on Windows. After hitting hurdle upon hurdle, this is where I am at:
Install Cuda (free) Install Matlab 2016b. (not free) Install Visual Studio 2015 (NOT 2017), selecting the basic setup for C++ during the installation (under "languages") (free) Install .Net Framework 4.6.2 (free)
In Matlab, run
and select the Visual Studio compiler (click the apparent link to run the code).
In Matlab, switch to the MULTEM directory, add the folders on the left to the Path (right click, add to path). In the Matlab console, I now type
compile_mex_multem
This is where I currently fail. Any help at all is greatly appreciated. The accompanying error is