dbatbold / beep

Beep sound library and utility for alerting end of a command execution. Beep can also play MIDI or text music score.
Other
57 stars 7 forks source link

go get error happened #1

Open yoneapp opened 6 years ago

yoneapp commented 6 years ago

Hi, nice product owner. I will report that go get failed :)

$ go get github.com/dbatbold/beep/cmd/beep
# github.com/dbatbold/beep
../../../../go/src/github.com/dbatbold/beep/midi.go:393:15: midi.music.Playback undefined (type *Music has no field or method Playback)
../../../../go/src/github.com/dbatbold/beep/music.go:536:9: m.Playback undefined (type *Music has no field or method Playback)
../../../../go/src/github.com/dbatbold/beep/piano.go:110:28: undefined: HomeDir
../../../../go/src/github.com/dbatbold/beep/sheet.go:38:27: undefined: HomeDir
../../../../go/src/github.com/dbatbold/beep/sheet.go:44:23: undefined: HomeDir
../../../../go/src/github.com/dbatbold/beep/sheet.go:78:28: undefined: HomeDir
../../../../go/src/github.com/dbatbold/beep/sheet.go:98:24: undefined: HomeDir
../../../../go/src/github.com/dbatbold/beep/violin.go:91:28: undefined: HomeDir
../../../../go/src/github.com/dbatbold/beep/web.go:136:2: undefined: InitSoundDevice
../../../../go/src/github.com/dbatbold/beep/web.go:149:5: undefined: StopPlayBack
../../../../go/src/github.com/dbatbold/beep/web.go:149:5: too many errors
dbatbold commented 6 years ago

Hi, what is your $ go env output?

yoneapp commented 6 years ago
$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/yoneapp/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.9.2/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.9.2/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/y2/415424wd0cx_0w97nx0417nm0000gn/T/go-build804874970=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
dbatbold commented 6 years ago

GOOS=darwin is not supported yet. I started a branch libsoundio-port for porting beep to MacOS but it didn't go well. I need use the native audio support instead of using the libsoundio library to make this work.

yoneapp commented 6 years ago

I get the point. Thank you for your reply.

xyproto commented 10 months ago

ChatGPT + GPT4 can be a great help when porting code between platforms, btw.