-
Notifications
You must be signed in to change notification settings - Fork 82
How to build GOPA on windows
Medcl edited this page Dec 21, 2018
·
5 revisions
Suppose we are under windows7 64bit system, others is simliar.
1.Install go
goto https://golang.org/dl
,download go1.8.3.windows-amd64.msi, install with default, done.
2.Intall git
goto https://git-scm.com/downloads
, download windows version, install with default, done.
3.Install tdm-gcc
http://tdm-gcc.tdragon.net/download
, download 64bit version, install, choose 64bit, done.
4.Open system environment, set GOPATH to "C:\Users\Administrator\go"
5.Mkdir C:\Users\Administrator\go\src\github.com\infinitbyte
6.Clone GOPA source code, open command terminal
run cd C:\Users\Administrator\go\src\github.com\infinitbyte\gopa
create build.bat
with content below and run.
set GOPATH=%CD%;%GOPATH%
echo %GOPATH%
mkdir bin
rem Install TDM-GCC first! http://tdm-gcc.tdragon.net/download
go build -o bin/gopa.exe
7.Done