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

Unresolved Imports when building #17

Closed
Antonio-Bennett opened this issue Jan 5, 2023 · 5 comments
Closed

Unresolved Imports when building #17

Antonio-Bennett opened this issue Jan 5, 2023 · 5 comments

Comments

@Antonio-Bennett
Copy link

Hello sorry for my ignorance but I'm trying to build win32yank and I keep getting unresolved import error as seen below. What is the possible reason?
image
image

@mariansimecek
Copy link

I have the same problem

@casret
Copy link

casret commented Jan 5, 2023

If you are building from linux, you'll need to cross compile. cargo build --target x86_64-pc-windows-gnu -r

@jemag
Copy link

jemag commented Jan 5, 2023

Thanks for the info @casret , had a problem with the linker with the cross compilation command however:
image
Ended up using https://github.com/cross-rs/cross to do it

Basically
cargo clean
then
cross build --target x86_64-pc-windows-gnu
which worked for me

@gaving
Copy link

gaving commented Jan 12, 2023

Cheers @jemag - cross did the trick for me too!

@equalsraf
Copy link
Owner

Correct, win32yank is a native windows application (calls the windows clipboard API). To build it from linux or wsl you will always need to cross compile, or build using the native windows toolchain instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants