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

Compilation instructions? #2

Closed
PaulBatchelor opened this issue Nov 2, 2015 · 2 comments
Closed

Compilation instructions? #2

PaulBatchelor opened this issue Nov 2, 2015 · 2 comments

Comments

@PaulBatchelor
Copy link

I don't see any compilation instructions anywhere. How does one compile this, and what are the dependencies?

@boomlinde
Copy link
Owner

Hi Paul,
This follows a typical Go workflow. Assuming that you have go (1.4 or newer) installed:

  1. Set up the GOPATH environment variable to e.g. /home/username/devel/go
  2. Issue go get github.com/boomlinde/acidforth. This will download and build the package along with its Go dependencies into the GOPATH directory tree. Once built, the acidforth binary can be found in $GOPATH/bin

The project depends on two other Go packages, code.google.com/p/portaudio-go/portaudio and github.com/rakyll/portmidi. These require the portaudio and portmidi libraries and headers respectively as they will create C bindings with pkg-config portaudio-2.0 and -lportmidi. These libraries are not automatically downloaded. On the development system (OSX 10.10.5) I got these via the brew package manager.

Go is quite a hack when it comes to linking to external libraries, see https://golang.org/cmd/cgo/. Chances are that you will have to tweak the cgo magic comments to get them to build for a specific system.

I'll add this information to the README some time this week, but let me know if you need assistance with a particular operating system and I can give it a try in a VM. My next goal is to provide binaries for Windows.

@boomlinde
Copy link
Owner

Build instructions added to the README in 21c8130

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