开发者

OpenCv No rule to make target

th开发者_如何学Cis is my first example with OpenCv:

    #include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "opencv/cv.h"
#include "opencv/highgui.h"

int main(int argc, char *argv[])
{
  IplImage* img = 0;

  img=cvLoadImage("/home/michele/Pictures/sensor.png");     // carica l'immagine

  cvNamedWindow("mainWin", CV_WINDOW_AUTOSIZE);       // crea la finestra

  cvShowImage("mainWin", img );    //  mostra l'immagine

  cvWaitKey(0);    // wait for a key

  cvReleaseImage(&img );    //rilascia l'immagine

  system("PAUSE");
  return 0;
}

If I click on BuildAll I've this error returned:

make: *** No rule to make target `1st.o', needed by `firstOpenCV'.  Stop.

What I have to do?

Thanks.


I think you need to see a tutorial on how to configure Eclipse.

You could also try to compile your application manually (from the cmd-line):

g++ 1st.cpp -o app `pkg-config --cflags opencv` `pkg-config --libs opencv`
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜