Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Win7 x64, Matlab 64bit (r2011b), opencv2.4.2 (small .make change) #13

Closed
pcbadmin opened this Issue Aug 21, 2012 · 1 comment

Comments

Projects
None yet
3 participants

pcbadmin commented Aug 21, 2012 edited by amroamroamro

Hi kyamagu,

Awesome project, just started using it, with excellent results, much thanks!

I found that compiling mex files with a 64bit version of Matlab, on Windows 7 x64 required the Windows 7.1 SDK, not Visual Express 2010 (VC10 doesn't include a 64-bit compiler, so one needs the SDK to get the 64 bit compiler).
Also, as a note to anyone else struggling, I needed to use Matlab version r2011b, as I could never get r2011a to find the sdk.

Anyway, one small change to the make script allows for successful compilation:

elseif ~isempty(strfind(c.Name,'Microsoft SDK'))
        s = 'vc10';

(*side note: I'm using the x64 pre-built opencv binaries)

Owner

kyamagu commented Aug 22, 2012

Thanks for your report. This seems to be the prerequisite of the MEX
function in matlab win64 in general rather than a specific issue in
cv.make. I'd include additional requirement in README instead of adding
nasty if-and-else to detect different windows platforms.

On Tue, Aug 21, 2012 at 12:02 PM, pcbadmin notifications@github.com wrote:

Hi kyamagu,

Awesome project, just started using it, with excellent results, much
thanks!

I found that compiling mex files with a 64bit version of Matlab, on
Windows 7 x64 required the Windows 7.1 SDK, not Visual Express 2010 (VC10
doesn't include a 64-bit compiler, so one needs the SDK to get the 64 bit
compiler).
Also, as a note to anyone else struggling, I needed to use Matlab version
r2011b, as I could never get r2011a to find the sdk.

Anyway, one small change to the make script allows for successful
compilation:

elseif ~isempty(strfind(c.Name,'Microsoft SDK'))
s = 'vc10';

(*side note: I'm using the x64 pre-built opencv binaries)


Reply to this email directly or view it on GitHubhttps://github.com/kyamagu/mexopencv/issues/13.

@kyamagu kyamagu closed this Aug 22, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment