Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

No support for 32-bit applications? #25

Open
Sgeo opened this issue Jun 9, 2018 · 1 comment
Open

No support for 32-bit applications? #25

Sgeo opened this issue Jun 9, 2018 · 1 comment

Comments

@Sgeo
Copy link

Sgeo commented Jun 9, 2018

Tried to compile this for stable-i686-pc-windows-msvc, and got the following error:

error[E0512]: transmute called with types of different sizes
   --> C:\Users\Sgeo\.cargo\registry\src\github.com-1ecc6299db9ec823\rust-webvr-0.9.10\src\api\openvr\display.rs:152:46
    |
152 |         self.frame_texture.handle = unsafe { mem::transmute(layer.texture_id as u64) };
    |                                              ^^^^^^^^^^^^^^
    |
    = note: source type: u64 (64 bits)
    = note: target type: *mut std::os::raw::c_void (32 bits)

error: aborting due to previous error

For more information about this error, try `rustc --explain E0512`.
error: Could not compile `rust-webvr`.

I assume that this is because I'm compiling for 32-bit.

@jdm
Copy link
Member

jdm commented Feb 5, 2019

It looks like this would build with as usize instead of as u64.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants