rust-2048 icon indicating copy to clipboard operation
rust-2048 copied to clipboard

Build error: core-graphics-0.3.2

Open ws051682 opened this issue 2 years ago • 0 comments

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.

ws051682 avatar Jun 01 '22 20:06 ws051682