Demo Makefile for OpenCV
這裡給出OpenCV的makefile的demo
遇到一個坑 ' is not `
呵呵...
之前寫的makefile會遇到這樣的報錯
郁悶了好久...
特別注意`*****`
*旁邊的符號不是單引號,而是鍵盤Esc下面的那個鍵!
demo makefile:
SOURCE_FILE:= get_semi_win.c semi_inverse_dehazing.c
OBJECT_FILE:= get_semi_win.o semi_inverse_dehazing.o
CFLAGS = -Wall -Wconversion -O3 `pkg-config --cflags opencv`
LIBS = `pkg-config --libs opencv`
complie:
gcc $(CFLAGS) -c $(SOURCE_FILE) $(LIBS)
link:
gcc $(CFLAGS) $(OBJECT_FILE) -o ./a.out $(LIBS)
clean:
rm -rf ./*.o ./a.out
--------------------------------------分割線 --------------------------------------
Ubuntu Linux下安裝OpenCV2.4.1所需包 http://www.linuxidc.com/Linux/2012-08/68184.htm
Ubuntu 12.04 安裝 OpenCV2.4.2 http://www.linuxidc.com/Linux/2012-09/70158.htm
CentOS下OpenCV無法讀取視頻文件 http://www.linuxidc.com/Linux/2011-07/39295.htm
Ubuntu 12.04下安裝OpenCV 2.4.5總結 http://www.linuxidc.com/Linux/2013-06/86704.htm
Ubuntu 10.04中安裝OpenCv2.1九步曲 http://www.linuxidc.com/Linux/2010-09/28678.htm
基於QT和OpenCV的人臉識別系統 http://www.linuxidc.com/Linux/2011-11/47806.htm
--------------------------------------分割線 --------------------------------------
OpenCV的詳細介紹:請點這裡
OpenCV的下載地址:請點這裡