Unable to read h264 video on PiZero with C++ static build

are you sure, that was on the same machine ? your cmake log is showing, that no gstreamer components are installed, and that ffmpeg is missing dependancies. you need to fix one or the other, regardless of static/dynamic linking