Skip to content

How to build

Yancey Wang edited this page Oct 7, 2023 · 5 revisions

this is article OUTDATED, please refer to https://github.com/wangyu-/udp2raw/wiki/How-to-build

install pcap ,and libnet(if necessary)

for linux (debian)
apt install libpcap-dev
apt install libnet1-dev
for mac
brew install libpcap
brew install libnet
for freebsd
pkg install libpcap
pkg install libnet
for windows

You dont need libnet/pcap to build. (though you need winpcap/npcap to run the builded binary)

build

check this article, its almost same. https://github.com/wangyu-/tinyPortMapper/wiki/How-to-build

a few differences

for linux use make linux or make linux_nolibnet

for mac use make mac or make mac_nolibnet

for freebsd use make freebsd or make freebsd_nolibnet

(sure, if you want to build the nolibnet version, libnet dont need to be installed)

for windows use make mingw or make cygwin, there is no make mingw_nolibnet or make cygwin_nolibnet. Because by default there is no libnet.