poroblem with the seagrid "mex filesconfiguration in matlab

Discussion about analysis, visualization, and collaboration tools and techniques

Moderators: arango, robertson

Post Reply
Message
Author
lalvarez
Posts: 106
Joined: Wed Feb 03, 2010 6:59 pm
Location: Universidad Autonoma de Baja California Sur

poroblem with the seagrid "mex filesconfiguration in matlab

#1 Unread post by lalvarez »

Hello to All

I´m trying to install the seagrid mex files in matlab and i do as follows:

>> make_seagrid_mex
Building with 'Microsoft Windows SDK 7.1 (C)'.
MEX completed successfully.
wait for the figure to finish plotting, then hit any key to continue


and a figure is shown (attached file *.jpg), then hit any key to continue
and i get this:

Warning: Legacy MEX infrastructure is provided for compatibility; it will be removed in a future version of MATLAB.
For more information, consult the MEX release notes http://www.mathworks.com/help/matlab/release-notes.html.
> In make_seagrid_mex (line 8)

***************************************************************************
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 = ./mexrectopts.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\MATLAB~1\R2015A\BIN\MEX.PL: Error: Options file is invalid.

Unable to complete successfully.

Error in make_seagrid_mex (line 8)
mex -f ./mexrectopts.sh -v mexrect.F



Any help will be welcome

Thanks in advance

Leo
Attachments
Mexcompile.jpg
Mexcompile.jpg (26.53 KiB) Viewed 3827 times

lalvarez
Posts: 106
Joined: Wed Feb 03, 2010 6:59 pm
Location: Universidad Autonoma de Baja California Sur

Re: poroblem with the seagrid "mex filesconfiguration in mat

#2 Unread post by lalvarez »

Hello

I looked at my mex.pl file to see what could be wrong written in it and i found this

Code: Select all

use mexsetup;
use mexutils;

require "shellwords.pl";  # Found in $MATLAB/sys/perl/win32/lib
                          # This is necessary to break up the text in
                          # the file into shell arguments. This is used
                          # to support the @<rspfile> argument.

if ( ( $ENV{'PROCESSOR_ARCHITECTURE'} eq "AMD64" ) ||
     ( $ENV{'PROCESSOR_ARCHITEW6432'} eq "AMD64" ) ) {
    if ( -f  mexCatfile($main::matlabroot, "bin", "win64", "matlab.exe") ) {
        $ARCH = "win64";
    } elsif (-f mexCatfile($main::matlabroot, "bin", "win32", "matlab.exe") ) {
        $ARCH = "win32";
    } else {
        $ARCH = "UNKNOWN";
    }
} elsif ( $ENV{'PROCESSOR_ARCHITECTURE'} eq "x86" ) {
    $ARCH = "win32";
} else {
    $ARCH = "UNKNOWN";
}

# Support command line override
if (grep /^-win32$/, @ARGV) {
    $ARCH = "win32";
}

$ENV{'ARCH'} = $ARCH;


The problem in here is that i have an Intel(R) Core(TM)i7-2600 proccesor with a 64 bits operative system and not an "AMD64" proccesor as written in the code.

Should that be the problem for compiling?

Thanks in advance
Leo

Post Reply