Seagrid & MEX, thanks

Discussion about analysis, visualization, and collaboration tools and techniques

Moderators: arango, robertson

Post Reply
Message
Author
chevyyang
Posts: 5
Joined: Thu May 04, 2017 1:31 pm
Location: south china sea insitute of oceanography

Seagrid & MEX, thanks

#1 Unread post by chevyyang »

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
Attachments
2.png
1.png
AB%5OGDGV2QT2K}8]ULWSF3.png
AB%5OGDGV2QT2K}8]ULWSF3.png (94.89 KiB) Viewed 3905 times

Joeailvyou
Posts: 26
Joined: Wed Jul 19, 2017 4:03 pm
Location: Zhejiang University

Re: Seagrid & MEX, thanks

#2 Unread post by Joeailvyou »

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

Post Reply