-
Notifications
You must be signed in to change notification settings - Fork 147
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
Can it build on Linux to windows #246
Comments
Yes, please see the README for instructions |
Oh sorry, misunderstood your question. I thought you asked if it builds on Windows. Building from Linux to Windows should work since we support Windows builds, but we don't have it documented. |
😁Thank you very much for your reply. I would be very grateful if there are documents or construction guidelines. |
I used the build tool: cargo-xwin , and tried to run: cargo xwin build --target x86_64-pc-windows-msvc then, I got the failed info: = note: lld-link: error: could not open 'wpcap.lib': No such file or directory
lld-link: error: could not open 'pcap.lib': No such file or directory I have downloaded the SDK of WinPcap and copied wpcap.lib and packet.lib in the x64 directory to Linux. But I can't find pcap.lib |
I'm no expert on cross-compiling so I can't help you here. However, I'll reopen the issue so that somebody else perhaps will see this and answer. |
tks🌹 |
have you try use |
Yes, I tried it, it didn't work. I also tried to copy and rename |
You might try building with a build.rs (which puts the build information into the build process) instead of the manual environmental variable. The following build.rs works for me on a "built for windows, on windows" build which I haven't tried from Linux, but should be a reasonable starting point. It assumes the same directory structure as what comes out of the npcap dev libs, e.g., that if you want a x64 bit build, you want to use the "lib/x64" subdir.
|
@robs-zeynet thank you, i had tried it, but it not worked |
I want to build on Linux to Windows, can it supports?
The text was updated successfully, but these errors were encountered: