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

在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 matlab(相关搜索:紧聚焦)
  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计
  • ¥15 路易威登官网 里边的参数逆向
  • ¥15 Arduino无法同时连接多个hx711模块,如何解决?
  • ¥50 需求一个up主付费课程
  • ¥20 模型在y分布之外的数据上预测能力不好如何解决
  • ¥15 processing提取音乐节奏
  • ¥15 gg加速器加速游戏时,提示不是x86架构
  • ¥15 python按要求编写程序
  • ¥15 Python输入字符串转化为列表排序具体见图,严格按照输入