Ask Your Question

Savva's profile - activity

2015-09-10 02:49:41 -0600 commented question cannot find -lopencv_core

It is the only one that the beagleboard installs. I am still trying to upgrade but to no avail.

2015-09-10 00:46:35 -0600 asked a question 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.