I am trying to get the DK1 working on a raspberry pi 3. I downloaded the Oculus Linux SDK version 2.5 and started to build things up. I am using James Georges ofxOculusRift as a base. I know it is underpowered but I dont need it to do anything fancy if I get it to work, just play a movie.
I think the structure is OK, I am working with a cut down version to start with, without any drawing at all, I just want to get the sensor data working first. I know I will have to re-write the distortion shaders and some of the draw functions for openGL ES, but I did not get that far yet.
I am getting stuck on a function that the SDK uses to check the screens attached and see which rift it is. I could remove it, but for now I dont want to alter the SDK. It uses Xinerama to do the query, which is installed on the PI, but I cannot get it to link to the library. The lines that cause the compile to fail are:
OVR_Linux_HMDDevice.cpp:(.text+0x778): undefined reference to `XineramaIsActive' OVR_Linux_HMDDevice.cpp:(.text+0x78c): undefined reference to `XineramaQueryScreens'
I tried to include Xinerama before any of the Oculus stuff, (it is installed on the PI, and I did not disable x11 in the config), but I cannot get it to find the library.
Any ideas on how I could get this to link on the pi from this OF app?