Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build instructions? #24

Open
enigma0Z opened this issue Mar 22, 2023 · 1 comment
Open

Build instructions? #24

enigma0Z opened this issue Mar 22, 2023 · 1 comment

Comments

@enigma0Z
Copy link

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...

@fann22
Copy link

fann22 commented Jun 26, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants