Giter Club home page Giter Club logo

Comments (6)

kyamagu avatar kyamagu commented on July 18, 2024

Can you try VC++ 2010 Express and see if this happens?

from mexopencv.

amroamroamro avatar amroamroamro commented on July 18, 2024

A minor comment, the first command executed shows: -DSECURE_SCL=1 it should be -D_SECURE_SCL=1, are you sure it's not a typo? Also check that you have C:\opencv\build\x64\vc9\bin on the Windows PATH (to fix the "specified module could not be found" error)

from mexopencv.

moodoki avatar moodoki commented on July 18, 2024

The linker error is probably due to building OpenCV as 32bit binaries. Rebuild them as 64bit and it should work fine. The error you got from using prebuilt is probably due to not setting the path environment variable to the correct OpenCV binaries as @amroamroamro mentioned.

from mexopencv.

htaichiwang avatar htaichiwang commented on July 18, 2024

I went through the same exercise as above using VS2010 Express and Windows SDK 7.1 and experienced exactly the same problem. It turns out that by setting _SECURE_SCL=0 in cv.make, keeping the default mexopts.bat (as generated by mex -setup), and link to the pre-compiled library in opencv\build\x64\vc10\lib, the problem is resolved. The installation I have is: 64-bit Matlab 2011b on Windows 7, OpenCV 2.4.2, Visual Studio 2010 Express and Windows SDK 7.1.

from mexopencv.

amroamroamro avatar amroamroamro commented on July 18, 2024

@kyamagu: I think this issue can be closed, given the recent _SECURE_SCL fix

from mexopencv.

kyamagu avatar kyamagu commented on July 18, 2024

@amroamroamro Yes, the recent commit should have fixed this.

Please reopen if this bug happens with the latest commit.

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.