Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Building in Windows

Dibort edited this page Dec 19, 2021 · 5 revisions

Building the Client in Windows

These instructions are specific to Windows 10 but should work in earlier versions with a minor bit of tweaking.

Installing Git

Git Download Link

Download and install the Git software from the Download Link. Choose to use Git in Git Bash only.

Installing and Configuring Go

Downloading and Installing

Go Download Link

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.

Testing Go

Go Getting Started

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.

Supporting Software

MinGW-64

Used for building required libraries

Download and Install

Download

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.

Add to Windows PATH

  • 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

WinPcap Developer

Download

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.

Building the Client

Get the client from Github

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

Build the Client

go build cmd/albiondata-client/albiondata-client.go

You should now be the proud owner of a new albiondata-client.exe executable!