wpilibsuite / WPILibPi

WPILib Raspberry Pi images designed for FRC (formerly FRCVision)
Other
87 stars 40 forks source link

Makefile in C++ example doesn't include all opencv libraries #49

Closed markkassab closed 5 years ago

markkassab commented 5 years ago

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.