0
這是我跟OpenCV的第一個例子: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;
}
如果我點擊BuildAll我返回此錯誤:
make: *** No rule to make target `1st.o', needed by `firstOpenCV'. Stop.
我該怎麼辦?
謝謝。