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

Error in installation AL/al.h #18

Closed
LiveITA opened this issue Sep 25, 2016 · 7 comments
Closed

Error in installation AL/al.h #18

LiveITA opened this issue Sep 25, 2016 · 7 comments
Labels

Comments

@LiveITA
Copy link

LiveITA commented Sep 25, 2016

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
Copy link

ghost commented Sep 25, 2016

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.

@ghost ghost added the question label Sep 25, 2016
@LiveITA
Copy link
Author

LiveITA commented Sep 25, 2016

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
Copy link

ghost commented Sep 25, 2016

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

@LiveITA
Copy link
Author

LiveITA commented Sep 25, 2016

1.3.3 installed via sudo apt-get install golang

@ghost
Copy link

ghost commented Sep 25, 2016

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
Copy link
Author

LiveITA commented Sep 25, 2016

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
Copy link

ghost commented Sep 25, 2016

No idea, sorry.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant