直接上**:
:insert
source = test.cpp
# opencv version
opencv_ver = 2.4.10
# visual c++ version for opencv : vc12.0 vc10.0 vc11.0
vsv = vc12.0
cvv = 2410
# arch for opencv: x86 x64
arch = x64
opencv_root = k:/opencv/$(opencv_ver)
opencv_inc = $(opencv_root)/include
opencv_lib = $(opencv_root)/$(arch)/$(vsv)/lib
opencv_libs = $(opencv_lib)/opencv_calib3d$(cvv).lib \
$(opencv_lib)/opencv_contrib$(cvv).lib \
$(opencv_lib)/opencv_core$(cvv).lib \
$(opencv_lib)/opencv_features2d$(cvv).lib \
$(opencv_lib)/opencv_flann$(cvv).lib \
$(opencv_lib)/opencv_highgui$(cvv).lib \
$(opencv_lib)/opencv_imgproc$(cvv).lib \
$(opencv_lib)/opencv_legacy$(cvv).lib \
$(opencv_lib)/opencv_ml$(cvv).lib \
$(opencv_lib)/opencv_nonfree$(cvv).lib \
$(opencv_lib)/opencv_objdetect$(cvv).lib \
$(opencv_lib)/opencv_photo$(cvv).lib \
$(opencv_lib)/opencv_stitching$(cvv).lib \
$(opencv_lib)/opencv_superres$(cvv).lib \
$(opencv_lib)/opencv_ts$(cvv).lib \
$(opencv_lib)/opencv_video$(cvv).lib \
$(opencv_lib)/opencv_videostab$(cvv).lib \
eigen_root = k:/eigen/3.2.8
main : $(source)
cl /ehsc -o2 -i. -i$(opencv_inc) -i$(eigen_root) $(source) $(opencv_libs)
clean :
del /q *.obj *.exe
.
針對自己的需要修改相應的目錄,如果是直接使用的話,要把:insert 和最後的 . 刪掉。
這個makefile可以結合vim使用,只需要在你的vimrc裡面新增一句
autocmd bufnewfile makefile so d:\makefile.txt
其中d:\makefile.txt存放的就是這裡的第一段**!
如果你是伸手黨,請遠離
如何加速Linux下的編譯速度(加速make)
專案越來越大,每次需要重新編譯整個專案都是一件很浪費時間的事情。research了一下,找到以下可以幫助提高速度的方法,總結一下。有人說在windows下用了ramdisk把乙個專案編譯時間從4.5小時減少到了5分鐘,也許這個數字是有點誇張了,不過粗想想,把檔案放到記憶體上做編譯應該是比在磁碟上快多...
windows下實現螢幕分享 C
採用udp廣播進行資料的傳輸,實現windows下進行低延遲的螢幕共享。開發語言 c 第三方元件 redis 1.實現思路 總體流程圖 dgis.desktopshare實現windows下螢幕分享低延遲功能,按照服務執行位置由三部分構成 發起端 接收端 快取端。通過udp廣播實現發起端和接收端的通...
分享乙個 Windows 部署 Ruby 的方案
學ruby要用linux和mac?雖然ruby有windows版本,但網上很多人還是建議使用linux或者mac,不信邪去試了下,在windows下的ruby很多包無法編譯通過,往往艱難地安裝好乙個需要編譯的gem,版本更新了一下又不行了,windows的確不適合部署ruby,但ubuntu不是沒有...