V0.5.0 SDK samples (including Depth only) on OSX 10.13 show a black window for Astra Pro

See here: [Megathread] Newbie FAQs (Astra PRO)

Long story short, SimpleDepthViewer-SFML sample should work but MultiSensorViewer-SFML and SimpleColorViewer-SFML will be black on MacOS due what sounds like an issue in the SDK for Mac. You can use UVC (webcam) if you require colorframes

Not sure about your OpenCV/OpenNI trouble