Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse cannot find library OPENCV4.7.0-dev
Eclipse cannot find library OPENCV4.7.0-dev [message #1857452] Wed, 08 February 2023 12:40 Go to next message
Andrey Pronkin is currently offline Andrey PronkinFriend
Messages: 2
Registered: February 2023
Junior Member
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?

Re: Eclipse cannot find library OPENCV4.7.0-dev [message #1857473 is a reply to message #1857452] Thu, 09 February 2023 12:28 Go to previous messageGo to next message
Andrey Pronkin is currently offline Andrey PronkinFriend
Messages: 2
Registered: February 2023
Junior Member
Help me,please
Re: Eclipse cannot find library OPENCV4.7.0-dev [message #1857623 is a reply to message #1857473] Fri, 17 February 2023 05:50 Go to previous message
staze clop is currently offline staze clopFriend
Messages: 1
Registered: February 2023
Junior Member
Navigate under Java > Build Path > User Libraries and click New....
Enter a name, e.g. OpenCV-2.4. ...
Now select your new user library and click Add External JARs....
Browse through C:\OpenCV-2.4.

you try this
Previous Topic:New Install Missing Arduino
Next Topic:Missing [Subprojects]
Goto Forum:
  


Current Time: Sun Jan 19 05:22:35 GMT 2025

Powered by FUDForum. Page generated in 0.03311 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top