cannot find -lopencv_core
Hi, I am new to openCV programming. I am currently programming a Beagleboard-xm. I used a simple c++ file which needs to load a image and convert it to black and white, but I always get the same errors. I am not sure if it is my openCV version which is version 2.2 or if it is libraries that are not shared.
code looks like this:
include opencv2/opencv.hpp include iostream
after image is obtained.....
cvtColor(input, gray_image, cv::COLOR_BGR2GRAY); // This is where the error for the COLOR_BGR2GRAY occur.
imwrite("Lena_gray.jpg", gray_image);
end of code.
when i make I receive this exact error:
root@beagleboard:~/Desktop/GrayOpenCV# g++ gray.cpp -o gray -lopencv_core -lopencv_imgproc -lopencv_highgui
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.3.3/../../../../arm-angstrom-linux-gnueabi/bin/ld: cannot find -lopencv_core collect2: ld returned 1 exit status
Can anyone please help me.
why on earth are you trying to use opencv2.2 ?
It is the only one that the beagleboard installs. I am still trying to upgrade but to no avail.
Well
So basically it must be possible to install a newer version!