Open mrfortenberry2255 opened 1 year ago
Hopefully he gives this proper attenttion
@mrfortenberry2255 that implies that your GOPATH/bin directory is not on your shell's PATH -- I need to help set up better getting started instructions. Would you be interested in helping with that?
It appears there's a problem with portaudio-2.0
.
https://ubuntuforums.org/showthread.php?t=1245728
Relevant error:
go build github.com/gordonklaus/portaudio:
# pkg-config --cflags -- portaudio-2.0
Package portaudio-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `portaudio-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'portaudio-2.0' found
pkg-config: exit status 1
Full trace:
❯ go install github.com/tmc/righthand@main
go: downloading github.com/tmc/righthand v0.0.0-20230724190318-f1aea90d862d
go: downloading github.com/tmc/audioutil v0.0.0-20230707005244-54efdb41c235
go: downloading github.com/progrium/macdriver v0.4.1-0.20230706190053-7e5bd0a70b46
go: downloading github.com/go-vgo/robotgo v0.100.10
go: downloading github.com/goccy/go-yaml v1.11.0
go: downloading github.com/tmc/langchaingo v0.0.0-20230701162323-81dcfa6b690d
go: downloading github.com/tmc/whisper.cpp/bindings/go v0.0.0-20230705062322-9af4a3211895
go: downloading github.com/go-audio/audio v1.0.0
go: downloading github.com/go-audio/transforms v0.0.0-20180121090939-51830ccc35a5
go: downloading github.com/go-audio/wav v1.1.0
go: downloading github.com/gordonklaus/portaudio v0.0.0-20221027163845-7c3b689db3cc
go: downloading github.com/fatih/color v1.10.0
go: downloading github.com/robotn/gohook v0.31.3
go: downloading github.com/vcaesar/gops v0.21.3
go: downloading github.com/vcaesar/imgo v0.30.0
go: downloading github.com/vcaesar/keycode v0.10.0
go: downloading github.com/vcaesar/tt v0.20.0
go: downloading github.com/pkoukk/tiktoken-go v0.1.2
go: downloading github.com/mattn/go-colorable v0.1.8
go: downloading github.com/mattn/go-isatty v0.0.12
go: downloading golang.org/x/sys v0.9.0
go: downloading github.com/go-audio/riff v1.0.0
go: downloading golang.org/x/image v0.0.0-20211028202545-6944b10bf410
go: downloading github.com/dlclark/regexp2 v1.8.1
go: downloading github.com/shirou/gopsutil v3.21.10+incompatible
go: downloading github.com/tklauser/go-sysconf v0.3.9
go build github.com/gordonklaus/portaudio:
# pkg-config --cflags -- portaudio-2.0
Package portaudio-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `portaudio-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'portaudio-2.0' found
pkg-config: exit status 1
# github.com/tmc/whisper.cpp/bindings/go
In file included from _cgo_export.c:4:
In file included from whisper.go:16:
../go/pkg/mod/github.com/tmc/whisper.cpp/bindings/go@v0.0.0-20230705062322-9af4a3211895/whisper.h:133:49: warning: declaration of 'struct whisper_full_params' will not be visible outside of this function [-Wvisibility]
# github.com/tmc/whisper.cpp/bindings/go
In file included from ../go/pkg/mod/github.com/tmc/whisper.cpp/bindings/go@v0.0.0-20230705062322-9af4a3211895/params.go:11:
../go/pkg/mod/github.com/tmc/whisper.cpp/bindings/go@v0.0.0-20230705062322-9af4a3211895/whisper.h:133:49: warning: declaration of 'struct whisper_full_params' will not be visible outside of this function [-Wvisibility]
# github.com/tmc/whisper.cpp/bindings/go
In file included from ../go/pkg/mod/github.com/tmc/whisper.cpp/bindings/go@v0.0.0-20230705062322-9af4a3211895/whisper.go:16:
../go/pkg/mod/github.com/tmc/whisper.cpp/bindings/go@v0.0.0-20230705062322-9af4a3211895/whisper.h:133:49: warning: declaration of 'struct whisper_full_params' will not be visible outside of this function [-Wvisibility]
# github.com/progrium/macdriver/core
../go/pkg/mod/github.com/progrium/macdriver@v0.4.1-0.20230706190053-7e5bd0a70b46/core/core_objc.gen.go:172:3: warning: class method '+localizedUserNotificationStringForKey:arguments:' not found (return type defaults to 'id') [-Wobjc-method-access]
../go/pkg/mod/github.com/progrium/macdriver@v0.4.1-0.20230706190053-7e5bd0a70b46/core/core_objc.gen.go:884:3: warning: instance method '-shuffledArray' not found (return type defaults to 'id') [-Wobjc-method-access]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:17:12: note: receiver is instance of class declared here
../go/pkg/mod/github.com/progrium/macdriver@v0.4.1-0.20230706190053-7e5bd0a70b46/core/core_objc.gen.go:1075:9: warning: returning 'const void *' from a function with result type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
# github.com/go-vgo/robotgo
In file included from ../go/pkg/mod/github.com/go-vgo/robotgo@v0.100.10/robotgo.go:48:
In file included from ../go/pkg/mod/github.com/go-vgo/robotgo@v0.100.10/window/goWindow.h:12:
../go/pkg/mod/github.com/go-vgo/robotgo@v0.100.10/window/window.h:21:6: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
../go/pkg/mod/github.com/go-vgo/robotgo@v0.100.10/window/window.h:29:6: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
# github.com/progrium/macdriver/cocoa
../go/pkg/mod/github.com/progrium/macdriver@v0.4.1-0.20230706190053-7e5bd0a70b46/cocoa/cocoa_objc.gen.go:177:3: warning: class method '+mouseCoalescingEnabled' not found (return type defaults to 'id') [-Wobjc-method-access]
../go/pkg/mod/github.com/progrium/macdriver@v0.4.1-0.20230706190053-7e5bd0a70b46/cocoa/cocoa_objc.gen.go:185:3: warning: class method '+swipeTrackingFromScrollEventsEnabled' not found (return type defaults to 'id') [-Wobjc-method-access]
../go/pkg/mod/github.com/progrium/macdriver@v0.4.1-0.20230706190053-7e5bd0a70b46/cocoa/cocoa_objc.gen.go:567:3: warning: class method '+compatibleWithResponsiveScrolling' not found (return type defaults to 'id') [-Wobjc-method-access]
../go/pkg/mod/github.com/progrium/macdriver@v0.4.1-0.20230706190053-7e5bd0a70b46/cocoa/cocoa_objc.gen.go:627:3: warning: instance method '-loadNibNamed:owner:options:' not found (return type defaults to 'id') [-Wobjc-method-access]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h:19:12: note: receiver is instance of class declared here
../go/pkg/mod/github.com/progrium/macdriver@v0.4.1-0.20230706190053-7e5bd0a70b46/cocoa/cocoa_objc.gen.go:1638:9: warning: returning 'NS_RETURNS_INNER_POINTER const void *' from a function with result type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
../go/pkg/mod/github.com/progrium/macdriver@v0.4.1-0.20230706190053-7e5bd0a70b46/cocoa/cocoa_objc.gen.go:7501:3: warning: 'NSView' may not respond to 'backgroundColor'
../go/pkg/mod/github.com/progrium/macdriver@v0.4.1-0.20230706190053-7e5bd0a70b46/cocoa/cocoa_objc.gen.go:7506:3: warning: 'NSView' may not respond to 'setBackgroundColor:'
~/code ▓▒░···················░▒▓ 33s nice_base system 12:52:23 PM
❯ righthand
zsh: command not found: righthand
Thanks!
Fix for Mac: brew install portaudio
Then re-run the go install. Perfect.
Here's the linux version: http://portaudio.com/docs/v19-doxydocs/compile_linux.html
Sure. I am free to do zoom or messenger video if that helps. I have a MacbookPro 16 with Ventura and 64G and the latest Xcode setup.Sent from my iPhoneOn Jul 24, 2023, at 3:09 PM, Travis Cline @.***> wrote: @mrfortenberry2255 that implies that your GOPATH/bin directory is not on your shell's PATH -- I need to help set up better getting started instructions. Would you be interested in helping with that?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
I am on macOS Ventura 13.4 using Xcode IDESent from my iPhoneOn Jul 24, 2023, at 3:58 PM, Kastan Day @.***> wrote: Here's the linux version: http://portaudio.com/docs/v19-doxydocs/compile_linux.html
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
I installed go, did the build and when I try to run righthand at terminal, it says command not found: righthand. I opened the README.md and followed instructions. There is nothing about env requirements I noticed. What am I missing?