Ubuntu安装出现 Samples/NiViewer/glh/glh_linear.h:80:62: error: no match for ‘operator>’
Ubuntu安装OpenNI时出现…/…/…/…/…/Samples/NiViewer/glh/glh_linear.h:80:62: error: no match for ‘operator>’ (operand types are ‘const std::error_code’ and ‘float’)
#define equivalent(a,b) (((a < b + GLH_EPSILON) && (a > (b - GLH_EPSILON))) ? true : false)
解决方法
将/Samples/NiViewer/glh/glh_linear.h文件中的equivalent全部改为is_equivalent,嫌麻烦可以把这个页面中的文件复制下来替换掉原来的内容。