bwasty / gltf-viewer

glTF 2.0 Viewer written in Rust
The Unlicense
188 stars 31 forks source link

Build error on dependency gltf #65

Open Nevsden opened 4 years ago

Nevsden commented 4 years ago

When trying to install the gltf-viewer with cargo install gltf-viewer I got the following error. I already tried to find similar problems by browsing issues within this project and the dependency gltf but could not find anything.

The error looks as follows:

....
Compiling gltf v0.11.3
error[E0597]: `buf` does not live long enough
   --> C:\Users\linden\.cargo\registry\src\github.com-1ecc6299db9ec823\gltf-0.11.3\src\binary.rs:225:35
    |
119 | impl<'a> Glb<'a> {
    |      -- lifetime `'a` defined here
...
225 |                     Self::from_v2(&buf)
    |                     --------------^^^^-
    |                     |             |
    |                     |             borrowed value does not live long enough
    |                     argument requires that `buf` is borrowed for `'a`
...
233 |             }
    |             - `buf` dropped here while still borrowed

error: aborting due to previous error
vlisivka commented 3 years ago

Just clone this repository and build it locally.

ugurberkecan commented 2 years ago

@vlisivka how can we run locally ?

vlisivka commented 2 years ago

@ugurberkecan I cloned repository, built it locally, and then ran it.

ugurberkecan commented 2 years ago

how can i build it ? @vlisivka i am mac user.