Onboard camera /dev/video0

The flags returned by pkg-config make me wonder: Have you installed opencv-3.2.0 in /usr (I suppose you had uninstalled opencv4tegra before) ? Not sure about the include path…In this case it should be -I/usr/include [EDIT: looks like that’s normal way for opencv pkgconfig files, although not what I’d use (opencv1?)… but this may be out of topic.]

You may also activate g++ warnings (-Wall) and post if any.

You can see which dynamic libraries will be loaded for your app with

ldd ./video

You may try to compile without pkg-config and give explicitly the paths for include and libs to g++ as in post #5.