alexkirsz / dispatch

Combine internet connections, increase your download speed
Apache License 2.0
411 stars 33 forks source link

it wont build on windows 10 #1

Closed Kodi4444 closed 2 years ago

Kodi4444 commented 2 years ago

i get this error

  = note: LINK : fatal error LNK1181: cannot open input file 'Packet.lib'

error: could not compile `dispatch-proxy` due to previous error
Kodi4444 commented 2 years ago

well i got it to install but I had to find and download Packet.lib then put it in C:\Users\%Username%.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib.

gregyjames commented 2 years ago

@Kodi4444 Where did you get packet.lib from?

gregyjames commented 2 years ago

Wait I found it. For anyone also stuck on the same issue you need to get the right packet.lib for your toolchain from WinPcap 4.1.2 Developer's Pack

Amir-m-a commented 2 years ago

Same problem with win 11 + gnu toolchain (mingw64) Fixed by installing Npcap (which is recommended by WinPcap as it's not maintained anymore) Packet.lib from sdk/lib/x64 as mentioned above fixed the build error Had to install it too for packet.dll error Works fine now

alexkirsz commented 2 years ago

Fixed in #2 (thanks @gregyjames!)