Go MIDI portmidi installation

huangapple go评论83阅读模式
英文:

Go MIDI portmidi installation

问题

我是你的中文翻译助手,以下是翻译好的内容:

我是Go语言的新手。我想在Go中使用PortMidi包装器,尝试使用这个:Go PortMidi

当我使用以下命令时:

go get github.com/rakyll/portmidi

我得到了以下错误:

/usr/bin/ld: $WORK/github.com/rakyll/portmidi/_obj/portmidi.cgo2.o: undefined reference to symbol 'Pt_Start'
/usr/lib/libporttime.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

我尝试搜索关于以下内容的信息:

DSO missing from command line

以及:

undefined reference to symbol 'Pt_Start'

但没有找到任何结果。

英文:

I'm new in Go. I want to use PortMidi wrapper for Go, trying to use this:
Go PortMidi

When using:

go get github.com/rakyll/portmidi

I've got:

/usr/bin/ld: $WORK/github.com/rakyll/portmidi/_obj/portmidi.cgo2.o: undefined reference to symbol 'Pt_Start'
/usr/lib/libporttime.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

Tried to search something about:

DSO missing from command line

And:

undefined reference to symbol 'Pt_Start'

But found nothing.

答案1

得分: 1

修复了。

从官方仓库安装libportmidi0是个坏主意。需要编译它,例如从以下链接下载PortMIDI源码:

PortMIDI源码下载

所有编译指令都在pm_linux目录中。

英文:

Repaired it.

Installing libportmidi0 from official repo is bad idea. Need to compile it, for example from:

PortMIDI source download

All the instructions how to compile it in directory pm_linux.

答案2

得分: 0

libportmidi的动态库丢失。

尝试:

sudo apt-get install libportmidi0

如果你使用的是Debian/Ubuntu系统,这应该可以解决问题。如果该库在你的Linux系统上不可用,你仍然可以获取库的源代码并自行编译。

英文:

The dynamic library of libportmidi is missing.

Try:

sudo apt-get install libportmidi0

That should fix it if you're on a debian/ubuntu system. If the library is not available on your linux system search your can still get the library source and compile it yourself.

huangapple
  • 本文由 发表于 2015年1月4日 07:20:42
  • 转载请务必保留本文链接:https://go.coder-hub.com/27760637.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定