stmp icon indicating copy to clipboard operation
stmp copied to clipboard

go-mpv not fount

Open auosun opened this issue 3 years ago • 8 comments

../../go/pkg/mod/github.com/yourok/[email protected]/mpv/consts.go:3:10: fatal error: 'mpv/client.h' file not found #include <mpv/client.h> ^~~~~~~~~~~~~~ 1 error generated.

auosun avatar Feb 07 '22 10:02 auosun

You gotta install mpv-dev or libmpv-dev if you're on Linux. If you've got an M1 mac I haven't figured out how to get native MPV working yet

wildeyedskies avatar Feb 07 '22 18:02 wildeyedskies

https://github.com/yourok/go-mpv/mpv not found this repo. i can't go build this. sorry for my unclear expression

auosun avatar Feb 10 '22 03:02 auosun

Sorry, I'll try to provide more specific instructions. What operating system or distro are you using?

wildeyedskies avatar Feb 10 '22 05:02 wildeyedskies

You gotta install mpv-dev or libmpv-dev if you're on Linux. If you've got an M1 mac I haven't figured out how to get native MPV working yet

Shouldn't macOS be able to use x86 through Rosetta on Apple Silicon (M1, etc)?

second2falcon avatar Jan 08 '23 12:01 second2falcon

You gotta install mpv-dev or libmpv-dev if you're on Linux. If you've got an M1 mac I haven't figured out how to get native MPV working yet

@wildeyedskies I have mpv installed via brew, but it still can't find it (I think because it's looking in the wrong place) Screenshot 2023-01-08 at 14 30 29

second2falcon avatar Jan 08 '23 13:01 second2falcon

@second2falcon I am currently developing a Go-based Subsonic desktop client that also uses libmpv. You may find my build instructions for Mac useful. I imagine if you set the same environment variables the stmp build will worlk too. FYI I have successfully built on M1 Mac with the Homebrew mpv package. https://github.com/dweymouth/supersonic

dweymouth avatar Jan 11 '23 18:01 dweymouth

@dweymouth it compiled fine now, but now I get a different error

[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x100e04844]

goroutine 1 [running]:
main.main()
	/Users/second2falcon/stmp/stmp.go:44 +0x154

@wildeyedskies any idea what this means?

second2falcon avatar Jan 12 '23 10:01 second2falcon

I forgot to write an update here, but I got it working a while ago.

iirc I just deleted the folder, compiled again and it worked fine.

also @dweymouth I read on your repo that you are looking for M1 compilers. I'd be down, just tag or contact me.

second2falcon avatar Aug 21 '23 20:08 second2falcon