layeh / barnard

barnard is a terminal-based client for the Mumble voice chat software
GNU General Public License v2.0
150 stars 46 forks source link

compilation error #41

Closed markbil closed 4 years ago

markbil commented 4 years ago

barnard doesn't compile properly on my end:

I installed Go on my Ubuntu machine via

sudo apt install golang

and then ran

$ go get -u layeh.com/barnard

However, next thing I get is this compilation error:

> # github.com/dchote/go-openal/openal

In file included from src/github.com/dchote/go-openal/openal/alcCore.go:24:0:
./local.h:5:9: fatal error: AL/al.h: No such file or directory
 #include<AL/al.h>
         ^~~~~~~~~
compilation terminated.

Am I doing something wrong? Thank you!

FanchenBao commented 4 years ago

I used barnard a while back on raspberry pi and wrote a step-by-step instruction. You can refer to that doc, but keep in mind that I was on Raspbian, not Ubuntu. Basically, you need to configure GO, install openAL, and install opus before installing barnard.

markbil commented 4 years ago

fantastic, thank you! I didn't have openAL and opus installed. Installing those packages did the job:

sudo apt-get install libopenal-dev libopus-dev