Comments (7)
What is your OpenCV version? If you're using 2.3.x, please use the mexopencv v2.3 branch.
from mexopencv.
I'm using OpenCV version 2.4.4 and latest mexopencv
from mexopencv.
Alright, then you need to make sure your shared object is loaded in matlab as expected. Repeat the following steps to find a missing dependency.
Use ldd in unix shell.
$ ldd /home/aej/Downloads/mexopencv/+cv/private/FeatureDetector_.mexa64
Use ldd in matlab shell.
>> !ldd /home/aej/Downloads/mexopencv/+cv/private/FeatureDetector_.mexa64
Find any difference in the loaded libraries. Usually such libraries are causing error. If you find any, such as libstdc++ or libgcc_s, put them in the LD_PRELOAD
variable before launching matlab.
LD_PRELOAD=/usr/lib/libstdc++.6.so matlab
If you still cannot solve this issue, I suspect your opencv installation is missing something.
from mexopencv.
Thank you.
This doesn't seem right:
From matlab !ldd:
...
libopencv_core.so.2.4 => /usr/local/MATLAB/R2013a/bin/glnxa64/libopencv_core.so.2.4 (0x00007f63ce2ac000)
libopencv_features2d.so.2.4 => /usr/local/MATLAB/R2013a/bin/glnxa64/libopencv_features2d.so.2.4 (0x00007f63ce01c000)
...
and from console ldd:
...
libopencv_core.so.2.4 => /usr/local/lib/libopencv_core.so.2.4 (0x00007f0cf327a000)
libopencv_features2d.so.2.4 => /usr/local/lib/libopencv_features2d.so.2.
...
There shouldn't be any OpenCV related stuff under MATLAB, right? Or is this copied during 'make' in mexopencv?
Thanks
from mexopencv.
Hmm, if I, for instance, preload OpenCV core and High gui, then things starts to work again. For instance cv.imread is working again.
I can't figure out why these opencv shared objects are in the matlab installation. Is it something new or have I done something wrong?
from mexopencv.
This can happen if you have the computer vision toolbox from mathworks. They internally use opencv, and therefore it gives you version conflict. Unless you link mexopencv with these mathworks-provided libraries, you should preload to avoid issues.
from mexopencv.
Thank you. That would be the reason. I will preload OpenCV libs.
from mexopencv.
Related Issues (20)
- Mexopencv using MatLab Runtime
- Using homebrew to install OpenCV==3.4.1
- windows opencv3.4.1 cmake
- Setting up mexopencv for matlab 2018b HOT 2
- No output from cv.getBuildInformation() in Octave 5.1.0
- maybe bug about the queryIdx and trainIdx
- ld: symbol(s) not found for architecture x86_64
- Invalid MEX-file : Missing dependent shared libraries
- [error 3] gcc >= 4.4 g++ >= 4.4 is installed
- v3.2.0 and xfeatures2d HOT 1
- mexopencv not compiling HOT 2
- error in setup opencv and mexopencv
- how Mac to mexopencv HOT 1
- [lib/mexopencv_features2d.o] Error 255 HOT 1
- MxArray::toMoments out of order arguments to cv::Moments
- Consider leveraging MATLAB in your CI
- MATLAB Error: Unrecognized function or variable 'FeaturesFinder_'.
- why can't I use the 'cv.detectMarkers' function???
- Hi all, I have a big problem when I am using matlab R2021a to builed mexopencv. HOT 1
- mexopencv building error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mexopencv.