Skip to content
bertdv edited this page Oct 26, 2012 · 4 revisions

Matlab mex compilation

Download mingw64 and unpack it to, say C:\mingw64. Then add C:\mingw64\bin to PATH environment variable (this IS important if you don't want to manually copy/softlink libs to matlab lib paths).

After that, start matlab and run edit(fullfile(prefdir,'mexopts.bat')) in matlab and insert the contents of this

Now, you can run command line and compile mex using the following command in cpp-factor-graph\matlab

mex mexfactorgraph.cpp ..\factornode.cpp ..\addnode.cpp ..\equalitynode.cpp

(later I will make a .bat or makefile for that)

CMake

TODO

Clone this wiki locally