Building gmt-mex under Windows

  1. Obtain the gmt-mex source code: cd into a suitable directory for development (e.g., GMTdev) and run
    svn co svn://gmtserver.soest.hawaii.edu/gmt-mex/trunk gmt-mex
  2. Edit the compile_mex.bat and set the paths of your GMT, NETCDF and GDAL installations.
  3. Run the compile_mex.bat, which will create these two files: gmtmex.mexw64 and a gmtmex.pdb
  4. Put those files somewhere under the MATLAB path, and remember that the GMT bin dir must on the Windows path as well so that the dependencies may be found by MATLAB.