coeuvre / rust-2048

A 2048 clone with Piston game engine
MIT License
236 stars 40 forks source link

Build error: core-graphics-0.3.2 #37

Open ws051682 opened 2 years ago

ws051682 commented 2 years ago

Hi, everyone,

I'm trying to build it on a MacOS 12.3.1 with rust 1.61.0. however, I received a lot of build errors. it looks many functions that being used is a private function. just 3 examples.

error: type `CGSRegionObject` is private
  --> /Users/xxx.cargo/registry/src/github.com-1ecc6299db9ec823/core-graphics-0.3.2/src/private.rs:50:25
   |
50 |                 region: region,
   |                         ^^^^^^ private type

error: type `CGSRegionObject` is private
  --> /Users/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/core-graphics-0.3.2/src/private.rs:81:21
   |
81 |             assert!(ffi::CGSSetSurfaceShape(self.context_id,
   |                     ^^^^^^^^^^^^^^^^^^^^^^^ private type

error: type `CGSRegionObject` is private
  --> /Users/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/core-graphics-0.3.2/src/private.rs:84:45
   |
84 | ...                   region.region) == 0)
   |                       ^^^^^^^^^^^^^ private type

error: could not compile `core-graphics` due to 19 previous errors

can anyone help on this topic? thanks in advance.