Giter Club home page Giter Club logo

Comments (5)

kyamagu avatar kyamagu commented on July 18, 2024

It's a known issue with binary OpenCV package. See the previous post: #4

from mexopencv.

MiguelPF avatar MiguelPF commented on July 18, 2024

I am not sure is the same thing at least the solution might be different, I have WinXP 32bits and my matlab version is for 32bits (R2009b), also I compile OpenCV using VS2008,
should I use VS2010 instead of VS2008 to compile mexopencv? or is it better to have OpenCV and mexOpenCV compiled with the same compiler?

Thanks in advance

from mexopencv.

kyamagu avatar kyamagu commented on July 18, 2024

The issue is that the OpenCV binary package contains incompatible dll files for some environment, and when it happens, compilation succeeds but an unexpected error occurs on execution. VS2010 might not have this compatibility issue and it's worth trying. The other solution as far as I know is to build OpenCV from source.

from mexopencv.

MiguelPF avatar MiguelPF commented on July 18, 2024

I find a solution in http://www.mathworks.com/matlabcentral/answers/9294-mex-dynamic-memory-management-issue-with-std-vector-in-linked-external-dll-segmentation-error

I posted here the solution also just in case,

remove the SECURE_SCL=0 option from the mex options file at

C:\Users(Username)\AppData\Roaming\MathWorks\MATLAB\R2009b\mexopts.bat

Then recompiled the mex file, now everything works like a charm - the function is returning the correct data and segmentation error no longer occurs.

from mexopencv.

kyamagu avatar kyamagu commented on July 18, 2024

Thanks Miguel! I would add this notice in readme!

from mexopencv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.