Closed pedoc closed 3 months ago
I solved this problem
Using mingw64
environment in msys2
and run
git clone https://github.com/sipcapture/heplify.git
pacman -S mingw-w64-x86_64-go
After go installation, modify ~/.bashrc
and set environment variables
export PATH=/mingw64/lib/go/bin:$PATH
export GOROOT=/mingw64/lib/go
export GOPATH=/mingw64
and run
pacman -S mingw-w64-x86_64-gcc
pacman -S mingw-w64-x86_64-luajit
and run
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc go build -ldflags "-s -w"
copy lua51.dll
to heplify.exe
directory,done
Unfortunately, successful compilation does not mean that it can run correctly.
It seems that there is no compatibility support for window in the code
ok, I overlooked it, on windows you should specify -t pcap
Thank you very much @pedoc
Hi guys First of all thank you for making such a great tool
Currently I hope to be able to compile
heplify
under windows. I looked up historical issues and conducted a google search and found that currently only version1.4.7
has a windows release version, and the latest version is already1.6.x
At the same time, I didn't see any instructions or instructions for compiling on windows. I tried running go build in windows and it prompted me
I also tried installing golang in
msys2
and running the compile command:This will output the following error message:
As of now, I can't compile it successfully under windows, any help would be greatly appreciated
environment: go version:1.21.0 window os version: windows 11 workstation pro msys64 go version:1.22.1 msys64 gcc version:13.2.0