question about seagrid and mex
first of all, I added "matlab" (downloaded from https://www.myroms.org/svn/src/matlab) folder to the work path in matlab.
Second, I added "mexrect","mexinside","mexsepelid" path again.
third, because i got a error message about "Supported and Compatible Compilers", I downloaded JDK 7.1 and Microsoft Visual C++ 2013 Professional which are supported by R2014a (win 10). /// error still existed.
forth, i downloaded "mexcdf" from http://mexcdf.sourceforge.net/downloads/14.php, and set the new path again.
fifth, I run startup in the "malab" from myroms.org again
% startup -- User script configuration for Matlab. It can set default paths, define Handle Graphics defaults, or predefine variables in your workspace.
sixth, i run make_segrid_mex.m in the mex folder. then i got the error message as below
wait for the figure to finish plotting, then hit any key to continue
***************************************************************************
Warning: Neither -compatibleArrayDims nor -largeArrayDims is selected.
Using -compatibleArrayDims. In the future, MATLAB will require
the use of -largeArrayDims and remove the -compatibleArrayDims
option. For more information, see:
http://www.mathworks.com/help/matlab/ma ... t-api.html
****************************************************************************
-> Options file specified on command line
----------------------------------------------------------------
-> Options file = ./mexopts.sh
MATLAB =
-> COMPILER = none
-> Compiler flags:
COMPFLAGS =
OPTIMFLAGS =
DEBUGFLAGS =
arguments =
Name switch =
-> Pre-linking commands =
-> LINKER =
-> Link directives:
LINKFLAGS =
LINKDEBUGFLAGS =
LINKFLAGSPOST =
Name directive =
File link directive =
Lib. link directive =
Rsp file indicator =
-> Resource Compiler =
-> Resource Linker =
----------------------------------------------------------------
Error: An options file for MEX was found, but the value for 'COMPILER'
was not set. This could mean that the value is not specified
within the options file, or it could mean that there is a
syntax error within the file.
C:\PROGRA~1\MATLAB\R2014A\BIN\MEX.PL: Error: Options file is invalid.
无法成功完成。
出错 make_seagrid_mex (line 15)
mex -f ./mexopts.sh -v mexrect.F
Seagrid & MEX, thanks
-
- Posts: 26
- Joined: Wed Jul 19, 2017 4:03 pm
- Location: Zhejiang University
Re: Seagrid & MEX, thanks
what did you do to solve the problem ?I am faced with the same problem too
chevyyang wrote:question about seagrid and mex
first of all, I added "matlab" (downloaded from https://www.myroms.org/svn/src/matlab) folder to the work path in matlab.
Second, I added "mexrect","mexinside","mexsepelid" path again.
third, because i got a error message about "Supported and Compatible Compilers", I downloaded JDK 7.1 and Microsoft Visual C++ 2013 Professional which are supported by R2014a (win 10). /// error still existed.
forth, i downloaded "mexcdf" from http://mexcdf.sourceforge.net/downloads/14.php, and set the new path again.
fifth, I run startup in the "malab" from myroms.org again
% startup -- User script configuration for Matlab. It can set default paths, define Handle Graphics defaults, or predefine variables in your workspace.
sixth, i run make_segrid_mex.m in the mex folder. then i got the error message as below
wait for the figure to finish plotting, then hit any key to continue
***************************************************************************
Warning: Neither -compatibleArrayDims nor -largeArrayDims is selected.
Using -compatibleArrayDims. In the future, MATLAB will require
the use of -largeArrayDims and remove the -compatibleArrayDims
option. For more information, see:
http://www.mathworks.com/help/matlab/ma ... t-api.html
****************************************************************************
-> Options file specified on command line
----------------------------------------------------------------
-> Options file = ./mexopts.sh
MATLAB =
-> COMPILER = none
-> Compiler flags:
COMPFLAGS =
OPTIMFLAGS =
DEBUGFLAGS =
arguments =
Name switch =
-> Pre-linking commands =
-> LINKER =
-> Link directives:
LINKFLAGS =
LINKDEBUGFLAGS =
LINKFLAGSPOST =
Name directive =
File link directive =
Lib. link directive =
Rsp file indicator =
-> Resource Compiler =
-> Resource Linker =
----------------------------------------------------------------
Error: An options file for MEX was found, but the value for 'COMPILER'
was not set. This could mean that the value is not specified
within the options file, or it could mean that there is a
syntax error within the file.
C:\PROGRA~1\MATLAB\R2014A\BIN\MEX.PL: Error: Options file is invalid.
无法成功完成。
出错 make_seagrid_mex (line 15)
mex -f ./mexopts.sh -v mexrect.F