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

Error in installation AL/al.h #18

Closed LiveITA closed 7 years ago

LiveITA commented 7 years ago

Hi, so after installing gumble i get this error installing barnard

go get -u github.com/layeh/barnard/cmd/barnard
# github.com/timshannon/go-openal/openal
In file included from go/src/github.com/timshannon/go-openal/openal/alcCore.go:24:0:
local.h:5:18: fatal error: AL/al.h: No such file or directory
 #include<AL/al.h>
                  ^
compilation terminated.

what should i do?

PS, installing gumble and termbox go does not give any output, it simply takes some time then let me put the next command, no message displayed, is it ok?

ghost commented 7 years ago

You need to install the OpenAL library and development headers:

sudo apt-get install libopenal1 libopenal-dev

After that has completed, try re-installing barnard.

PS, installing gumble and termbox go does not give any output, it simply takes some time then let me put the next command, no message displayed, is it ok?

That is good; no output means no errors.

LiveITA commented 7 years ago

Thx for the help on gumble. Here i installed lben... etc but then i have this huge error

go get -u github.com/layeh/barnard/cmd/barnard
# github.com/timshannon/go-openal/openal
go/src/github.com/timshannon/go-openal/openal/alcCore.go:86: cannot use unsafe.Pointer(self.handle) (type unsafe.Pointer) as type *C.struct_ALCdevice_struct in argument to _Cfunc_alcGetError
go/src/github.com/timshannon/go-openal/openal/alcCore.go:121: cannot use unsafe.Pointer(self.handle) (type unsafe.Pointer) as type *C.struct_ALCdevice_struct in argument to _Cfunc_alcCloseDevice
go/src/github.com/timshannon/go-openal/openal/alcCore.go:127: cannot use unsafe.Pointer(self.handle) (type unsafe.Pointer) as type *C.struct_ALCdevice_struct in argument to _Cfunc_alcCreateContext
go/src/github.com/timshannon/go-openal/openal/alcCore.go:132: cannot use unsafe.Pointer(self.handle) (type unsafe.Pointer) as type *C.struct_ALCdevice_struct in argument to _Cfunc_walcGetIntegerv
go/src/github.com/timshannon/go-openal/openal/alcCore.go:137: cannot use unsafe.Pointer(self.handle) (type unsafe.Pointer) as type *C.struct_ALCdevice_struct in argument to _Cfunc_walcGetInteger
go/src/github.com/timshannon/go-openal/openal/alcCore.go:158: cannot use unsafe.Pointer(self.Device.handle) (type unsafe.Pointer) as type *C.struct_ALCdevice_struct in argument to _Cfunc_alcCaptureCloseDevice
go/src/github.com/timshannon/go-openal/openal/alcCore.go:166: cannot use unsafe.Pointer(self.Device.handle) (type unsafe.Pointer) as type *C.struct_ALCdevice_struct in argument to _Cfunc_alcCaptureStart
go/src/github.com/timshannon/go-openal/openal/alcCore.go:170: cannot use unsafe.Pointer(self.Device.handle) (type unsafe.Pointer) as type *C.struct_ALCdevice_struct in argument to _Cfunc_alcCaptureStop
go/src/github.com/timshannon/go-openal/openal/alcCore.go:174: cannot use unsafe.Pointer(self.Device.handle) (type unsafe.Pointer) as type *C.struct_ALCdevice_struct in argument to _Cfunc_alcCaptureSamples
go/src/github.com/timshannon/go-openal/openal/alcCore.go:178: cannot use unsafe.Pointer(self.Device.handle) (type unsafe.Pointer) as type *C.struct_ALCdevice_struct in argument to _Cfunc_alcCaptureSamples
go/src/github.com/timshannon/go-openal/openal/alcCore.go:178: too many errors
ghost commented 7 years ago

What version of Go are you using? (can be found using go version)

LiveITA commented 7 years ago

1.3.3 installed via sudo apt-get install golang

ghost commented 7 years ago

You need to upgrade your Go version. From go-openal's README:

Note, as of commit 0a4cd0b this library is no longer compatible with Go 1.3.3 and older.

LiveITA commented 7 years ago

Ok, how can i download, extract and install the v1.5.3 (http://dave.cheney.net/paste/go1.5.3.linux-arm.tar.gz) in one line of code? i'm doing all on 7 raspi at the same time

ghost commented 7 years ago

No idea, sorry.