Eclipse cannot find library OPENCV4.7.0-dev [message #1857452] |
Wed, 08 February 2023 07:40  |
Eclipse User |
|
|
|
Hi all!
I am compiling Eclipse C++ code with OpenCV installed
#include <opencv2/opencv.hpp>
using namespace cv;
int main( int argc, char** argv )
{
Mat image;
image = imread( argv[1], 1 );
if( argc != 2 || !image.data )
{
printf( "No image data \n" );
return -1;
}
namedWindow( "Display Image", WINDOW_AUTOSIZE );
imshow( "Display Image", image );
waitKey(0);
return 0;
}
gives me this error:
15:23:31 **** Incremental Build of configuration Debug for project cameravid ****
make all
Building target: cameravid
Invoking: GCC C++ Linker
g++ -Lusr/local/lib `pkg-config opencv4 --libs` -o "cameravid" ./cameravid.o -lopencv_features2d -lopencv_video -lopencv_ml -lopencv_highgui -lopencv_imgproc -lopencv_core
/usr/bin/ld: Can't be found -lopencv_ts
collect2: error: ld returned 1 exit status
make: *** [makefile:58: cameravid] Error 1
"make all" terminated with exit code 2. Build might be incomplete.
15:23:32 Build Failed. 2 errors, 0 warnings. (took 1s.191ms)
Please help me fix this error, I have no more strength.
What is this Opencv_TS library?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03003 seconds