Closed Aixic-Love closed 3 years ago
I tried to modify pcap.go to look like this
It can be compiled normally, but it will report an error when it runs.
Pinging @elastic/security-external-integrations (Team:Security-External Integrations)
Cross-compile for Windows can be accomplished with the package
target. You must have Docker setup on your macos.
cd packetbeat
make mage
PLATFORMS='windows/amd64' mage package
ls -la build/distributions
Mainly a problem with libpcap.
go.mod
github.com/tsg/gopacket v0.0.0-20200626092518-2ab8e397a786
Try to cross compile...
CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc GOOS=windows GOARCH=amd64 go build -x -v
I need to deploy through the build machine, is there any solution?