lykhonis / terramach

Terra Mach is a mapping frontend system to build graphical interfaces for devices.
https://terramach.io
GNU General Public License v3.0
165 stars 9 forks source link

Fail on fresh build of counter example #3

Closed flukejones closed 4 years ago

flukejones commented 4 years ago

I'll have a closer look at some point later, but a build from a fresh clone of the repo results in the following:

   Compiling skia-safe v0.27.1
error[E0433]: failed to resolve: could not find `Context` in `gl`
  --> terramach/graphics/src/gl/gl.rs:40:52
   |
40 |             context: context.into().or_else(|| gl::Context::current())?,
   |                                                    ^^^^^^^ could not find `Context` in `gl`

error[E0412]: cannot find type `Context` in module `gl`
  --> terramach/graphics/src/gl/gl.rs:30:18
   |
30 |     context: gl::Context,
   |                  ^^^^^^^ not found in `gl`
   |
help: possible candidates are found in other modules, you can import them into scope
   |
19 | use core::task::Context;
   |
19 | use skia_safe::gpu::Context;
   |
19 | use std::task::Context;
   |

error[E0412]: cannot find type `Context` in module `gl`
  --> terramach/graphics/src/gl/gl.rs:36:39
   |
36 |         context: impl Into<Option<gl::Context>>,
   |                                       ^^^^^^^ not found in `gl`
   |
help: possible candidates are found in other modules, you can import them into scope
   |
19 | use core::task::Context;
   |
19 | use skia_safe::gpu::Context;
   |
19 | use std::task::Context;
   |

error[E0412]: cannot find type `Context` in module `gl`
  --> terramach/graphics/src/gl/gl.rs:49:43
   |
49 |     pub fn context(&mut self) -> &mut gl::Context {
   |                                           ^^^^^^^ not found in `gl`
   |
help: possible candidates are found in other modules, you can import them into scope
   |
19 | use core::task::Context;
   |
19 | use skia_safe::gpu::Context;
   |
19 | use std::task::Context;
   |

warning: unused import: `Rect`
  --> terramach/graphics/src/gl/display.rs:25:82
   |
25 |     AlphaType, Budgeted, ColorSpace, ColorType, Display as GrDisplay, ImageInfo, Rect, Size,
   |                                                                                  ^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

error[E0282]: type annotations needed
   --> terramach/graphics/src/gl/display.rs:162:13
    |
162 |             None,
    |             ^^^^ cannot infer type for type parameter `T` declared on the enum `Option`

error: aborting due to 5 previous errors

Some errors have detailed explanations: E0282, E0412, E0433.
For more information about an error, try `rustc --explain E0282`.
error: could not compile `terramach-graphics`.

To learn more, run the command again with --verbose.
flukejones commented 4 years ago

Duplicate of #1, sorry. Let's see if I can help get Linux support up.