hpxro7 / wwiseutil

Tools for unpacking and modifying Wwise SoundBank and File Package files.
GNU General Public License v3.0
119 stars 14 forks source link

Build instructions? #24

Open enigma0Z opened 1 year ago

enigma0Z commented 1 year ago

I'd like to compile / run this on MacOS & Linux ... but there aren't any instructions by which to build or set up a dev environment. Adding them would be useful...

Fann-level-MAX commented 4 months ago

I'm using Termux on Android.

Make sure you have Go installed on ur OS. In my case, it's: $ pkg install golang

Clone this repo: $ git clone https://github.com/hpxro7/wwiseutil.git

Navigate to the repo: $ cd wwiseutil

Initialize go.mod: $ go mod init something

Depending on which file you want to compile, for example, I want to compile the nogui version (cmd): $ cd cmd

Build main.go: $ go build main.go

You'll be asked to install some modules if they're not installed yet. For example, if you're trying to build cmd/main.go: $ go get github.com/hpxro7/wwiseutil/wwise github.com/hpxro7/wwiseutil/util github.com/hpxro7/wwiseutil/pck github.com/hpxro7/wwiseutil/bnk

Run the build again after installing modules: $ go build main.go

The output file depends on where you run go build. If you run go build inside folder wwise, then the output is inside folder wwise. in my case, the output is in the cmd folder because I run go build there.