OpenNI Example - Linux

Hello everyone,

I am using Orbbec Persee with OS Linux. And when I want to run the example “nuitrack_ni_gl_sample” I take this error:

  1. with sudo ./nuitrack_ni_gl_sample:
    No protocol specified
    freeglut (./nuitrack_ni_gl_sample): failed to open display ': 0.0'

  2. with ./nuitrack_ni_gl_sample
    Made Initial
    Warning: USB events thread - failed to set priority. This might cause loss of data...
    terminate called after throwing an instance of 'std::runtime_error'
    what(): locale::facet::_S_create_c_locale name not valid
    Aborted

I followed step by step the installation instructions of the site and the “read me” file. Also the other examples ‘nuitrack_gl_sample’ and ‘nuitrack_console_sample’ work fine.

I think that the problem is with the OpenNI because the program stops after ‘glutInit()’.

Do you have any idea how can I fix it

Best
Brian

Hi Brian,

You don’t have to use sudo to run this sample.

Please run the following command: LC_ALL=C ./nuitrack_ni_gl_sample

1 Like

Thank you very much!!!

It worked!!!

You are the best

CY