-
-
Notifications
You must be signed in to change notification settings - Fork 104
Building in Windows
These instructions are specific to Windows 10 but should work in earlier versions with a minor bit of tweaking.
Download and install the Git software from the Download Link. Choose to use Git in Git Bash only.
Grab the Microsoft Windows installer from the Download Link page.
Install via the MSI. After installation, open up Git Bash and run
go version
to ensure a proper response.
Follow the guide on this page for testing the install. In Windows
10, I had to create the \go
directory in %userprofile%\go
.
Other than that, the instructions should be followed completely.
Once that works, we're ready to move on.
Used for building required libraries
NOTE: Ensure that when installing you select "Architecture: x86_64". If you do not, you will get errors when trying to compile software during the later steps.
- Right click Start and select System
- Click "Advanced System Settings" on the left side
- Click "Environment Variables" on the bottom right
- Under "System Variables" settings, find "Path" and click edit
- Click "New" and add the entry
C:\Program Files\mingw-w64\x86_64-7.1.0-posix-seh-rt_v5-rev1\mingw64\bin
- Click "Ok"
- Open a new Git Bash window, and type
gcc --version
. You should greeted with a version string and description
Download the WinPcap developer files. Extract the file contents to C:\WpdPack
NOTE: Ensure there is not a secondary WpdPack folder nested within
C:\WpdPack
or your go get
command will fail with a pcap.h
warning.
For these instructions, I'll be using Git Bash.
Navigate to ~/go/
Create the directory and subdirectories and navigate there:
mkdir -p src/github.com/broderickhyman
cd src/github.com/broderickhyman
Clone the repo
git clone https://github.com/broderickhyman/albiondata-client.git
go build cmd/albiondata-client/albiondata-client.go
You should now be the proud owner of a new albiondata-client.exe
executable!