python-ovrsdk icon indicating copy to clipboard operation
python-ovrsdk copied to clipboard

Update to SDK v0.4.3

Open clebio opened this issue 11 years ago • 1 comments

Hi -- thank you for putting this together. I've got it installed and running, and test.py works as expected (this is on kubuntu 14.10).

Based on the 0.4.3 SDK doc (pdf), I looked for the ovrHmd_GetTrackingState method, but don't find it.

I see that libovr.dll was last commited in 4a48db1, which notes 0.3.2, so I assume the current version of your wrapper hasn't been updated to 0.4.3. Is that simple enough? I don't quite grok what your wrapper does yet, though I'll try to figure it out. Could I just drop a local copy of the newer DLL in, and expect it to work? Let me know if I can help somehow.

clebio avatar Nov 09 '14 19:11 clebio

I'm trying to muddle my way through ctypesgen. I've got the 0.4.4 OVR source, and in the LibOVR directory, I've been trying various forms of the following:

ctypesgen.py --cpp=g++ -l./Lib/Linux/Release/x86_64/libovr.a Src/Kernel/OVR_Compiler.h -o wrapper.py

ctypesgen.py --cpp=g++ -l./Lib/Linux/Release/x86_64/libovr.a -I. -I.. -I./Include -I.Src -I./Src/Kernel Src/OVR_Stereo.h -o wrapper.py

But I just keep getting Oculus does not support this Compiler:

Status: Preprocessing /tmp/tmpvUNJhh.h
Status: gcc -E -U __GNUC__ -dD "-Dinline=" "-D__inline__=" "-D__extension__=" "-D_Bool=uint8_t" "-D__const=const" "-D__asm__(x)=" "-D__asm(x)=" "-DCTYPESGEN=1" /tmp/tmpvUNJhh.h
Error: gcc -E: In file included from /tmp/tmpvUNJhh.h:1:0:
Error: gcc -E: /home/caleb/dev/oculus/ovr_sdk_linux_0.4.4/LibOVR/Src/Kernel/OVR_Compiler.h:90:4: error: #error "Oculus does not support this Compiler"
Error: gcc -E:  #  error "Oculus does not support this Compiler"

Any advice?

clebio avatar Dec 13 '14 14:12 clebio