I'm trying to link opencv libraries in eclipse for a c++ project.
When I link libraries that have one instance in the folder it seems to recognize it, but doesn't recognize when the libraries have few instances (perhaps the term instance isn't so accurate, i'm not quite sure what is the meaning of these different versions of libraries).
Therefore the problem doesn't seem to be related to misuse of lib or wrong path, as i have seen in other questions.
This is what I get when building the project:
12:33:17 **** Incremental Build of configuration Debug for project Test2 **** make all Building target: Test2 Invoking: GCC C++ Linker g++ -L/usr/local/Matlab/2013b/bin/glnxa64 -o "Test2" ./BilateralFilter.o ./main.o ./stdafx.o -lopencv_core -lmwvision_res -lmwvision -lopencv_imgproc -lopencv_highgui /usr/bin/ld: cannot find -lopencv_core /usr/bin/ld: cannot find -lopencv_imgproc /usr/bin/ld: cannot find -lopencv_highgui collect2: error: ld returned 1 exit status make: *** [Test2] Error 1
as you can see, the mwvision doesn't seem to have a problem, but the others do, and I think it has to do with them existing in multiple versions in the directory (but perhaps i'm wrong).
opencv_core, opencv_imgproc and opencv_highgui all have .so.2.4 and .so.2.4.2 versions.
These two links unfortunately did not provide an answer:
ld linkage problems: /usr/bin/ld: cannot find [libraryname]
/usr/bin/ld: cannot find shared library
Also I will mention that I have no use in Matlab, it's just where I found the libraries of opencv.
' Is there a way to isolate the 2.4.2 version as it is not a symbolic link?