Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error in macos #2

Open
chy1021653908 opened this issue Dec 14, 2022 · 0 comments
Open

build error in macos #2

chy1021653908 opened this issue Dec 14, 2022 · 0 comments

Comments

@chy1021653908
Copy link

Compiling libscreenshot v0.3.1 (https://github.com/MadrigalStreetCartel/libscreenshot?branch=area-capture#2bd0a19c)
error[E0046]: not all trait items implemented, missing: capture_window_area, capture_focused_window_area
--> /Users/chy/.cargo/git/checkouts/libscreenshot-7b3b756c80d81841/2bd0a19/src/platform/macos/cg_provider.rs:46:1
|
46 | impl WindowCaptureProvider for CGProvider {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing capture_window_area, capture_focused_window_area in implementation
|
::: /Users/chy/.cargo/git/checkouts/libscreenshot-7b3b756c80d81841/2bd0a19/src/traits/window_capture_provider.rs:5:5
|
5 | fn capture_window_area(&self, window_id: WindowId, area: Area) -> Result;
| -------------------------------------------------------------------------------------- capture_window_area from trait
6 | fn capture_focused_window(&self) -> Result;
7 | fn capture_focused_window_area(&self, area: Area) -> Result;
| ------------------------------------------------------------------------- capture_focused_window_area from trait

For more information about this error, try rustc --explain E0046.
error: could not compile libscreenshot due to previous error
warning: build failed, waiting for other jobs to finish...
Error failed to build app: failed to build app
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

this happens in macbookpro m1

@MadrigalStreetCartel MadrigalStreetCartel locked and limited conversation to collaborators Dec 14, 2022
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

1 participant