Opencv2.4.9
交叉编译:
arm-linux-g++ -I/usr/local/arm-linux/include/opencv/ -L/usr/local/arm-linuxb/ -lopencv_core -lopencv_highgui -lpthread -lrt -o test test.cpp
编译c++文件:
交叉编译:
arm-linux-g++ -I/usr/local/arm-linux/include/opencv/ -L/usr/local/arm-linuxb/ -lopencv_core -lopencv_highgui -lpthread -lrt -o test test.cpp
编译c++文件:
g++ `pkg-config --cflags opencv` -o hello hello.cpp `pkg-config --libs opencv`
编译C文件:
gcc`pkg-config --cflags opencv` -o hello hello.c `pkg-config --libs opencv`