Why can't initialize Astra Stereo S

Why can’t I initialize Astra Stereo S with the following simple program? However, I can successfully execute SimpleStreamViewer-SFML

include astra/astra.hpp
include cstdio
include iostream
using namespace std;

int main(int argc, char** argv)
{
std::cout << “found astra/astra.hpp” << std::endl;

astra::initialize();// initialize astra
std::cout << “initialized astra.\n”;

astra::terminate();// cleanly shutdown (turn off) astra

std::cout << “hit enter to exit program” << std::endl;
std::cin.get();

return 0;
}

Command to compile
g++ -std=c++11 -Wl,-rpath=/path/to/lib -I /path/to/include -L /path/to/lib -g main.cpp -lastra -lastra_core -lastra_core_api -o main

Output when I run ./main

found astra/astra.hpp
Warning: USB events thread - failed to set priority. This might cause loss of data…
unsupported descriptor subtype VS_COLORFORMAT
attempt to claim already-claimed interface 1
Segmentation fault (core dumped)

Hey @asifkhan, I’m just curious if you managed to solve this problem.

not yet. At the moment I’m using python.

I get the same spew running my application, but then it seems to work:

Warning: USB events thread - failed to set priority. This might cause loss of data...
unsupported descriptor subtype VS_COLORFORMAT
attempt to claim already-claimed interface 1

The first warning can be avoided running as root.