- g++:
- g++ `pkg-config --cflags opencv` test.cpp `pkg-config --libs opencv` -o test
- Makefile:
- executable: test.o
g++ -o executable test.o `pkg-config --libs opencv`
test.o:
g++ `pkg-config --cflags opencv` -c test.cpp
Oct 11, 2013
OpenCV: a sample program
A simple program compilation on Ubuntu 12.04. There is an annoying issue where the placement of libraries has to happen before the object needing them. Correct format.
Subscribe to:
Post Comments (Atom)
Carlo Cipolla's Laws of Stupidity
"By creating a graph of Cipolla's two factors, we obtain four groups of people. Helpless people contribute to society but are...
-
To install pngwrite we need to install to helper library before we install pngwriter. 1. libpng 2. freetype2 We can use fink or macport to i...
-
"By creating a graph of Cipolla's two factors, we obtain four groups of people. Helpless people contribute to society but are...
-
Use 'Disk Utility' application to format the USB drive in MS-DOS (FAT) format Download the windows ISO file from the Windows websit...
No comments:
Post a Comment