dongxian7194 2017-07-21 17:05 采纳率: 0%
浏览 443

在Windows上构建portaudio golang包装器

I am trying to use the github.com/gordonklaus/portaudio library. This library requires portaudio to be installer. I have built a 64-bit dll of the actual C portaudio library, as the go package requires.

Running go get github.com/gordonklaus/portaudio results in the following output:

# pkg-config --cflags portaudio-2.0
Package portaudio-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `portaudio-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'portaudio-2.0' found
pkg-config: exit status 1

Obviously, cgo is trying to run pkg-config for the portaudio library. I need to make sure it finds it and uses it correctly. However, I do not know how to achieve this on Windows.

  • 写回答

1条回答 默认 最新

  • qq_52811859 2022-07-08 19:44
    关注

    最近也遇到这个问题,能请教一下吗

    评论

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题