dtt83024
2015-01-03 23:20 阅读 144
已采纳

进行MIDI portmidi安装

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.

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

2条回答 默认 最新

  • 已采纳
    dongshaidu2456 dongshaidu2456 2015-01-04 11:31

    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.

    点赞 评论 复制链接分享
  • ds0409 ds0409 2015-01-03 23:58

    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.

    点赞 评论 复制链接分享

相关推荐