On Sun, Feb 22, 2015 at 11:05 AM, Hraban Luyat <
hra...@0brg.net> wrote:
> Been working on libopus bindings for Go:
>
>
https://github.com/hraban/opus
>
> But I'm struggling to find the right setup to release it. Somehow, it
> doesn't feel right to require everyone who uses a program depending on this
> package to have libopus installed.
[snip]
I am facing pretty much the same problem -- for three years now I have
maintained a binding to liblinear (golinear). There are two questions
that I commonly get:
- I cannot compile your package: turns out they didn't install liblinear.
- I have liblinear installed, but cannot compile your package. In this
case they often use Debian or Ubuntu which contain an ancient version
of liblinear and/or they use MacPorts which uses a non-standard
location.
I am now seriously considering embedding liblinear in the golinear
package, since it's just a small number of source files that don't
require any special build machinery. I think, this option may apply in
your case as well, since (assuming that your are talking about Xiph
Opus) it only consists of a small number of C headers/files.
Of course, the downside is that this approach increases compile time
compared to linking to a library.
Kind regards,
Daniël de Kok