Ocean Modeling Discussion

ROMS/TOMS

Search for:
It is currently Mon Feb 19, 2018 3:54 am




Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Author Message
 Post subject: Seagrid & MEX, thanks
PostPosted: Fri Jun 16, 2017 2:59 am 
Offline

Joined: Thu May 04, 2017 1:31 pm
Posts: 5
Location: south china sea insitute of oceanography
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
2.png [ 35.02 KiB | Viewed 569 times ]
1.png
1.png [ 32.17 KiB | Viewed 569 times ]
AB%5OGDGV2QT2K}8]ULWSF3.png
AB%5OGDGV2QT2K}8]ULWSF3.png [ 94.89 KiB | Viewed 569 times ]
Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 01, 2017 1:27 pm 
Offline

Joined: Wed Jul 19, 2017 4:03 pm
Posts: 1
Location: Zhejiang University
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group