Missing .h files, even though dependencies are installed (MacOSX)
sovrinbloc opened this issue · 1 comments
sovrinbloc commented
I used go get for g3n, g3nd, and its dependencies. I can run the g3n demos with no issue.
I've done brew install libvorbis openal-soft
. They install properly.
Here is the error I get when I attempt, go get -u github.com/danaugrs/gokoban
JoeMBP:gokoban joealai$ go get -u github.com/danaugrs/gokoban
# github.com/danaugrs/gokoban/vendor/github.com/g3n/engine/audio/vorbis
../../github.com/danaugrs/gokoban/vendor/github.com/g3n/engine/audio/vorbis/vorbis.go:15:11: fatal error: 'codec.h' file not found
#include "codec.h"
^~~~~~~~~
1 error generated.
# github.com/danaugrs/gokoban/vendor/github.com/g3n/engine/audio/ov
../../github.com/danaugrs/gokoban/vendor/github.com/g3n/engine/audio/ov/vorbisfile.go:16:11: fatal error: 'vorbisfile.h' file not found
#include "vorbisfile.h"
^~~~~~~~~~~~~~
1 error generated.
# github.com/danaugrs/gokoban/vendor/github.com/g3n/engine/audio/al
../../github.com/danaugrs/gokoban/vendor/github.com/g3n/engine/audio/al/al.go:19:10: fatal error: 'al.h' file not found
#include "al.h"
^~~~~~
1 error generated.
When I attempt to run this game, it gives me these errors.
JoeMBP:gokoban joealai$ go run *.go
# github.com/danaugrs/gokoban/vendor/github.com/g3n/engine/audio/vorbis
vendor/github.com/g3n/engine/audio/vorbis/vorbis.go:15:11: fatal error: 'codec.h' file not found
#include "codec.h"
^~~~~~~~~
1 error generated.
# github.com/danaugrs/gokoban/vendor/github.com/g3n/engine/audio/ov
vendor/github.com/g3n/engine/audio/ov/vorbisfile.go:16:11: fatal error: 'vorbisfile.h' file not found
#include "vorbisfile.h"
^~~~~~~~~~~~~~
1 error generated.
# github.com/danaugrs/gokoban/vendor/github.com/g3n/engine/audio/al
vendor/github.com/g3n/engine/audio/al/al.go:19:10: fatal error: 'al.h' file not found
#include "al.h"
danaugrs commented
Hi! I just updated Gokoban to use the latest version of g3n and fixed all the issues you described.
See #5 (comment).
Please get latest and try building+running on macOS again.
Let me know what happens!