-
Notifications
You must be signed in to change notification settings - Fork 319
ld: library not found for -lippicv on Mac EL Capitan #249
Comments
@mzahana How did you install OpenCV, and which version? It's probably a bug in OpenCV that their If you are using Homebrew, the easiest is to do the following. Install OpenCV3. Optionally you might want to specify options like brew install homebrew/science/opencv3 Compile LDFLAGS=-L/usr/local/Cellar/opencv3/3.1.0_2/share/OpenCV/3rdparty/lib/ PKG_CONFIG_OPENCV=opencv3 make -j4 Please replace the OpenCV version string above ( |
I installed the latest download from here. Package opencv3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv3' found However, I guess I have opencv 2.4.13. I used the CMake GUI to compile opencv, and I am able to compile few opencv apps successfully. |
@kyamagu I installed make: /usr/local/matlab/bin/mexext: Command not found
Makefile:77: *** "MEX extension not set". Stop. If I add manually MATLAB path: LDFLAGS=-L/usr/local/Cellar/opencv3/3.1.0_3/share/OpenCV/3rdparty/lib/ PKG_CONFIG_OPENCV=opencv3 MATLABDIR=/Applications/MATLAB_R2015a.app make -j4 I get the following error: Makefile:97: *** "OpenCV 3.x package was not found in the pkg-config search path". Stop. Any hints? |
@mzahana What does the following produce? It is a test to check if OpenCV v3.x is available via pkg-config --exists --atleast-version=3 opencv3
echo $? The first error is simply a path issue. Prepending |
Thanks. When I run pkg-config --exists --atleast-version=3 opencv3
echo $? I get: 1 |
@mzahana Try not using |
I actually removed I got: MEX completed successfully.
MEX completed successfully.
Building with 'Xcode Clang++'.
MEX completed successfully.
MEX completed successfully. |
@mzahana Yes, seems like you successfully compiled. Optionally you can verify installation by test. This can take a couple of minutes. MATLABDIR=/Applications/MATLAB_R2015a.app make test |
Thanks. I did the test, and here is what I got: Totals:
26 Passed, 975 Failed
Elapsed time is 16.402672 seconds. What does that mean? |
I am trying to compile mexopencv from the terminal. I have
I get the following error
What could be the problem?
I also tried the opencv support package from Mathworks, and when I run
mexOpenCV mycode.cpp
, I get the following error,My code has the
imdecode()
function, and if I remove it, the code compiles successfully!Any hints?
Thanks.
The text was updated successfully, but these errors were encountered: