Giter Club home page Giter Club logo

Comments (4)

kyamagu avatar kyamagu commented on July 18, 2024

Use LD_PRELOAD instead.

On Feb 21, 2013, at 12:11, Peugas [email protected] wrote:

I'm having this error while using cv.findChessboardCorners:
Error using cv.findChessboardCorners
Invalid MEX-file
'/home/tiago/Documents/MATLAB/mexopencv/+cv/findChessboardCorners.mexa64':
/usr/local/MATLAB/R2012b/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6:
version `GLIBCXX_3.4.15' not found (required by
usr/local/lib/libopencv_calib3d.so.2.4)

I've tried to run matlab as:
LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 matlab
but I got the same result...

I'm able to use some other mexopencv functions but not this one.
I'm on Ubuntu 12.04 LTS and running MATLAB r2012b

β€”
Reply to this email directly or view it on
GitHubhttps://github.com//issues/45.

from mexopencv.

peugas avatar peugas commented on July 18, 2024

It worked!
Thanks a lot.

If anyone have this problem and using LD_PRELOAD worked as well, it may be useful to change the matlab shortcut (matlab.desktop) adding a line like:

LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/libstdc++.so.6

if you don't know where is libstdc++.so.6, just write on the terminal:

locate libstdc++.so.6

from mexopencv.

aleksandaratanasov avatar aleksandaratanasov commented on July 18, 2024

https://fantasticzr.wordpress.com/2013/05/29/matlab-error-libstdc-so-version-glibcxx_3-4-15-not-found/

You can also link to the correct libstdc++ library and replace the one in Matlab's installation directory.

from mexopencv.

zhengchuansh avatar zhengchuansh commented on July 18, 2024

and I also has use:

sudo ln -sf /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19 /usr/local/MATLAB/R2011a/bin/glnxa64/libstdc++.so.6

than solve the problem, but unfortunately, when I running run_cifar10, it running to:

 Preparing /examples/cvprw15-cifar10/dataset/test/4590.jpg
Warning: Problems with file 
> In prepare_batch>(parfor body) at 39
  In parallel_function at 472
  In prepare_batch at 21
  In matcaffe_batch_feat at 55
  In run_cifar10 at 41 
Elapsed time is 0.196153 seconds.

an  unexpectation error happened: Matlab has encountered an internal problem and need to close
This error was detected while a MEX-file was running. If the MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files.

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.