For all the examples please set up the correct environment variables first:
export NDI_PATH=/usr/local/lib/libndi.so # on a new Raspberry OS for NDI-HX you will also need: export LD_LIBRARY_PATH=/usr/local/lib/ndi_hx