Ubuntu系统---编译opencv程序的几种方式g++.Makefile.Cmake 先建立一个工程(一个文件夹),写好xxx.cpp文件,可以是多个: //----------opencv.cpp------------ #include <iostream> #include <opencv2/opencv.hpp> using namespace std; using namespace cv; int main() { Mat srcImage = imread(&qu…
tex编译成pdf通常要经过以下步骤:tex-->dvi-->ps-->pdf.如果修改了tex文件想看一下效果,就要把命令重新敲一遍.虽然就几行命令,反复敲还是很烦人的.最直接的办法就是把命令写成shell脚本,但是与其写shell就不如写个Makefile. 假设正在编辑的tex文件名为annualplan.tex,Makefile就可以写成下面的样子.其中,VIEWER变量可以改为本地的pdf查看软件.make成功后,可以运行make view查看生成的pdf文件. BASE =…
Makefile # if not defined KERNELRELEASE, command is running from command line,need invoke kbuild system. ifeq ($(KERNELRELEASE),) KERNELDIR ?= /linux-2.6.30.4 # the directory of kernel source file PWD := $(shell pwd) # the directory of module source…