Normally when compiling C++ with opencv, we add 'pkg-config --cflags opencv' to the compile flags and 'pkg-config --cflags opencv' to the link flags. The latter is especially helpful given the long list of shared libraries that need to be included.
In the Makefile of the C++ example, the opencv libraries are not included for linking and pkg-config info is not available for the above pkg-config commands to work. Suggest either adding the pkg-config info + the above commands to the Makefile, or enumerating the opencv libraries during linking. Otherwise if someone expands the example to use opencv features, linking fails.
Normally when compiling C++ with opencv, we add 'pkg-config --cflags opencv' to the compile flags and 'pkg-config --cflags opencv' to the link flags. The latter is especially helpful given the long list of shared libraries that need to be included.
In the Makefile of the C++ example, the opencv libraries are not included for linking and pkg-config info is not available for the above pkg-config commands to work. Suggest either adding the pkg-config info + the above commands to the Makefile, or enumerating the opencv libraries during linking. Otherwise if someone expands the example to use opencv features, linking fails.