stmp icon indicating copy to clipboard operation
stmp copied to clipboard

How to install/compile properly

Open kyagloski opened this issue 3 years ago • 3 comments

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/[email protected]/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 avatar Oct 02 '21 21:10 kyagloski

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.

kyagloski avatar Oct 02 '21 21:10 kyagloski

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

c0dev0id avatar Dec 30 '21 10:12 c0dev0id

What OS or distribution are you using?

wildeyedskies avatar Feb 10 '22 05:02 wildeyedskies