Cmake error in MATLAB

Hi,
I am getting following error while building the interface inside Matlab.

Compiling OSQP solver…
– The C compiler identification is GNU 4.2.1
– The CXX compiler identification is GNU 4.2.1
– Check for working C compiler: C:/AMESim/v1330_student/sys/mingw32/bin/gcc.exe
– Check for working C compiler: C:/AMESim/v1330_student/sys/mingw32/bin/gcc.exe – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Check for working CXX compiler: C:/AMESim/v1330_student/sys/mingw32/bin/g++.exe
– Check for working CXX compiler: C:/AMESim/v1330_student/sys/mingw32/bin/g++.exe – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– We are on a Windows system
– Embedded is OFF
– Printing is ON
– Profiling is ON
– User interrupt is ON
– Floats are OFF
– Disabling long integers (64bit) on 32bit machine
– Long integers (64bit) are OFF
– Code coverage is OFF
– MKL Pardiso: ON
– Could NOT find Matlab (missing: Matlab_MEX_LIBRARY Matlab_MX_LIBRARY) (found version “unknown”)
CMake Error at CMakeLists.txt:201 (message):
You need Matlab libraries to build the Matlab interface

Can you tell us which version of matlab you are using (“matlab ver” at command line)?

Maybe try running “mex setup -c” at the command line as well.

Hi, I am using matlab of R2018a.