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

go-mpv not fount #18

Open
auosun opened this issue Feb 7, 2022 · 8 comments
Open

go-mpv not fount #18

auosun opened this issue Feb 7, 2022 · 8 comments

Comments

@auosun
Copy link

auosun commented Feb 7, 2022

../../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.

@wildeyedskies
Copy link
Owner

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

@auosun
Copy link
Author

auosun commented Feb 10, 2022

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

@wildeyedskies
Copy link
Owner

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

@second2falcon
Copy link

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

second2falcon commented Jan 8, 2023

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

@dweymouth
Copy link
Contributor

@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

@second2falcon
Copy link

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

second2falcon commented Aug 21, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants