Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Matherunner committed May 4, 2021
1 parent 4333232 commit 2018098
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,31 @@ Half-Life mod to faciliate Half-Life physics and NPC AI research.

## Building

Install a relatively new version of Go. Run this in WSL on Windows.
### Setup

Relies heavily on CGO. Suggested environmental variables in WSL:
Set up WSL in Windows or use a Linux system.

Install a relatively new version of Go.

Install `gcc-mingw-w64` to get `i686-w64-mingw32-gcc` or similar.

Install `protobuf-compiler` or similar to get `protoc`.

Run the following to get `protoc-gen-go`:

```bash
go install google.golang.org/protobuf/cmd/protoc-gen-go
```

Make sure `protoc-gen-go` can be found in `PATH`, which is needed by `protoc`. If not, set

```bash
export PATH="$PATH:"$(go env GOPATH)/bin
```

### Build

Suggested environmental variables in WSL:

```bash
export CC=i686-w64-mingw32-gcc
Expand Down

0 comments on commit 2018098

Please sign in to comment.