binsoftware / rovr Goto Github PK
View Code? Open in Web Editor NEWA VR headset library for Rust programs targeting the Oculus Rift.
License: MIT License
A VR headset library for Rust programs targeting the Oculus Rift.
License: MIT License
OpenVR is great because it's at least partially headset-agnostic. And of course is the path to SteamVR/Lighthouse-based hardware. Sadly, the official OpenVR library is C++ with no apparent official C bindings.
So, it will be necessary to:
rovr
and decide whether SteamVR support should be here or in a parallel libraryHmd doesn't expose enough metadata to allow another windowing library to find the Oculus monitor and create the window in the appropriate place. It needs to expose both the native monitor ID and window size/position information reported by the Oculus SDK to deal with window positioning across all platforms.
This was a somewhat big update, so I'd like to put some thought into how to expose the compositor (and how this might affect the usefulness of including OpenVR support in this library vs. elsewhere).
I cannot get a build to complete.
~/Coding/rust/rovr(branch:master) » rustc --version && cargo build fc@FC-Spectre
rustc 1.8.0-beta.2 (2879d940a 2016-03-22)
Compiling wayland-client v0.1.8
Compiling gl_generator v0.0.26
Compiling tempdir v0.3.4
Compiling shared_library v0.1.4
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:45:1: 45:11 error: attribute should be applied to struct or enum [E0517]
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:45 #[repr(C)] pub type wl_dispatcher_func_t = extern fn(*const c_void,
^~~~~~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:45:1: 45:11 help: runrustc --explain E0517
to see a detailed explanation
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:51:1: 51:11 error: attribute should be applied to struct or enum [E0517]
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:51 #[repr(C)] pub type wl_log_func_t = extern fn(_: *const c_char, ...);
^~~~~~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:51:1: 51:11 help: runrustc --explain E0517
to see a detailed explanation
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:53:1: 53:11 error: attribute should be applied to struct or enum [E0517]
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:53 #[repr(C)] pub type wl_fixed_t = int32_t;
^~~~~~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/ffi/abi.rs:53:1: 53:11 help: runrustc --explain E0517
to see a detailed explanation
Compiling mmap v0.1.1
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/core/mod.rs:57:5: 57:39 error: the traitcore::marker::Sized
is not implemented for the typeSelf
[E0277]
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/core/mod.rs:57 fn from(other: T) -> Option;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/core/mod.rs:57:5: 57:39 help: runrustc --explain E0277
to see a detailed explanation
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/core/mod.rs:57:5: 57:39 note:Self
does not have a constant size known at compile-time
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/wayland-client-0.1.8/src/core/mod.rs:57:5: 57:39 note: required bycore::option::Option
error: aborting due to previous error
Build failed, waiting for other jobs to finish...
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/gl_generator-0.0.26/registry.rs:322:45: 322:51 error: no method namedevents
found for typecore::cell::RefMut<'_, registry::xml::reader::EventReader<R>>
in the current scope
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/gl_generator-0.0.26/registry.rs:322 for event in self.port.borrow_mut().events() {
^~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/gl_generator-0.0.26/registry.rs:328:17: 328:37 error: no associated item namedError
found for typeregistry::xml::reader::events::XmlEvent
in the current scope
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/gl_generator-0.0.26/registry.rs:328 XmlEvent::Error(err) => panic!("XML error: {:?}", err),
^~~~~~~~~~~~~~~~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:56:9: 56:27 warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:56 #[allow(raw_pointer_derive)]
^~~~~~~~~~~~~~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:56:9: 56:27 warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:56 #[allow(raw_pointer_derive)]
^~~~~~~~~~~~~~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:57:16: 57:21 note: in this expansion of #[derive_Clone] (defined in /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs)
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:56:9: 56:27 warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:56 #[allow(raw_pointer_derive)]
^~~~~~~~~~~~~~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:57:10: 57:14 note: in this expansion of #[derive_Copy] (defined in /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs)
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:69:9: 69:27 warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:69 #[allow(raw_pointer_derive)]
^~~~~~~~~~~~~~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:69:9: 69:27 warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:69 #[allow(raw_pointer_derive)]
^~~~~~~~~~~~~~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:70:16: 70:21 note: in this expansion of #[derive_Clone] (defined in /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs)
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:69:9: 69:27 warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:69 #[allow(raw_pointer_derive)]
^~~~~~~~~~~~~~~~~~
/home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs:70:10: 70:14 note: in this expansion of #[derive_Copy] (defined in /home/fc/.multirust/toolchains/beta/cargo/registry/src/github.com-88ac128001ac3a9a/mmap-0.1.1/src/lib.rs)
error: aborting due to 2 previous errors
Could not compilewayland-client
.
I get the same errors for stable/beta/nightly under Linux x86_64.
Unlike OS X/Windows, there's no identifier for the display given by the Oculus SDK. So position information needs to be used to guess which display is the Hmd. glutin doesn't currently expose enough information to perform this match.
The move to an official shared-DLL support model leaves two options:
Building against the source removes an installation dependency for dev. But given Oculus' intended deployment model, there's no other real advantage to building against a private copy of the SDK.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.