cannot find -lopencv_core

asked 2015-09-09 16:15:15 -0500

Savva gravatar image

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:

[email protected]:~/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.

edit retag flag offensive close merge delete



why on earth are you trying to use opencv2.2 ?

berak gravatar imageberak ( 2015-09-10 01:36:19 -0500 )edit

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

Savva gravatar imageSavva ( 2015-09-10 02:49:41 -0500 )edit


So basically it must be possible to install a newer version!

StevenPuttemans gravatar imageStevenPuttemans ( 2015-09-11 07:34:17 -0500 )edit