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

How to install/compile properly #17

Open
kyagloski opened this issue Oct 2, 2021 · 3 comments
Open

How to install/compile properly #17

kyagloski opened this issue Oct 2, 2021 · 3 comments

Comments

@kyagloski
Copy link

Not sure what to do with the stmp-linux-amd64 file in the releases, but I tried compiling and I keep getting a compilation error with the consts.go file in the mpv dependency from yourok.

~# github.com/yourok/go-mpv/mpv
../go/pkg/mod/github.com/yourok/go-mpv@v0.0.0-20160721123233-ecdfd901e332/mpv/consts.go:3:10: fatal error: mpv/client.h: No such file or directory
3 | //#include <mpv/client.h>
| ^~~~~~~~~~~~~~
compilation terminated.

Not sure if you can help or if I should contact yourok to see if he can fix the issue, but please let me know if anything can be done to fix this, I would really like to try stmp for my subsonic server.

@kyagloski kyagloski changed the title How to install/conmpile properly How to install/compile properly Oct 2, 2021
@kyagloski
Copy link
Author

I would also like to note that I have installed all of the dependecies. Also a strange thing to note is that its trying to interpret a seemingly commented out line, not sure what thats about.

@c0dev0id
Copy link

Try CGO_CFLAGS=-I/usr/local/include CGO_LDFLAGS=-L/usr/local/lib go build

Adapt the paths accordingly. The above is assuming that mpv/client.h is located in /usr/local/include/mpv/client.h and libmpv.so is in /usr/local/lib/libmpv.so

@wildeyedskies
Copy link
Owner

What OS or distribution are you using?

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

3 participants