我在macOS 10.13上运行了该示例,但未显示任何内容,libfreenect2示例Protonect正常运行。这是输出:
./ UserViewer
[Info] [Freenect2Impl]枚举设备...
[信息] [Freenect2Impl]已连接4个USB设备
[信息] [Freenect2Impl]使用序列号找到有效的Kinect v2 @ 20:7 013206265247 [信息] [Freenect2Impl]找到1台设备
[Info] [Freenect2Impl]枚举设备...
[信息] [Freenect2Impl]已连接4个USB设备
[信息] [Freenect2Impl]发现有效的Kinect v2 @ 20:7,序列号> 013206265247
[信息] [Freenect2Impl]找到1台设备
[信息] [Freenect2DeviceImpl]打开...
[信息] [Freenect2DeviceImpl]已打开
[信息] [Freenect2DeviceImpl]开始...
[信息] [Freenect2DeviceImpl]启用USB传输提交...
[信息] [Freenect2DeviceImpl]正在提交USB传输...
[信息] [Freenect2DeviceImpl]已启动
2018-09-10 16:01:34.121 UserViewer [26325:1310654] GLUT警告:glutInit被第二次调用。
[信息] [DepthPacketStreamParser]丢失了11个数据包
[信息] [DepthPacketStreamParser] 2个数据包丢失
[信息] [OpenGLDepthPacketProcessor]平均。时间:17.3218ms->〜57.7306Hz
[信息] [TurboJpegRgbPacketProcessor]平均。时间:20.8515ms->〜47.9583Hz
[信息] [OpenGLDepthPacketProcessor]平均。时间:13.5705ms->〜73.6891Hz
我从源代码编译了此示例,它给出了新的警告:
[General] ERROR: Setting <GLFWContentView: 0x1006c6430> as the first responder for window <GLFWWindow: 0x10052f1c0>, but it is in a different window ((null))! This would eventually crash when the view is freed. The first responder will be set to nil.