metal3d / idok

A simple command line to stream media to kodi (aka xbmc). Stream youtube, gstreamer output, livestreamer output, and many other media stream.
BSD 3-Clause "New" or "Revised" License
62 stars 9 forks source link

Compile instructions for non-go users #18

Open ole-tange opened 4 years ago

ole-tange commented 4 years ago

I have now for 30 minutes failed getting idok to compile.

There are clearly steps that I miss.

It would be wonderful if make would explain what is wrong.

It is fair to assume the system is a newly installed distribution.

sdbbs commented 2 years ago

I was kind of puzzled at what happens @ole-tange too;

It would be wonderful if make would explain what is wrong.

Well, there are ways to make make version, but also if you type make [TAB], the targets are output:

$ make 
all        darwin     freebsd32  linux32    pack       windows    
clean      deploy     freebsd64  linux64    version    

Then you just open Makefile and look at the target:

OPTS=-ldflags '-X main.VERSION $(VERSION)'
...
linux64:
        go build $(OPTS) -o idok-x86_64 idok.go
        strip idok-x86_64