Ask Your Question

NickOS's profile - activity

2015-11-21 19:30:24 -0600 received badge  Taxonomist
2012-08-02 19:26:19 -0600 commented answer Problem Building a Project in Eclipse [Ubuntu]

Thank you for your interest, and sorry if I wasn't clear. The Test.cpp has the code snippet from the tutorial I mentioned before:

#include <cv.h>
#include <highgui.h>

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", CV_WINDOW_AUTOSIZE );
  imshow( "Display Image", image );

  waitKey(0);

  return 0;
}
2012-08-02 19:24:27 -0600 answered a question Problem Building a Project in Eclipse [Ubuntu]

Thank you for your interest, and sorry if I wasn't clear. The Test.cpp has the code snippet from the tutorial I mentioned before:

#include <cv.h>
#include <highgui.h>

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", CV_WINDOW_AUTOSIZE );
  imshow( "Display Image", image );

  waitKey(0);

  return 0;
}
2012-08-01 18:04:13 -0600 asked a question Problem Building a Project in Eclipse [Ubuntu]

Hello,

I followed exactly the tutorial in http://docs.opencv.org/doc/tutorials/introduction/linux_eclipse/linux_eclipse.html#linux-eclipse-usage

and when I tried to build the project I created, I got 2 errors in the console:

Building target: Test
Invoking: GCC C++ Linker
g++ -L/usr/local/lib -o"Test" ./src/Test.o -lopencv_core -lopencv_highgui -lopencv_legacy -lopencv_ml -lopencv_video -lopencv_contrib -lopencv_features2d -lopencv_imgproc -lopencv_calib3d -lopencv_objdetect -lopencv_flann
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o: In function `_start':

(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [Test] Error 1

What seems to be the problem?

Thanks, in advance.